Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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"...

share|improve this question
5  
Why not just look at the enumitem documentation? 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:40
3  
The memoir class includes code that emulates the enumerate package, but enumitem is 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

1 Answer 1

up vote 3 down vote accepted

This is some of the default examples included in the enumitem package documentation (section 13 Samples on p 13). In particular, they deal with some of the spacing/margin modifications:

enter image description here

\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."

share|improve this answer
    
Is there a way to set the default for enumerate and itemize so 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 enumitem documentation, 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> within enumerate or itemize (or description for that matter). –  Werner Dec 11 '11 at 17:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.