[Tuglist] multiline comment in LaTeX

Radhakrishnan CV tuglist@tug.org.in
Fri, 3 May 2002 08:53:04 +0530 (IST)


On Fri, 3 May 2002 at 05:15, M K Saravanan wrote:

   Quite often for testing purpose i need to comment some part of my
   LaTeX document which are multilines.  Other than inserting % at
   the beginning of each line, is there any other way for commenting
   multilines?


In the preamble, \usepackage{comment}.

And in the document:

 \begin{comment}

 ....

 \end{comment}

You can also define your own comment environments with this package.  
For instance:

 \excludecomment{mycomment}

will exclude whatever is in between \begin{mycomment} and 
\end{mycomment}.

If you make the above definition to \includecomment{mycomment}, the 
material will be included. Hope this will help you.

-- 
Radhakrishnan