Lists¶
Lists are fundamental for structuring content. LaTeX supports bulleted (itemize), numbered (enumerate), and description (description) lists.
Standard Lists¶
Bullet Points (itemize)¶
Numbered List (enumerate)¶
Descriptions (description)¶
\begin{description}
\item[HTML] HyperText Markup Language
\item[CSS] Cascading Style Sheets
\end{description}
Nested Lists¶
You can nest lists up to 4 levels deep.
\begin{enumerate}
\item Fruit
\begin{itemize}
\item Apple
\item Banana
\end{itemize}
\item Vegetables
\begin{itemize}
\item Carrot
\item Potato
\end{itemize}
\end{enumerate}
Customizing Lists (The enumitem Package)¶
To customize list styles (e.g., replace bullets with dashes, change numbering to a), b)), use the enumitem package.
Add to preamble: \usepackage{enumitem}.
Custom Bullets¶
Custom Numbering¶
label=\alph*-> a, b, clabel=\Alph*-> A, B, Clabel=\roman*-> i, ii, iiilabel=\Roman*-> I, II, IIIlabel=\arabic*-> 1, 2, 3
Spacing¶
Remove vertical space between items using nosep or adjust itemsep.