Debian Codegraph @

texmf-dist/doc/otherformats/texsis/base/TXSdocM.doc

raw
1 %% file: TXSdocM.doc - Macros for the Manual - TeXsis 2.18
2 %% @(#) $Id: TXSdocM.doc,v 18.2 2000/05/17 00:19:46 myers Exp $
3 %======================================================================*
4 % (C) Copyright 1989, 1992, 1997 by Eric Myers and Frank E. Paige
5 % This file is a part of TeXsis. Distribution and/or modifications
6 % are allowed under the terms of the LaTeX Project Public License (LPPL).
7 % See the file COPYING or ftp://ftp.texsis.org/texsis/LPPL
8 %======================================================================*
9 % Document Format for the TeXsis manual:
10
11 \ATunlock % allow @ macros here
12 \twelvepoint
13 \singlespaced % single spaced
14 \singlelinetrue % for \description
15 \Contentsfalse % don't bother with table of contents (DRAFT)
16
17 \parskip=\medskipamount % some extra space between paragraphs
18 \EnvRightskip=0pt % allow environments all the way right
19 \RunningHeadstrue % do show running headlines
20
21 \input epsf % epsf figures
22
23 % We begin a new \section on a new page. This does it automatically:
24
25 \def\everysection{\vfill\eject}
26
27 \sectionminspace=0.25\vsize % subsections too
28 \subsectionskip=2\baselineskip
29
30
31 % -- Font selections:
32
33 \def\Tbf{\sixteenpoint\bf}
34 \def\tbf{\sixteenpoint\bf}
35 \def\HeadFont{\tenpoint\sl} % print running headlines in slanted type
36 \def\smalltt{\tenpoint\tt} % for long \TeXexample's
37 \def\em{\sl} % \em for emphasis
38
39 % -- some useful symbols and such
40
41 \def\bs{\char92} % '\' for macro names
42 \def\VT{\char'174} % vertical bar
43 \def\offtt{\TeXquoteoff\tt} % \tt with | allowed
44 \def\ttdots{{\tt\phantom{0}...\phantom{0}}}% '...' with correct spacing
45 \def\lb{{\tt\char'173}} % { in \tt
46 \def\rb{{\tt\char'175}} % } in \tt
47 \let\rqbrack=\} % save right curly bracket
48 \let\lqbrack=\{ % save left curly bracket
49
50
51 % \meta{stuff} was our way of doing <stuff> in text. Knuth used
52 % \<stuff> in the TeXbook, so I use that too. The only change
53 % I made was to force \rm -EAM
54
55 \def\<#1>{\leavevmode\hbox{$\langle$\rm #1\/$\rangle$}} % syntactic quantity
56 \def\meta#1{\leavevmode\hbox{$\langle$\rm #1\/$\rangle$}} % new \meta
57
58 % \arg is like \meta but it put's the <thing> in braces too.
59
60 \def\arg#1{\lb\<#1>\rb}
61
62 \def\Sect#1{Sect\-ion~\use{sect.#1}} % section number
63 \obsolete\SEC\Sect % old synonym
64
65 % \clump will ``clump'' closer together the material in a \definition
66 % or \itemize
67
68 \def\clump{% % "clump" \definitions and \itemize
69 \parskip=\baselineskip % \parskip is what \baselineskip was
70 \advance \parskip by 0pt plus 2pt % add some stretch
71 \singlespaced % singlespaced
72 \singlelinetrue} % long guys on own line
73
74 % -- the ``competition''
75
76 \def\TeXbook{{\sl The \TeX book}\index{TeXbook@{\TeXbook}}} % The TeXbook
77 \def\LaTeX{% the LaTeX symbol
78 {\rm L\kern -.36em\raise .3ex\hbox {A}\kern -.15em\TeX}}
79 \def\AmSTeX{% the AMSTeX symbol
80 $\cal A\kern-.1667em\lower.5ex\hbox{$\cal M$}\kern-.075em S$-\TeX}
81
82 \def\BibTeX{{\rm B\kern-.05em\hbox{$\scriptstyle\rm IB$}\kern-.08em\TeX}}
83
84 % modify \emsg to recognize thes
85
86 \def\emsg#1{\relax% write an error/information message to the screen
87 \begingroup % disable special characters
88 \def\@quote{"}% % to output "
89 \def\TeX{TeX}\def\label##1{}\def\use{\string\use}%
90 \def\BibTeX{BibTeX}\def\LaTeX{LaTeX}%
91 \def\ { }\def~{ }% spaces are spaces
92 \def\tt{}\def\bf{}\def\Tbf{}\def\tbf{}%
93 \def\break{}\def\n{}\def\singlespaced{}\def\doublespaced{}%
94 \immediate\write16{#1}%
95 \endgroup}
96
97
98 % -- some goodies from manmac.tex
99
100 \def\bull{\vrule height .9ex width .8ex depth -.1ex } % square bullet
101 \def\SS{{\it SS}} % scriptscript style
102 \def\|{\leavevmode\hbox{\tt\char`\|}} % vertical line
103 \def\dn{\leavevmode\hbox{\tt\char'14}} % downward arrow
104 \def\up{\leavevmode\hbox{\tt\char'13}} % upward arrow
105
106 \def\pt{\,{\rm pt}} % units of points, in math formulas
107
108 \def\oct#1{\hbox{\rm\'{}\kern-.2em\it#1\/\kern.05em}} % octal constant
109 \def\hex#1{\hbox{\rm\H{}\tt#1}} % hexadecimal constant
110 \def\cstok#1{\leavevmode\thinspace\hbox{\vrule\vtop{\vbox{\hrule\kern1pt
111 \hbox{\vphantom{\tt/}\thinspace{\tt#1}\thinspace}}
112 \kern1pt\hrule}\vrule}\thinspace} % control sequence token
113
114 % -- The index is constructed with index.tex and MakeIndex
115
116 \input index
117 \ATunlock % make sure @ is still a letter after index.tex
118 %%\markindextrue % proof marks for index entries (DRAFT ONLY)
119
120 % Use \cs{foo} to get \foo in \tt type and make an entry in the
121 % index. Use \CS{foo} to get \foo in \tt type and make an BOLD
122 % (defining) entry in the index.
123
124 \TeXquoteoff % be sure | in \index is not active
125
126 \def\cs#1{%
127 {\tt\bs #1}\index{#1@{\tt\bs #1}|pg}% % put it in text and index it.
128 \ifmarkindex % mark index entries in right margin?
129 \llap{\lower\jot\vbox to 0pt{\vss % box it
130 \tightboxit{\loosebox{\phantom{\tt\bs #1}}}}\hskip-\jot}%
131 \fi}
132
133 \def\CS#1{%
134 {\tt\bs #1}\index{#1@{\tt\bs #1}|bold}% % put it in text and index it.
135 \ifmarkindex % mark index entries in right margin?
136 \llap{\lower\jot\vbox to 0pt{\vss % box it
137 \tightboxit{\loosebox{\phantom{\tt\bs #1}}}}\hskip-\jot}%
138 \fi}
139
140 \TeXquoteon
141
142 %>>> EOF TXSdocM.doc <<<