I'm trying to use the comment package inside an enumerate environment, and it produces a compilation error. Minimal example:
\documentclass{article}
\usepackage{comment}
\specialcomment{com}{}{}
\excludecomment{com}
\begin{document}
\begin{enumerate}
\item Outside.
\begin{com}
Inside.
\end{com}
\end{enumerate}
\end{document}
This produces the following error:
Runaway argument?
! File ended while scanning use of \next.
<inserted text>
\par
For reference, everything works fine without enumerate, as in the following example:
\documentclass{article}
\usepackage{comment}
\specialcomment{com}{}{}
\excludecomment{com}
\begin{document}
Outside.
\begin{com}
Inside.
\end{com}
\end{document}
Is this a known problem? I'm having trouble finding anything about it ("comment" isn't exactly a Google-friendly term to search for…).
comblock, I don't get the error. I think you found a bug. – hpesoj626 Jan 12 at 11:04comment: “The opening and closing commands should appear on a line of their own. No starting spaces, nothing after it.” – egreg Jan 12 at 11:29comblock in the working example, so it seems to be about indentation, notenumerate. – jathd Jan 12 at 11:29;)Or did somebody else say that? – hpesoj626 Jan 12 at 11:32