The enumitem package

Sets labels, spacing and indents of itemize, enumerate and description through options such as label, noitemsep, leftmargin and resume.

Loading the package

\usepackage{enumitem}

To change a list in plain LaTeX you redefine \labelenumi or set lengths such as \itemsep inside every list. enumitem gives the three list environments an optional argument with key=value settings, and \setlist applies the same settings to all lists of the document.

In label, a starred counter command stands for the current item number: \arabic* gives 1, 2, 3, \alph* gives a, b, c, and \roman* gives i, ii, iii. Text around it is printed as written, so label=(\alph*) produces (a), (b), (c).

Main commands

\begin{enumerate}[label=(\alph*)]Numbering as (a), (b), (c).
\begin{itemize}[label=--]A dash as the bullet of this list.
noitemsepNo extra space between the items. nosep also removes the space above and below the list.
leftmargin=*Indents the list by the width of its label, so the label starts at the text margin.
resumeContinues the numbering of the previous enumerate.
start=5Number of the first item.
\setlist[itemize]{noitemsep}Default settings for all itemize lists; without the optional argument for all three list types.
\setlist[enumerate,2]{label=\roman*)}Settings for one nesting level, here the second level of enumerate.

Complete example

\documentclass{article}
\usepackage{enumitem}
\setlist[itemize]{noitemsep}
\begin{document}
\begin{enumerate}[label=(\alph*), leftmargin=*]
\item Prepare the sample.
\item Start the measurement.
\end{enumerate}
A remark between the two lists.
\begin{enumerate}[label=(\alph*), leftmargin=*, resume]
\item Save the result.
\end{enumerate}
\begin{itemize}
\item Compact item
\item Another compact item
\end{itemize}
\end{document}
Result
The compiled example

Open in the editor

Compiled with pdfLaTeX from TeX Live 2023.

Pitfalls

Related pages