Multiline comments in LaTeX

September 25th, 2007

Tag:


LaTeX has no default syntax for multiline commenting. But since I often write comments longer than 80 character I really could use such a feature.

At first add the following line to the beginning of the document

CODE:
  1. \usepackage{verbatim}

This provides the comment feature which can be used like this

CODE:
  1. \begin{comment}
  2. some text which is spanning
  3. across multiple lines.
  4. \end{comment}

Although I found comments which say that the verbatim comments feature does also comment everything else after a comment statement if works fine for me. Other ways of commenting are explained at Eric Rasmusen’s Weblog - Comments in Latex

Leave a Reply