Change list labels in LaTeX (enumitem, label)
Load enumitem and pass a label to the list: \begin{enumerate}[label=(\alph*)] numbers with (a), (b), (c), and \begin{itemize}[label=--] uses a dash as the bullet.
Preamble
The snippets on this page need these lines before \begin{document}:
\usepackage{enumitem}Letters and Roman numerals
In the label, the star stands for the counter of the list: \arabic* prints 1, 2, 3, \alph* a, b, c, \Alph* A, B, C, \roman* i, ii, iii and \Roman* I, II, III. Everything around it, such as parentheses or a full stop, is printed as typed.
\begin{enumerate}[label=(\alph*)]
\item first
\item second
\end{enumerate}
\begin{enumerate}[label=\Roman*.]
\item first
\item second
\end{enumerate}Other bullets
For itemize, the label is the symbol itself: text, or a math symbol between $...$. An optional argument of \item replaces the bullet of that one entry.
\begin{itemize}[label=--]
\item with a dash
\item[+] with a plus sign
\end{itemize}
\begin{itemize}[label=$\triangleright$]
\item with a triangle
\end{itemize}Set the labels for the whole document
\setlist[enumerate,1]{...} in the preamble applies the options to the first level of every enumerate; the number selects the level. Without a number the options apply to all levels.
This goes into the preamble.
\setlist[enumerate,1]{label=(\alph*)}
\setlist[itemize]{label=--}Numbers such as 1.1 and 1.2 in nested lists
label* with a star appends the label to the one of the parent level. The entries of the inner list are then numbered 1.1., 1.2. and so on.
\begin{enumerate}[label*=\arabic*.]
\item Chapter
\begin{enumerate}[label*=\arabic*.]
\item Section
\item Section
\end{enumerate}
\end{enumerate}Without a package
LaTeX stores the labels in commands that you can redefine. \labelenumi to \labelenumiv are the four levels of enumerate, with the counters enumi to enumiv; \labelitemi to \labelitemiv are the four levels of itemize.
\renewcommand{\labelenumi}{(\alph{enumi})}
\renewcommand{\labelitemi}{--}
\begin{enumerate}
\item first
\item second
\end{enumerate}
\begin{itemize}
\item first
\end{itemize}Pitfalls
\alphand\Alphhave 26 letters. The 27th entry stops with Counter too large.- The short form
\begin{enumerate}[(a)]belongs to the olderenumeratepackage.enumitemaccepts it only when loaded with the optionshortlabels; otherwise it stops with "(a) undefined". \refto an entry prints the label as formatted, including the parentheses. The keyrefsets another format for references:label=(\alph*), ref=\alph*.
Compiled with pdfLaTeX from TeX Live 2023.
Related pages
- Package
enumitem - How-to Bulleted and numbered lists in LaTeX
- How-to Description lists in LaTeX
- How-to Counters in LaTeX
- Error Counter too large