Multiline comments in LaTeX
September 25th, 2007
Tag: latex
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:
-
\usepackage{verbatim}
This provides the comment feature which can be used like this
CODE:
-
\begin{comment}
-
some text which is spanning
-
across multiple lines.
-
\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