Skip to content

Instantly share code, notes, and snippets.

@mindw
Last active October 24, 2016 06:55
Show Gist options
  • Select an option

  • Save mindw/ec1e7bb416a9d87dda57a46452d5e28d to your computer and use it in GitHub Desktop.

Select an option

Save mindw/ec1e7bb416a9d87dda57a46452d5e28d to your computer and use it in GitHub Desktop.
Fix LaTeX nested too deep error.
% source:
% http://jasonjuang.blogspot.co.il/2016/06/how-to-solve-too-deeply-nested-error.html
% http://www.texnia.com/archive/enumitem.pdf
% http://texdoc.net/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.pdf
\usepackage{enumitem}
\setlistdepth{20}
\renewlist{itemize}{itemize}{20}
% initially, use dots for all levels
\setlist[itemize]{label=$\cdot$}
\setlist[itemize]{labelsep=.5em}
% customize the first 3 levels
\setlist[itemize,1]{label=\textbullet}
\setlist[itemize,2]{label=--}
\setlist[itemize,3]{label=*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment