Thursday, June 28, 2012

Write comments in LaTeX

Normally comment is written in LaTeX with '%'. This rather suggested for short, one line comments, because the effect is only valid till the end of the line. If you would like to comment an entire block, it's more convenient to use the verbatim package as

\usepackage{verbatim}
 ...

\begin{comment}
  ...
  commented text
  ...
\end{comment}

No comments:

Post a Comment