Is there a guide out there on how to customize the enumerate and itemize instances in my code? (I'm using the Memoir class in LaTeX for Windows, and I have the enumitem package included.) I want to mess with the margins and spacings to make my lists look a little less "LaTeX-default"...
Asked
Active
Viewed 2,637 times
7
lockstep
- 250,273
jamaicanworm
- 29,114
1 Answers
6
This is some of the default examples included in the enumitem package documentation (section 11 Samples). In particular, they deal with some of the spacing/margin modifications:

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\newcommand{\mylist}[1]{%
En un lugar de la Mancha, de cuyo nombre no quiero acordarme,
no ha mucho tiempo que viv\'{\i}a un hidalgo de los de
\begin{enumerate}[noitemsep,#1]
\item lanza en astillero,
\item adarna antigua,
\item roc\'{\i}n flaco, y
\item galgo corredor.
\end{enumerate}
Una olla de algo m\'{a}s vaca que carnero, salpic\'{o}n las m\'{a}s
noches, duelos y quebrantos los s\'{a}bados\ldots
}
\begin{document}
\mylist{labelindent=\parindent,leftmargin=*} \par\medskip\hrule\medskip
\mylist{leftmargin=*} \par\medskip\hrule\medskip % labelindent=0pt by default
\mylist{leftmargin=\parindent} \par\medskip\hrule\medskip
\mylist{labelindent=\parindent, leftmargin=*, label=\Roman*., widest=IV, align=left} \par\medskip\hrule\medskip
\mylist{label=\fbox{\arabic*}}
\end{document}
Also see Good way to make \textcircled numbers? for a way to use enumitem to encircle the enumeration using tikz/pgf. Finally, searching for questions about enumitem leads to many requests regarding "messing around with margins and spacing."
Werner
- 603,163
-
Is there a way to set the default for
enumerateanditemizeso that when I use\begin{enumerate}, it automatically uses the settings I want (instead of having to type{labelindent = ..., leftmargin = ...}, etc.? – jamaicanworm Dec 11 '11 at 17:01 -
1@jamaicanworm: Yes, see the
enumitemdocumentation, section 5 Global settings (p 9):\setlist[enumerate,<level>]{<format>}and\setlist[itemize,<level>]{<format>}. Note the use of<level>, since you can have nested lists. That is, you define the default setting for a specific<level>withinenumerateoritemize(ordescriptionfor that matter). – Werner Dec 11 '11 at 17:13 -
There is no Section 13 in http://mirror.datacenter.by/pub/mirrors/CTAN/macros/latex/contrib/enumitem/enumitem.pdf – Viesturs Apr 07 '19 at 07:43
-
1
enumitemdocumentation? It includes a number of examples contained with section 13 Samples (p 13). Look at that - section and page match!:)– Werner Dec 10 '11 at 22:40enumeratepackage, butenumitemis more powerful. I would recommend not to mess much with the parameters, though, as it's easy to get wrong shape for lists. – egreg Dec 10 '11 at 22:45