0

I need to comment a chapter but I have a paragraph commented in that chapter. When I type:

\begin{document}
\begin{comment}
\newchapter{Chapter 1}
My tesis...
\begin{comment}
text...
\end{comment}
more text...
\end{comment}
\end{document}

Latex show the follow message: LaTeX Error: \begin{document} ended by \end{comment}.

  • Where is the \end{document}, please provide a complete example (MWE). Is it possible to have a comment in a comment (I don't know) – albert Apr 23 '18 at 14:00
  • You cannot nest comment environments. By the way, what would it be useful for? – egreg Apr 23 '18 at 14:21
  • Maybe are you looking really for the \includeonly command? – Fran Apr 24 '18 at 0:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.