Is there any way to get nestable block comments in LaTeX? I am using the comment package to get block comments, but nesting one comment inside another with \begin{comment}...\begin{comment}...\end{comment}...\end{comment} doesn't seem to work. (I get an error "\begin{document} ended by \end{comment}".)
When writing and revising papers, it would be useful to me to be able to comment out arbitrary blocks of text, even if they already have commented-out blocks within them.
I'm aware that there are editor-based solutions. What I'm asking is if there is a way to do this within the source of my LaTeX document.
Blah \begin{comment}blah blah\end{comment} more blah, I want to be able to wrap the entire thing in another comment, without worrying about whether it already has a comment inside it. – BrenBarn Mar 21 '14 at 20:15commentis similar toverbatim: it ends as soon as the string\end{comment}is scanned. You can't nestcommentenvironments. – egreg Mar 21 '14 at 20:24