|
I often have a need to use/create comments in Latex files that span multiple lines. Of course you can create single line comments in Latex using the percent character like this:
% this is a comment
But I want to be able to create comments that flow for multiple lines. Fortunately, if you know that you're supposed to include the verbatim package, this is pretty easy.
The first step is to include the verbatim package, like this:
\usepackage{verbatim}
Do that in the document preamble. Then when you want to create a multiline comment, just do this:
\begin{comment}
This is my comment.
Note that it can span multiple lines.
This is very useful.
\end{comment}
That's all you need to do. Feel free to sprinkle your Latex documents with all the comments you need now.
|