Lists: Enumerate, itemize, description and how to change them

By thurnherr

Latex distinguishes between three different enumeration/itemization environments. Each of them provide four levels, which means you can have nested lists of up to four levels.

Enumerate:

\begin{enumerate}
\item ...
\end{enumerate}

The enumerate-environment is used to create numbered lists.
If you like to change the appearance of the enumerator, the simplest way to change is to use the enumerate-package, giving you the possibility to optionally choose an enumerator.


\usepackage{enumerate}
...
\begin{enumerate}[I]%for capital roman numbers.
\item
\end{enumerate}

\begin{enumerate}[(a)]%for small alpha-characters within brackets.
\item
\end{enumerate}

Itemize:

\begin{itemize}
\item ...
\end{itemize}

Itemization is probably the mostly used list in Latex. It also provides four levels. The bullets can be changed for each level using the following command:

\renewcommand{\labelitemi}{$\bullet$}
\renewcommand{\labelitemii}{$\cdot$}
\renewcommand{\labelitemiii}{$\diamond$}
\renewcommand{\labelitemiv}{$\ast$}

Amongst the more commonly used ones are $\bullet$ (\bullet), $\cdot$ (\cdot), $\diamond$ (\diamond), $-$ (-), $\ast$ (\ast) and $\circ$ (\circ).

Description:

\begin{description}
\item[] ...
\end{description}

The description list might be the least known. It comes in very handy if you need to explain notations or terms. Its neither numbered nor bulleted.

Example:

\begin{description}
\item[Biology] Study of life.
\item[Physics] Science of matter and its motion.
\item[Psychology] Scientific study of mental processes and behaviour.
\end{description}

And in a PDF it would look like this:

Example of a description list.

Example of a description list.

Note:

The space between different items can be controlled with the \itemsep command (can only be added just after “begin”):

\begin{itemize}\itemsep2pt
\item
\end{itemize}

Tags: , , , , ,

5 Responses to “Lists: Enumerate, itemize, description and how to change them”

  1. mbork Says:

    Well, I used to use the enumerate package too – but only until I found out about another one, called enumitem. It’s way more flexible and (in some cases) easier to use. (For example, it’s a bit tricky to obtain enumerations with _bold_ letters: (a), (b) etc with the enumerate package – try it! With enumitem, it’s much easier.)

    Also, I hardly ever use itemize and description – and enumerate all the time.

  2. nguyenminhhaivn Says:

    Thanks a lot, your blog is very helpful. Btw, do you know how to insert pieces of source code into documents? I have tried some packages already, but they are a little ugly. Perhaps I have not figured out how to configure them yet :( .

  3. thurnherr Says:

    Hi there,

    Thanks for your comment. Please check my post on how to include source code into your documents here.

    Cheers,
    Tom

  4. Joe Python Says:

    Is it possible to create fancy frames like the one you created in your html for the description list?

  5. thurnherr Says:

    Hi Joe,

    It is possible to crate fancyframes using \mbox or the fancybox package. Nevertheless, I think you will have problems creating a frame similar to the html above, as figure is a floating environment, which can’t be put into a box.

    Tom.

Leave a Reply