I'm using the De Gruyter template for the PETS conference, here is a direct link (ZIP). I'm getting a "Too deeply nested" error, and relevant searches only led to "reasonable" reasons why I could get this error (lists with more than 7 levels of nesting, or trailing open environments). Here is a minimal working example that shows that the problem must be elsewhere:
\documentclass{article}
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{prop}{\protect\propositionname}
\usepackage[big]{dgruyter_NEW}
\usepackage{babel}
\providecommand{\propositionname}{Proposition}
\begin{document}
\begin{prop}
woo prop
\end{prop}
\begin{prop}
woo prop
\end{prop}
\begin{prop}
woo prop
\end{prop}
\begin{prop}
woo prop
\end{prop}
\begin{prop}
woo prop
\end{prop}
\begin{prop}
woo prop
\begin{enumerate} % this is where it fails
\item woo item
\item woo other item
\end{enumerate}
\end{prop}
\end{document}
The weird thing is that deleting one of the dummy prop
environments fixes the problem: I don't get the error anymore. Maybe the \end{prop}
lines aren't taken into account or something?
Online, people suggest to add the lines:
\usepackage{enumitem}
\setlistdepth{9} % or some bigger number
This technically works (no more errors, if I set it to 30 for my article), but the placement and indentation of enumerate
or itemize
environments is all wrong:
Finally, I tried the debugging technique in this answer and added a \stop
right before the \begin{enumerate}
. The output seems correct, but not consistent with the "too deeply nested" error:
(\end occurred inside a group at level 1)
### semi simple group (level 1) entered at line 32 (\begingroup)
dgruyter_NEW
file loadsamsthm
already