| 1 |
% An illustration of comment.sty by Victor Eijkhout. |
| 2 |
% This file belongs to comment.sty version 3.0 or later, |
| 3 |
% it is meant to be used with LaTeX |
| 4 |
|
| 5 |
\documentstyle[comment]{article} |
| 6 |
\begin{document} |
| 7 |
|
| 8 |
\excludecomment{begone} |
| 9 |
|
| 10 |
\includecomment{thisone} |
| 11 |
\excludecomment{notthisone} |
| 12 |
|
| 13 |
% under development \leveledcomment{maybethis}{1} |
| 14 |
|
| 15 |
\parskip=20pt |
| 16 |
This sentence |
| 17 |
\begin{comment} |
| 18 |
has |
| 19 |
\end{comment} |
| 20 |
no verb. |
| 21 |
|
| 22 |
Check for\begin{notthisone} |
| 23 |
superfluous |
| 24 |
\end{notthisone} |
| 25 |
spaces, and |
| 26 |
\begin{thisone} |
| 27 |
inclusion |
| 28 |
\end{thisone} |
| 29 |
of proper texts. |
| 30 |
|
| 31 |
% a test of the special comments |
| 32 |
\newcount\comlines |
| 33 |
\processcomment{countedcomment} |
| 34 |
{\comlines=0\relax |
| 35 |
\def\ThisComment##1{\global\advance\comlines1\relax}} |
| 36 |
{}{\endgraf **Comment: \number\comlines\ line(s) removed**\endgraf} |
| 37 |
|
| 38 |
This is a line of text |
| 39 |
\begin{countedcomment} |
| 40 |
Oneline |
| 41 |
\end{countedcomment} |
| 42 |
another line of text |
| 43 |
\begin{countedcomment} |
| 44 |
One line |
| 45 |
Two line |
| 46 |
Three line |
| 47 |
\end{countedcomment} |
| 48 |
last line of text |
| 49 |
|
| 50 |
Let's test paragraphs: |
| 51 |
\begin{notthisone} |
| 52 |
This one is missing. |
| 53 |
|
| 54 |
As is this one. |
| 55 |
\end{notthisone} |
| 56 |
For starters. |
| 57 |
|
| 58 |
On the other hand: |
| 59 |
\begin{thisone} |
| 60 |
This is one is present. |
| 61 |
|
| 62 |
As is this one. |
| 63 |
\end{thisone} |
| 64 |
And that's it. |
| 65 |
|
| 66 |
\begin{comment} % future project |
| 67 |
\maybethis 0 |
| 68 |
Level zero. |
| 69 |
\endmaybethis |
| 70 |
\maybethis 1 |
| 71 |
Level one. |
| 72 |
\endmaybethis |
| 73 |
\maybethis 2 |
| 74 |
Level two. |
| 75 |
\endmaybethis |
| 76 |
\end{comment} |
| 77 |
|
| 78 |
\end{document} |