1 % Support for writing UNIX-style documentation (based on webmac.tex)
4 \catcode`\@=11 % for a little while
9 \font\sixteentex=cmtex10 scaled\magstep2
10 \font\twelvetex=cmtex10 scaled\magstep1
12 \font\eighttex=cmtex10
24 \else \errmessage{font madness}\fi
27 \chardef\AM=`\& % ampersand
28 \chardef\BS=`\\ % backslash
29 \chardef\LB=`\{ % left brace
30 \chardef\RB=`\} % right brace
31 \def\LQ{{\tt\char'22}} % left quote
32 \def\RQ{{\tt\char'23}} % right quote
33 \def\SP{{\tt\char`\ }} % space
34 \chardef\TL=`\~ % tilde
35 \chardef\UL=`\_ % underline
37 \def\everypointsize#1#2{%
40 \csname#1tex\endcsname
41 \let\&=\AM \let\\=\BS \let\{=\LB \let\`=\LQ
42 \let\}=\RB \let\'=\RQ \let\ =\SP \let\~=\TL
52 \def\#{\hbox{\tt\char`\#}} % parameter sign
53 \def\${\hbox{\tt\char`\$}} % dollar sign
54 \def\%{\hbox{\tt\char`\%}} % percent sign
55 \def\^{\ifmmode\mathchar"222 \else\char`^ \fi} % pointer or hat
60 \def\eg#1{\hbox{\tx``#1''}} % in-line
62 \def\example#1\endexample{% % multi-line
64 \displayindent=\leftskip
65 \advance\displayindent by1.5\parindent
69 \leftline{\tx\ignorespaces##\unskip}\cr
77 \def\pgm#1{{\it#1}} % UNIX programs
78 \def\man#1(#2){\pgm{#1\/}(#2)} % manual entries
79 \def\arg#1{\hbox{\tx`{}#1'{}}} % arguments to programs
80 \def\switch#1{\hbox{\tx`{}-#1'{}}} % switches to programs
81 \def\file#1{\hbox{\sl#1}} % filename
82 \def\bq#1{`{}#1`{}} % back-quoted command
85 % Commonly used software systems
87 \def\EMACS/{{\sf EMACS}}
88 \def\INFO/{{\sf INFO}}
89 \def\MLisp/{{\sf MLisp}}
92 \def\UUCP/{{\sf UUCP}}
93 \def\SendMail/{{\sf SendMail}}
94 \def\Mail/{{\sf Mail}}
95 \def\sequences/{{sequences}}
96 \def\mh#1{{\sf mh.#1}}
97 \def\context/{\file{context}}
98 \def\profile/{\file{.mh\_profile}}
99 \def\whatnow/{{\tx What now?\/}}
101 \def\MMDF/{{\sf MMDF}}
102 \def\MMDFII/{{\sf MMDF-II}}
104 \def\AMSPPT.STY/{{\tt amsppt.sty}}
107 $\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}\kern-.125em
112 \def\DISS.STY/{{\tt diss.sty}}
113 \def\PhDTeX{PhD-\TeX}
115 \def\ROFF/{{\sf ROFF}}
117 \def\TTYD/{{\sf TTYD}}
120 \catcode`\@=12 % back to normal