author | haftmann |
Sun, 12 Oct 2014 16:31:28 +0200 | |
changeset 58647 | fce800afeec7 |
parent 55224 | 197c36bb30ad |
permissions | -rw-r--r-- |
55224
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
2 |
% Comment.sty version 3.6, October 1999 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
3 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
4 |
% Purpose: |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
5 |
% selectively in/exclude pieces of text: the user can define new |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
6 |
% comment versions, and each is controlled separately. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
7 |
% Special comments can be defined where the user specifies the |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
8 |
% action that is to be taken with each comment line. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
9 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
10 |
% Author |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
11 |
% Victor Eijkhout |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
12 |
% Department of Computer Science |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
13 |
% University of Tennessee |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
14 |
% 107 Ayres Hall |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
15 |
% Knoxville TN 37996 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
16 |
% USA |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
17 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
18 |
% victor@eijkhout.net |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
19 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
20 |
% This program is free software; you can redistribute it and/or |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
21 |
% modify it under the terms of the GNU General Public License |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
22 |
% as published by the Free Software Foundation; either version 2 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
23 |
% of the License, or (at your option) any later version. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
24 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
25 |
% This program is distributed in the hope that it will be useful, |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
26 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
27 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
28 |
% GNU General Public License for more details. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
29 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
30 |
% For a copy of the GNU General Public License, write to the |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
31 |
% Free Software Foundation, Inc., |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
32 |
% 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
33 |
% or find it on the net, for instance at |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
34 |
% http://www.gnu.org/copyleft/gpl.html |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
35 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
36 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
37 |
% This style can be used with plain TeX or LaTeX, and probably |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
38 |
% most other packages too. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
39 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
40 |
% Usage: all text included between |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
41 |
% \comment ... \endcomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
42 |
% or \begin{comment} ... \end{comment} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
43 |
% is discarded. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
44 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
45 |
% The opening and closing commands should appear on a line |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
46 |
% of their own. No starting spaces, nothing after it. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
47 |
% This environment should work with arbitrary amounts |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
48 |
% of comment, and the comment can be arbitrary text. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
49 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
50 |
% Other `comment' environments are defined by |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
51 |
% and are selected/deselected with |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
52 |
% \includecomment{versiona} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
53 |
% \excludecoment{versionb} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
54 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
55 |
% These environments are used as |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
56 |
% \versiona ... \endversiona |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
57 |
% or \begin{versiona} ... \end{versiona} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
58 |
% with the opening and closing commands again on a line of |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
59 |
% their own. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
60 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
61 |
% LaTeX users note: for an included comment, the |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
62 |
% \begin and \end lines act as if they don't exist. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
63 |
% In particular, they don't imply grouping, so assignments |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
64 |
% &c are not local. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
65 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
66 |
% Special comments are defined as |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
67 |
% \specialcomment{name}{before commands}{after commands} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
68 |
% where the second and third arguments are executed before |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
69 |
% and after each comment block. You can use this for global |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
70 |
% formatting commands. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
71 |
% To keep definitions &c local, you can include \begingroup |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
72 |
% in the `before commands' and \endgroup in the `after commands'. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
73 |
% ex: |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
74 |
% \specialcomment{smalltt} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
75 |
% {\begingroup\ttfamily\footnotesize}{\endgroup} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
76 |
% You do *not* have to do an additional |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
77 |
% \includecomment{smalltt} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
78 |
% To remove 'smalltt' blocks, give \excludecomment{smalltt} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
79 |
% after the definition. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
80 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
81 |
% Processing comments can apply processing to each line. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
82 |
% \processcomment{name}{each-line commands}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
83 |
% {before commands}{after commands} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
84 |
% By defining a control sequence |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
85 |
% \def\Thiscomment##1{...} in the before commands the user can |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
86 |
% specify what is to be done with each comment line. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
87 |
% BUG this does not work quite yet BUG |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
88 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
89 |
% Trick for short in/exclude macros (such as \maybe{this snippet}): |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
90 |
%\includecomment{cond} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
91 |
%\newcommand{\maybe}[1]{} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
92 |
%\begin{cond} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
93 |
%\renewcommand{\maybe}[1]{#1} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
94 |
%\end{cond} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
95 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
96 |
% Basic approach of the implementation: |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
97 |
% to comment something out, scoop up every line in verbatim mode |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
98 |
% as macro argument, then throw it away. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
99 |
% For inclusions, in LaTeX the block is written out to |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
100 |
% a file \CommentCutFile (default "comment.cut"), which is |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
101 |
% then included. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
102 |
% In plain TeX (and other formats) both the opening and |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
103 |
% closing comands are defined as noop. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
104 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
105 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
106 |
% Changes in version 3.1 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
107 |
% - updated author's address |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
108 |
% - cleaned up some code |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
109 |
% - trailing contents on \begin{env} line is always discarded |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
110 |
% even if you've done \includecomment{env} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
111 |
% - comments no longer define grouping!! you can even |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
112 |
% \includecomment{env} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
113 |
% \begin{env} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
114 |
% \begin{itemize} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
115 |
% \end{env} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
116 |
% Isn't that something ... |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
117 |
% - included comments are written to file and input again. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
118 |
% Changes in 3.2 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
119 |
% - \specialcomment brought up to date (thanks to Ivo Welch). |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
120 |
% Changes in 3.3 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
121 |
% - updated author's address again |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
122 |
% - parametrised \CommentCutFile |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
123 |
% Changes in 3.4 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
124 |
% - added GNU public license |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
125 |
% - added \processcomment, because Ivo's fix (above) brought an |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
126 |
% inconsistency to light. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
127 |
% Changes in 3.5 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
128 |
% - corrected typo in header. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
129 |
% - changed author email |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
130 |
% - corrected \specialcomment yet again. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
131 |
% - fixed excludecomment of an earlier defined environment. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
132 |
% Changes in 3.6 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
133 |
% - The 'cut' file is now written more verbatim, using \meaning; |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
134 |
% some people reported having trouble with ISO latin 1, or umlaute.sty. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
135 |
% - removed some \newif statements. |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
136 |
% Has this suddenly become \outer again? |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
137 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
138 |
% Known bugs: |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
139 |
% - excludecomment leads to one superfluous space |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
140 |
% - processcomment leads to a superfluous line break |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
141 |
% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
142 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
143 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
144 |
\def\makeinnocent#1{\catcode`#1=12 } |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
145 |
\def\csarg#1#2{\expandafter#1\csname#2\endcsname} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
146 |
\def\latexname{lplain}\def\latexename{LaTeX2e} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
147 |
\newwrite\CommentStream |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
148 |
\def\CommentCutFile{comment.cut} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
149 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
150 |
\def\ProcessComment#1% start it all of |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
151 |
{\begingroup |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
152 |
\def\CurrentComment{#1}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
153 |
\let\do\makeinnocent \dospecials |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
154 |
\makeinnocent\^^L% and whatever other special cases |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
155 |
\endlinechar`\^^M \catcode`\^^M=12 \xComment} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
156 |
%\def\ProcessCommentWithArg#1#2% to be used in \leveledcomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
157 |
% {\begingroup |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
158 |
% \def\CurrentComment{#1}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
159 |
% \let\do\makeinnocent \dospecials |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
160 |
% \makeinnocent\^^L% and whatever other special cases |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
161 |
% \endlinechar`\^^M \catcode`\^^M=12 \xComment} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
162 |
{\catcode`\^^M=12 \endlinechar=-1 % |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
163 |
\gdef\xComment#1^^M{% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
164 |
\expandafter\ProcessCommentLine} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
165 |
\gdef\ProcessCommentLine#1^^M{\def\test{#1} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
166 |
\csarg\ifx{End\CurrentComment Test}\test |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
167 |
\edef\next{\noexpand\EndOfComment{\CurrentComment}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
168 |
\else \ThisComment{#1}\let\next\ProcessCommentLine |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
169 |
\fi \next} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
170 |
} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
171 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
172 |
\def\CSstringmeaning#1{\expandafter\CSgobblearrow\meaning#1} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
173 |
\def\CSstringcsnoescape#1{\expandafter\CSgobbleescape\string#1} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
174 |
{\escapechar-1 |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
175 |
\expandafter\expandafter\expandafter\gdef |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
176 |
\expandafter\expandafter\expandafter\CSgobblearrow |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
177 |
\expandafter\string\csname macro:->\endcsname{} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
178 |
} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
179 |
\def\CSgobbleescape#1{\ifnum`\\=`#1 \else #1\fi} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
180 |
\def\WriteCommentLine#1{\def\CStmp{#1}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
181 |
\immediate\write\CommentStream{\CSstringmeaning\CStmp}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
182 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
183 |
% 3.1 change: in LaTeX and LaTeX2e prevent grouping |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
184 |
\if 0% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
185 |
\ifx\fmtname\latexename |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
186 |
0% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
187 |
\else \ifx\fmtname\latexname |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
188 |
0% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
189 |
\else |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
190 |
1% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
191 |
\fi \fi |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
192 |
%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
193 |
%%%% definitions for LaTeX |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
194 |
%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
195 |
\def\AfterIncludedComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
196 |
{\immediate\closeout\CommentStream |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
197 |
\input{\CommentCutFile}\relax |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
198 |
}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
199 |
\def\TossComment{\immediate\closeout\CommentStream} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
200 |
\def\BeforeIncludedComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
201 |
{\immediate\openout\CommentStream=\CommentCutFile |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
202 |
\let\ThisComment\WriteCommentLine} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
203 |
\def\includecomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
204 |
#1{\message{Include comment '#1'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
205 |
\csarg\let{After#1Comment}\AfterIncludedComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
206 |
\csarg\def{#1}{\BeforeIncludedComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
207 |
\ProcessComment{#1}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
208 |
\CommentEndDef{#1}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
209 |
\long\def\specialcomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
210 |
#1#2#3{\message{Special comment '#1'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
211 |
% note: \AfterIncludedComment does \input, so #2 goes here! |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
212 |
\csarg\def{After#1Comment}{#2\AfterIncludedComment#3}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
213 |
\csarg\def{#1}{\BeforeIncludedComment\relax |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
214 |
\ProcessComment{#1}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
215 |
\CommentEndDef{#1}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
216 |
\long\def\processcomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
217 |
#1#2#3#4{\message{Lines-Processing comment '#1'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
218 |
\csarg\def{After#1Comment}{#3\AfterIncludedComment#4}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
219 |
\csarg\def{#1}{\BeforeIncludedComment#2\relax |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
220 |
\ProcessComment{#1}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
221 |
\CommentEndDef{#1}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
222 |
\def\leveledcomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
223 |
#1#2{\message{Include comment '#1' up to level '#2'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
224 |
%\csname #1IsLeveledCommenttrue\endcsname |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
225 |
\csarg\let{After#1Comment}\AfterIncludedComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
226 |
\csarg\def{#1}{\BeforeIncludedComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
227 |
\ProcessCommentWithArg{#1}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
228 |
\CommentEndDef{#1}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
229 |
\else |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
230 |
%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
231 |
%%%%plain TeX and other formats |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
232 |
%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
233 |
\def\includecomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
234 |
#1{\message{Including comment '#1'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
235 |
\csarg\def{#1}{}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
236 |
\csarg\def{end#1}{}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
237 |
\long\def\specialcomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
238 |
#1#2#3{\message{Special comment '#1'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
239 |
\csarg\def{#1}{\def\ThisComment{}\def\AfterComment{#3}#2% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
240 |
\ProcessComment{#1}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
241 |
\CommentEndDef{#1}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
242 |
\fi |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
243 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
244 |
%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
245 |
%%%% general definition of skipped comment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
246 |
%%%% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
247 |
\def\excludecomment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
248 |
#1{\message{Excluding comment '#1'}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
249 |
\csarg\def{#1}{\let\AfterComment\relax |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
250 |
\def\ThisComment####1{}\ProcessComment{#1}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
251 |
\csarg\let{After#1Comment}\TossComment |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
252 |
\CommentEndDef{#1}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
253 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
254 |
\if 0% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
255 |
\ifx\fmtname\latexename |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
256 |
0% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
257 |
\else \ifx\fmtname\latexname |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
258 |
0% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
259 |
\else |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
260 |
1% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
261 |
\fi \fi |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
262 |
% latex & latex2e: |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
263 |
\def\EndOfComment#1{\endgroup\end{#1}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
264 |
\csname After#1Comment\endcsname} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
265 |
\def\CommentEndDef#1{{\escapechar=-1\relax |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
266 |
\csarg\xdef{End#1Test}{\string\\end\string\{#1\string\}}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
267 |
}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
268 |
\else |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
269 |
% plain & other |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
270 |
\def\EndOfComment#1{\endgroup\AfterComment} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
271 |
\def\CommentEndDef#1{{\escapechar=-1\relax |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
272 |
\csarg\xdef{End#1Test}{\string\\end#1}% |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
273 |
}} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
274 |
\fi |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
275 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
276 |
\excludecomment{comment} |
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
277 |
|
197c36bb30ad
include comment.sty 3.6 which still works with plain tex, in contrast to later 3.7 which is only for latex (slow due to file snippets) -- see also 30781cc78fc6;
wenzelm
parents:
diff
changeset
|
278 |
\endinput |