Is there a way to increase the maximum nesting level of lists (enumerate, etc) in Latex? I need five levels for a class, and Google isn't finding me anything...
Using lists in LaTeX is pretty straightforward and doesn't require you do add any additional packages. For unordered lists, LaTeX provides the itemize environment and for ordered lists there is the enumerate environment. The elements within both environments have to be declared beginning with the \item command.
To create a numbered list in LaTeX, you can use the \begin{enumerate} command along with the \item command. You can also create sub-levels of the numbered lists by adding a sub-command within the greater enumerate environment.
Unordered (bulleted) lists are produced by the itemize environment, where each list entry starts by using the \item command, which also generates the bullet symbol.
\usepackage{enumitem} \setlistdepth{9} \setlist[itemize,1]{label=$\bullet$} \setlist[itemize,2]{label=$\bullet$} \setlist[itemize,3]{label=$\bullet$} \setlist[itemize,4]{label=$\bullet$} \setlist[itemize,5]{label=$\bullet$} \setlist[itemize,6]{label=$\bullet$} \setlist[itemize,7]{label=$\bullet$} \setlist[itemize,8]{label=$\bullet$} \setlist[itemize,9]{label=$\bullet$} \renewlist{itemize}{itemize}{9}
For the other list types this has to be adapted.
enumitem.sty
that LaTeX uses is older then version 3.\setlist[itemize,$LEVEL] ...
commandYou can use the enumitem package. After what you just have to put the depth level you want:
\usepackage{enumitem} ... \setlistdepth{9}
And you can have up to 9 nested levels for your lists, easy ;-)
This feature is available in the package since 3.0 (Ubuntu installed me the 2.2 for instance). In case where you have an old version just replace it by: http://ctan.mackichan.com/macros/latex/contrib/enumitem/enumitem.sty
Hope that helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With