Skip to content

TeX capacity exceeded error if \labelenumi is not defined #18

Description

@u-fischer

enumitem implicitly assumes that the class defines \labelenumi. Without it, it loops:

\documentclass{article}
\let\labelenumi\undefinedcommand
\usepackage{enumitem}

\begin{document}

	\begin{enumerate}
		\item Bla
		\item Blub
	\end{enumerate}

\end{document}

gives

! TeX capacity exceeded, sorry [grouping levels=255].

A prominent example of such a class is beamer. And while is not recommended to use enumitem with beamer, in some cases people wants to do it anyway and it would be nice if it didn't break then.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions