7

I am loading both enumerate and enumitem packages on my beamer preamble:

\usepackage[shortlabels]{enumitem}
\setitemize{label=\usebeamerfont*{itemize item}%
  \usebeamercolor[fg]{itemize item}
  \usebeamertemplate{itemize item}}
\setlength{\leftmargini}{0pt}
\setlength{\leftmarginii}{25pt}

Then I am trying to create a nested list combining both itemize and enumerate:

\begin{enumerate}

\item<1->{Some Text}
    \begin{itemize}
        \item<2-> Some Text
        \item<2-> Some Text           
    \end{itemize}
\item<3->{Some Text}
    \begin{itemize}
        \item<4-> Some Text
        \item<4-> Some Text
    \end{itemize}

\end{enumerate}

However, I get the following error:

tex capacity exceeded sorry grouping levels=255

Are the two packages incompatible?

Thank you.

  • 11
    You should load neither enumerate nor enumitem with beamer; in any case, the two packages should never be loaded together. – egreg Feb 15 '16 at 18:52
  • 3
    Aside from not mixing enumerate with enumitem, the latter is not compatible with beamer. See Does enumitem conflict with beamer for lists? – Werner Feb 15 '16 at 18:54
  • Well, the reason why I loaded enumitem was because I wanted to reduce the itemize environment margin which I accomplished by making: \setlength{\leftmargini}{0pt} \setlength{\leftmarginii}{25pt}

    Is there any other workaround besides enumitem then?

    – phdstudent Feb 15 '16 at 18:58
  • 4
    @volcompt: As far as I can see you're not using any feature from enumitem apart from shortlabels. \setlength{\leftmargini}{0pt} can be done without enumitem actually –  Feb 15 '16 at 19:12
  • 3
    Indeed, the whole point of enumitem is so that you don't have to write things like that. If you are going to write things like that, it is better not to load the package regardless of whether you are using Beamer. – cfr Feb 15 '16 at 23:54
  • 1
    So if I want custom enumerated items in Beamer, what do I do? – Sheridan Grant Feb 25 '20 at 05:53
  • @SheridanGrant Add \setenumerate explicitly somewhere at the beginning of the document, for example: \setenumerate{label=\arabic*.,itemsep=3pt,topsep=3pt}. – Dávid Horváth Dec 17 '23 at 20:01

0 Answers0