|
|
1.1 root 1: % The following are copied from manmac.tex and are taken from p421 of
2: % the TeXbook ... modified to \verbatim...\endverbatim
3: % macros for verbatim scanning
4: \chardef\other=12
5: \def\ttverbatim{\begingroup
6: \catcode`\\=\other
7: \catcode`\{=\other
8: \catcode`\}=\other
9: \catcode`\$=\other
10: \catcode`\&=\other
11: \catcode`\#=\other
12: \catcode`\%=\other
13: \catcode`\~=\other
14: \catcode`\_=\other
15: \catcode`\^=\other
16: \obeyspaces \obeylines \tt}
17: {\obeyspaces\global\let =\ } % from texbook, p 381
18:
19:
20: \outer\def\verbatim{$$\let\par=\endgraf \ttverbatim \parskip=0pt
21: \rightskip-5pc \ttfinish}
22: {\catcode`\|=0 |catcode`|\=\other % | is temporary escape character
23: |obeylines % end of line is active
24: |gdef|ttfinish#1^^M#2\endverbatim{#1|vbox{#2}|endgroup$$}}
25:
26:
27: % end of manmac stuff
28:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.