15. Numbering

Creating ordered lists is relatively easy in LaTex. Two packages are available. You can use either the enumitem or mdwlist packages for numbering.

Using the enumitem package

Numbering is defined using the enumitem package. Using a resume command, you can continue the numbering after a break due to a paragraph.

For example, you define the package for the document using enumitem.

1
\usepackage{enumitem}

Then in the document you insert the list using enumerate as follows.

1
2
3
4
\begin{enumerate}
  \item List item
  \item Another list item
\end{enumerate}

Suppose you have an indented paragraph and you want to resume the list after the paragraph, you would insert the following.

1
2
3
4
\begin{enumerate}
  \item Further item
  \item Final item
\end{enumerate}

Using the mdwlist package

You can also use mdwlist package (which is part of mdwtools).

You define the mdwlist package as follows:

1
\usepackage{mdwlist}

Then in the document you insert the list using mdwlist as follows:

1
2
3
4
\begin{enumerate}
\item List item
\item Another list item
\suspend{enumerate}

Then you can insert a paragraph for the second list item, then continue to list as follows:

1
2
3
4
5
\resume{enumerate}
\item Further item
\item Final item
\end{enumerate}
\end{document}

Click to continue.