-
Notifications
You must be signed in to change notification settings - Fork 20
lists
François Rozet edited this page Feb 13, 2019
·
1 revision
This page explains how to use list environments and how to customize them using the enumitem
package.
In a list environment, items are defined by the command \item
.
\begin{list}
\item First item
\item Second item
...
\end{list}
Items can be whatever you want : paragraphs, math environments, or even lists.
There is two list environments :
-
itemize
which is a bullet list. -
enumerate
which is an enumerated list.
Provided by the enumitem
package, the environment argument [noitemsep]
deletes the separation between items.
This package also provides ways to modify list labels :
-
\item[newLabel]
modifies the label for the current item. - The environment argument
[label=newLabel]
modifies the list label of the whole list.
In the case of enumerate
, the label
argument has some special expressions that adapt to the item number.
Expression | Description |
---|---|
\arabic* |
Arabic numbers (1 , 2 , 3 , ...) |
\alph* |
Lowercase letter (a , b , c , ...) |
\Alph* |
Uppercase letter (A , B , C , ...) |
\roman* |
Lowercase Roman numeral (i , ii , iii , ...) |
\Roman* |
Uppercase Roman numeral (I , II , III , ...) |
These expressions can be associated with any static ones but work especially well with dots and round brackets. For example, [label=(\alph*)]
defines the label sequence (a)
, (b)
, (c)
, ...
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \par
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item[$+$] Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\begin{equation}
a + b = c
\end{equation}
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\begin{enumerate}[noitemsep, label=\roman*.]
\item Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
\item Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
\end{enumerate}
\end{itemize}
