| 1 |
%% |
| 2 |
%% This is file `startex.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% startex.dtx (with options: `code') |
| 8 |
%% |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 11 |
%% For the copyright see the source file. |
| 12 |
%% |
| 13 |
%% Any modified versions of this file must be renamed |
| 14 |
%% with new filenames distinct from startex.tex. |
| 15 |
%% |
| 16 |
%% For distribution of the original source see the terms |
| 17 |
%% for copying and modification in the file startex.dtx. |
| 18 |
%% |
| 19 |
%% This generated file may be distributed as long as the |
| 20 |
%% original source files, as listed above, are part of the |
| 21 |
%% same distribution. (The sources need not necessarily be |
| 22 |
%% in the same archive or directory.) |
| 23 |
\def \CodeVersion {1.04} |
| 24 |
\def \CodeDate {11th March 1999} |
| 25 |
%% \CharacterTable |
| 26 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 27 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 28 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 29 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 30 |
%% Dollar \$ Percent \% Ampersand \& |
| 31 |
%% Acute accent \' Left paren \( Right paren \) |
| 32 |
%% Asterisk \* Plus \+ Comma \, |
| 33 |
%% Minus \- Point \. Solidus \/ |
| 34 |
%% Colon \: Semicolon \; Less than \< |
| 35 |
%% Equals \= Greater than \> Question mark \? |
| 36 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 37 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 38 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 39 |
%% Right brace \} Tilde \~} |
| 40 |
\let \State = x |
| 41 |
\def \Command #1>{\ifDefining |
| 42 |
\def \Next {\lowercase{\DefineCmd{#1}}}% |
| 43 |
\else |
| 44 |
\lowercase{\expandafter\ifx \csname >#1\endcsname}\relax |
| 45 |
\Error{Unknown command <#1> ignored.}{}% |
| 46 |
\let \Next = \relax |
| 47 |
\else |
| 48 |
\def \Next {\lowercase{\csname >#1\endcsname}}% |
| 49 |
\fi |
| 50 |
\fi \Next } |
| 51 |
{\catcode `\< = \active \global\let < = \Command } |
| 52 |
\def \Cdef #1#2{\expandafter\gdef \csname >#1\endcsname{#2}} |
| 53 |
\def \Ccall #1{\csname >#1\endcsname} |
| 54 |
\newif \ifDefining |
| 55 |
\Cdef {define}{\Definingtrue} |
| 56 |
\def \DefineCmd #1{\Definingfalse |
| 57 |
\ifnum \CallLevel>0 |
| 58 |
\Error{Nested definitions are not allowed;}% |
| 59 |
{the definition of <#1> is ignored.}\let \Next = \relax |
| 60 |
\else |
| 61 |
\expandafter\ifx \csname>#1\endcsname\relax |
| 62 |
\def \Next {\begingroup \catcode`\^^M = 12 \FetchDef{#1}}% |
| 63 |
\else |
| 64 |
\Error{Command <#1> already defined;}{this definition ignored.}% |
| 65 |
\def \Next {\begingroup \catcode`\^^M = 12 \IgnoreDef{#1}}% |
| 66 |
\fi |
| 67 |
\fi \Next } |
| 68 |
\begingroup \catcode`\^^M = 12 |
| 69 |
\gdef \FetchDef #1#2^^M{\expandafter% |
| 70 |
\gdef\csname>#1\endcsname {\Call #2\Return }\endgroup }% |
| 71 |
\gdef \IgnoreDef #1#2^^M{\endgroup }% |
| 72 |
\endgroup |
| 73 |
\newcount \CallLevel |
| 74 |
\def \Call {\global\advance \CallLevel by 1 } |
| 75 |
\def \Return {\global\advance \CallLevel by -1 } |
| 76 |
\def \SpecialCatCodes {% |
| 77 |
\catcode `\\ = 12 \catcode `\{ = 12 \catcode `\} = 12 |
| 78 |
\catcode `\$ = 12 \catcode `\& = 12 \catcode `\# = 12 |
| 79 |
\catcode `\^ = 12 \catcode `\_ = 12 \catcode `\~ = 12 |
| 80 |
\catcode `\% = 12 \catcode `\< = \active } |
| 81 |
\def \StandardCatCodes {% |
| 82 |
\catcode `\\ = 0 \catcode `\{ = 1 \catcode `\} = 2 |
| 83 |
\catcode `\$ = 3 \catcode `\& = 4 \catcode `\# = 6 |
| 84 |
\catcode `\^ = 7 \catcode `\_ = 8 \catcode `\~ = \active |
| 85 |
\catcode `\% = 14 \catcode `\< = 12 } |
| 86 |
\def \NewEnvir #1#2#3{#2\relax |
| 87 |
\let \PrevEnv = \CurEnv \PrevEnvLine = \CurEnvLine |
| 88 |
\def \CurEnv {#1}\def \CurEnvExit {#3}\CurEnvLine = \inputlineno } |
| 89 |
\def \CurEnv {}\def \CurEnvExit {\relax} |
| 90 |
\newcount \CurEnvLine \newcount \PrevEnvLine |
| 91 |
\def \EndEnvir #1{% |
| 92 |
\ifTextEqual{#1}{\CurEnv}\let \Next = \CurEnvExit |
| 93 |
\else \EnvirError{#1}\fi |
| 94 |
\Next } |
| 95 |
\def \EnvirError #1{\ifTextEqual{#1}{\PrevEnv}% |
| 96 |
\Error{<\CurEnv> on line \the\CurEnvLine\space terminated by |
| 97 |
</#1>.}{An extra </\CurEnv> has been inserted.}% |
| 98 |
\def \Next {\CurEnvExit \CurEnvExit }% |
| 99 |
\else |
| 100 |
\Error{<\CurEnv> on line \the\CurEnvLine\space terminated by |
| 101 |
</#1>.}{The </#1> will be ignored.}% |
| 102 |
\let \Next = \relax |
| 103 |
\fi } |
| 104 |
\Cdef {style}{\IfNextChar{[}{\ReadStyle}% |
| 105 |
{\Error{No style name given;}{the syntax is: <style>[style name].}}} |
| 106 |
\def \ReadStyle [#1]{\IfFileExists{#1.stx}% |
| 107 |
{\edef \StyleLine {\the\inputlineno}% |
| 108 |
\Cdef {style}{\Error{Command <style> already used on line |
| 109 |
\StyleLine;}{this use of <style> is ignored.}}% |
| 110 |
\StandardCatCodes \input #1.stx |
| 111 |
\SpecialCatCodes }% |
| 112 |
{\Error{Style file `#1.stx' could not be found;}% |
| 113 |
{style definition ignored.}}} |
| 114 |
\def \FontDef #1#2#3#4#5#6{% |
| 115 |
\expandafter\def \csname F-#1S#2#3#4\endcsname {#5}% |
| 116 |
\expandafter\def \csname F-#1A#2#3#4\endcsname {#6}} |
| 117 |
\def \MathFontDef #1#2#3#4#5{% |
| 118 |
\expandafter\def \csname M-#1N#2\endcsname {#3}% |
| 119 |
\expandafter\def \csname M-#1S#2\endcsname {#4}% |
| 120 |
\expandafter\def \csname M-#1X#2\endcsname {#5}} |
| 121 |
\def \XIpt { at 10.95pt} |
| 122 |
\FontDef{R}{M}{U}{N}{ecrm1095}{tcrm1095} |
| 123 |
\FontDef{R}{M}{I}{N}{ecti1095}{tcti1095} |
| 124 |
\FontDef{R}{B}{U}{N}{ecbx1095}{tcbx1095} |
| 125 |
\FontDef{R}{B}{I}{N}{ecbi1095}{tcbi1095} |
| 126 |
\FontDef{T}{M}{U}{N}{ectt1095}{tctt1095} |
| 127 |
\FontDef{T}{M}{I}{N}{ecit1095}{tcit1095} |
| 128 |
\FontDef{T}{B}{U}{N}{ectt1095}{tctt1095} |
| 129 |
\FontDef{T}{B}{I}{N}{ecit1095}{tcit1095} |
| 130 |
\MathFontDef{N}{0}{cmr10\XIpt}{cmr8}{cmr6} |
| 131 |
\MathFontDef{N}{1}{cmmi10\XIpt}{cmmi8}{cmmi6} |
| 132 |
\MathFontDef{N}{2}{cmsy10\XIpt}{cmsy8}{cmsy6} |
| 133 |
\MathFontDef{N}{3}{cmex10\XIpt}{cmex10\XIpt}{cmex10\XIpt} |
| 134 |
\MathFontDef{N}{4}{cmbx10\XIpt}{cmbx8}{cmbx6} |
| 135 |
\MathFontDef{N}{5}{ecti1095}{ecti0800}{ecti0600} |
| 136 |
\MathFontDef{N}{6}{msbm10\XIpt}{msbm8}{msbm6} |
| 137 |
\def \LineSkipN {12pt} \def \CodeSkipN {11pt plus 0.0pt minus 0.1pt} |
| 138 |
\def \XIVpt { at 14.4pt} |
| 139 |
\FontDef{R}{M}{U}{L}{ecrm1440}{tcrm1440} |
| 140 |
\FontDef{R}{M}{I}{L}{ecti1440}{tcti1440} |
| 141 |
\FontDef{R}{B}{U}{L}{ecbx1440}{tcbx1440} |
| 142 |
\FontDef{R}{B}{I}{L}{ecbi1440}{tcbi1440} |
| 143 |
\FontDef{T}{M}{U}{L}{ectt1440}{tctt1440} |
| 144 |
\FontDef{T}{M}{I}{L}{ecit1440}{tcit1440} |
| 145 |
\FontDef{T}{B}{U}{L}{ectt1440}{tctt1440} |
| 146 |
\FontDef{T}{B}{I}{L}{ecit1440}{tcit1440} |
| 147 |
\MathFontDef{L}{0}{cmr12\XIVpt}{cmr10}{cmr8} |
| 148 |
\MathFontDef{L}{1}{cmmi12\XIVpt}{cmmi10}{cmmi8} |
| 149 |
\MathFontDef{L}{2}{cmsy10\XIVpt}{cmsy10}{cmsy8} |
| 150 |
\MathFontDef{L}{3}{cmex10\XIVpt}{cmex10\XIVpt}{cmex10\XIVpt} |
| 151 |
\MathFontDef{L}{4}{cmbx12\XIVpt}{cmbx10}{cmbx8} |
| 152 |
\MathFontDef{L}{5}{ecti1440}{ecti1000}{ecti0800} |
| 153 |
\MathFontDef{L}{6}{msbm10\XIVpt}{msbm10}{msbm8} |
| 154 |
\def \LineSkipL {15pt} |
| 155 |
\def \XVIIpt { at 17.28pt} |
| 156 |
\FontDef{R}{M}{U}{X}{ecrm1728}{tcrm1728} |
| 157 |
\FontDef{R}{M}{I}{X}{ecti1728}{tcti1728} |
| 158 |
\FontDef{R}{B}{U}{X}{ecbx1728}{tcbx1728} |
| 159 |
\FontDef{R}{B}{I}{X}{ecbi1728}{tcbi1728} |
| 160 |
\FontDef{T}{M}{U}{X}{ectt1728}{tctt1728} |
| 161 |
\FontDef{T}{M}{I}{X}{ecit1728}{tcit1728} |
| 162 |
\FontDef{T}{B}{U}{X}{ectt1728}{tctt1728} |
| 163 |
\FontDef{T}{B}{I}{X}{ecit1728}{tcit1728} |
| 164 |
\MathFontDef{X}{0}{cmr17}{cmr12\XIVpt}{cmr9} |
| 165 |
\MathFontDef{X}{1}{cmmi12\XVIIpt}{cmmi12}{cmmi9} |
| 166 |
\MathFontDef{X}{2}{cmsy10\XVIIpt}{cmsy10 at 12pt}{cmsy9} |
| 167 |
\MathFontDef{X}{3}{cmex10\XVIIpt}{cmex10\XVIIpt}{cmex10\XVIIpt} |
| 168 |
\MathFontDef{X}{4}{cmbx12\XVIIpt}{cmbx12}{cmbx9} |
| 169 |
\MathFontDef{X}{5}{ecti1728}{ecti1200}{ecti0900} |
| 170 |
\MathFontDef{X}{6}{msbm10\XVIIpt}{msbm10 at 12pt}{msbm9} |
| 171 |
\def \LineSkipX {17pt} |
| 172 |
\FontDef{R}{M}{U}{S}{ecrm1000}{tcrm1000} |
| 173 |
\FontDef{R}{M}{I}{S}{ecti1000}{tcti1000} |
| 174 |
\FontDef{R}{B}{U}{S}{ecbx1000}{tcbx1000} |
| 175 |
\FontDef{R}{B}{I}{S}{ecbi1000}{tcbi1000} |
| 176 |
\FontDef{T}{M}{U}{S}{ectt1000}{tctt1000} |
| 177 |
\FontDef{T}{M}{I}{S}{ecit1000}{tcit1000} |
| 178 |
\FontDef{T}{B}{U}{S}{ectt1000}{tctt1000} |
| 179 |
\FontDef{T}{B}{I}{S}{ecit1000}{tcit1000} |
| 180 |
\MathFontDef{S}{0}{cmr10}{cmr7}{cmr5} |
| 181 |
\MathFontDef{S}{1}{cmmi10}{cmmi7}{cmmi5} |
| 182 |
\MathFontDef{S}{2}{cmsy10}{cmsy7}{cmsy5} |
| 183 |
\MathFontDef{S}{3}{cmex10}{cmex10}{cmex10} |
| 184 |
\MathFontDef{S}{4}{cmbx10}{cmbx7}{cmbx5} |
| 185 |
\MathFontDef{S}{5}{ecti1000}{ecti0700}{ecti0500} |
| 186 |
\MathFontDef{S}{6}{msbm10}{msbm7}{msbm5} |
| 187 |
\def \LineSkipS {11pt} |
| 188 |
\def \SelectFont {% |
| 189 |
\edef \ThisFont {F-\FontKind\FontAlt\FontBold\FontItal\FontSize}% |
| 190 |
\font \CurFont = \csname\ThisFont\endcsname \CurFont } |
| 191 |
\def \ResetFont {% |
| 192 |
\def \FontKind{R}\def \FontAlt{S}\def \FontBold{M}% |
| 193 |
\def \FontItal{U}\def \FontSize{N}} |
| 194 |
\def \CheckItCorr {% |
| 195 |
\IfNextCharTwo{.}{,}{}{\/}} |
| 196 |
\def \SetSize #1{\def \FontSize{#1}\SelectFont |
| 197 |
\baselineskip = \csname LineSkip#1\endcsname |
| 198 |
\ParIndent = \StdParIndent } |
| 199 |
\Cdef {b}{\NewEnvir{b}{\begingroup}{\endgroup}% |
| 200 |
\def\FontBold{B}\SelectFont} |
| 201 |
\Cdef {/b}{\EndEnvir{b}} |
| 202 |
\Cdef {i}{\NewEnvir{i}{\begingroup}{\endgroup\CheckItCorr}% |
| 203 |
\def\FontItal{I}\SelectFont} |
| 204 |
\Cdef {/i}{\EndEnvir{i}} |
| 205 |
\Cdef {tt}{\NewEnvir{tt}{\begingroup}{\endgroup}% |
| 206 |
\def\FontKind{T}\SelectFont} |
| 207 |
\Cdef {/tt}{\EndEnvir{tt}} |
| 208 |
|
| 209 |
\Cdef {body}{\NewEnvir{body}{\begingroup}{\endgroup}% |
| 210 |
\message{^^JThis is StarTeX, version \CodeVersion^^J}% |
| 211 |
\global\everypar = {\NewPar }% |
| 212 |
\xdef \BodyLine {\the\inputlineno}% |
| 213 |
\Cdef {body}{\Error{Command <body> already used on line \BodyLine;}% |
| 214 |
{this use of <body> was ignored.}}} |
| 215 |
\def \BodyError {\message{^^JThis is StarTeX, version \CodeVersion^^J}% |
| 216 |
\Error{A <body>...</body> environment should surround |
| 217 |
the whole document.}{A missing <body> was inserted.}% |
| 218 |
\global\everypar = {\NewPar }} |
| 219 |
\Cdef {/body}{\EndEnvir{body}\endgraf\vfill\supereject |
| 220 |
\let \Next = \CheckAux |
| 221 |
\ifRerun \let \Next = \relax \fi |
| 222 |
\ifAuxRead \else \let \Next = \relax \fi |
| 223 |
\ifAuxOpen \else \let \Next = \relax \fi |
| 224 |
\Next |
| 225 |
\ifRerun \Warning{Cross-references are not correct;}% |
| 226 |
{please run StarTeX again.}\fi |
| 227 |
\end} |
| 228 |
\Cdef {p}{\endgraf} |
| 229 |
\def \par {} |
| 230 |
\pretolerance = 2500 \tolerance = 9999 \hbadness = 10000 |
| 231 |
\emergencystretch = 3cm |
| 232 |
\parindent = 0pt \everypar = {\BodyError } |
| 233 |
\def \NewPar {\ifIndent \kern \ParIndent \fi \Indenttrue |
| 234 |
\global\parskip = \CurParSkip } |
| 235 |
\newskip \ParIndent \def \StdParIndent {1em} |
| 236 |
\newif \ifIndent |
| 237 |
\newskip \CurParSkip |
| 238 |
\def \AddVspace #1{\ifvmode \else \endgraf \fi |
| 239 |
\skip1 = #1\relax |
| 240 |
\ifdim \lastskip < \skip1 \relax |
| 241 |
\ifdim \lastskip > 0pt \vskip -\lastskip \fi |
| 242 |
\vskip \skip1 |
| 243 |
\fi \parskip = 0pt \relax } |
| 244 |
\Cdef {title}{\AddVspace{30pt plus 10pt} |
| 245 |
\NewEnvir{title}{\begingroup}{\endgraf\endgroup} |
| 246 |
\leftskip = 2cm plus 1fill \rightskip = \leftskip |
| 247 |
\ParIndent = 0pt \CurParSkip = 0pt |
| 248 |
\ResetFont \SetSize{X}} |
| 249 |
\Cdef {/title}{\EndEnvir{title}% |
| 250 |
\AddVspace{20pt plus 4pt}} |
| 251 |
\Cdef {author}{\AddVspace{10pt plus 3pt} |
| 252 |
\NewEnvir{author}{\begingroup}{\endgraf\endgroup} |
| 253 |
\leftskip = 2cm plus 1fill \rightskip = \leftskip |
| 254 |
\ParIndent = 0pt \CurParSkip = 0pt |
| 255 |
\ResetFont \SetSize{L}} |
| 256 |
\Cdef {/author}{\EndEnvir{author}% |
| 257 |
\AddVspace{20pt plus 4pt}} |
| 258 |
\Cdef {info}{\AddVspace{10pt plus 3pt} |
| 259 |
\NewEnvir{info}{\begingroup}{\endgraf\endgroup} |
| 260 |
\leftskip = 2cm plus 1fill \rightskip = \leftskip |
| 261 |
\ParIndent = 0pt \CurParSkip = 0pt |
| 262 |
\ResetFont \SetSize{N}} |
| 263 |
\Cdef {/info}{\EndEnvir{info}% |
| 264 |
\AddVspace{20pt plus 4pt}} |
| 265 |
\Cdef {abstract}{\AddVspace{10pt plus 3pt} |
| 266 |
\NewEnvir{abstract}{\begingroup}{\endgraf\endgroup} |
| 267 |
\ResetFont \def \FontBold{B} \SetSize{S} \CurParSkip = 0pt |
| 268 |
\leftskip = 2cm \rightskip = \leftskip \Indentfalse |
| 269 |
\centerline{\AbstractName} |
| 270 |
\ResetFont \SetSize{S}\Indentfalse } |
| 271 |
\Cdef {/abstract}{\EndEnvir{abstract}% |
| 272 |
\AddVspace{10pt plus 2pt}} |
| 273 |
\newcount \SectI \newcount \SectII |
| 274 |
\newcount \SectIII \newcount \SectIV |
| 275 |
\def \Heading #1#2#3#4{\AddVspace{#1} |
| 276 |
\def \FontBold {#3} \SetSize{#2} |
| 277 |
\setbox0 = \hbox{#4\kern 0.5\baselineskip} |
| 278 |
\hangindent = \wd0 \hangafter = 1 \raggedright |
| 279 |
\ParIndent = 0pt \CurParSkip = 0pt \leavevmode \box0 } |
| 280 |
\Cdef {h1}{\endgraf |
| 281 |
\global\advance \SectI by 1 |
| 282 |
\global\SectII = 0 \global\SectIII = 0 \global\SectIV = 0 |
| 283 |
\edef \CurDef {\SectIim} |
| 284 |
\NewEnvir{h1}{\begingroup}{\endgroup} |
| 285 |
\Heading{24pt plus 12pt minus 3pt}{X}{B}{\SectIim}} |
| 286 |
\Cdef {/h1}{\endgraf |
| 287 |
\nobreak\vskip 6pt plus 1.5pt |
| 288 |
\EndEnvir{h1} \Indentfalse } |
| 289 |
\Cdef {h2}{\endgraf |
| 290 |
\global\advance \SectII by 1 |
| 291 |
\global\SectIII = 0 \global\SectIV = 0 |
| 292 |
\edef \CurDef {\SectIIim} |
| 293 |
\NewEnvir{h2}{\begingroup}{\endgroup} |
| 294 |
\Heading{14pt plus 7pt minus 2pt}{L}{B}{\SectIIim}} |
| 295 |
\Cdef {/h2}{\endgraf |
| 296 |
\nobreak\vskip 4pt plus 1pt |
| 297 |
\EndEnvir{h2}\Indentfalse } |
| 298 |
\Cdef {h3}{\endgraf |
| 299 |
\global\advance \SectIII by 1 \global\SectIV = 0 |
| 300 |
\edef \CurDef {\SectIIIim} |
| 301 |
\NewEnvir{h3}{\begingroup}{\endgroup} |
| 302 |
\Heading{10pt plus 5pt minus 1pt}{N}{B}{\SectIIIim}} |
| 303 |
\Cdef {/h3}{\endgraf |
| 304 |
\nobreak\vskip 2pt plus 1pt |
| 305 |
\EndEnvir{h3}\Indentfalse } |
| 306 |
\Cdef {h4}{\AddVspace{8pt plus 4pt minus 1pt} |
| 307 |
\global\advance \SectIV by 1 |
| 308 |
\edef \CurDef {\SectIVim} |
| 309 |
\NewEnvir{h4}{\begingroup}{\endgroup} |
| 310 |
\def \FontBold{B}\SelectFont \Indentfalse \SectIVim } |
| 311 |
\Cdef {/h4}{\kern 0.5\baselineskip |
| 312 |
\EndEnvir{h4}} |
| 313 |
\Cdef {list}{\AddVspace{\ListSkip} |
| 314 |
\NewEnvir{list}{\begingroup}{\endgroup} |
| 315 |
\advance \leftskip by \ListIndent |
| 316 |
\Indentfalse \CurParSkip = \ListSkip \ParIndent = 0pt |
| 317 |
\ItemCount = 0 } |
| 318 |
\Cdef {/list}{\endgraf |
| 319 |
\EndEnvir{list} \Indentfalse } |
| 320 |
\Cdef {item}{\endgraf \Indentfalse |
| 321 |
\leavevmode\llap{\BulletItemFormat}\ignorespaces } |
| 322 |
\Cdef {numitem}{\endgraf |
| 323 |
\advance \ItemCount by 1 \edef \CurDef {\the\ItemCount} |
| 324 |
\Indentfalse |
| 325 |
\leavevmode\llap{\NumItemFormat{\ItemCount}}\ignorespaces } |
| 326 |
\newcount \ItemCount |
| 327 |
\Cdef {textitem}{\endgraf |
| 328 |
\NewEnvir{textitem}{\begingroup}{\endgroup} |
| 329 |
\def \FontBold {B}\SelectFont \leavevmode \kern -\ListIndent |
| 330 |
\ignorespaces } |
| 331 |
\Cdef {/textitem}{\unskip |
| 332 |
\EndEnvir{textitem}% |
| 333 |
\hskip 1em \ignorespaces } |
| 334 |
\Cdef {display}{\AddVspace{\DisplayPreSkip} |
| 335 |
\NewEnvir{display}{\begingroup}{\endgroup}% |
| 336 |
\advance \leftskip by \DisplayIndent |
| 337 |
\advance \rightskip by \DisplayIndent |
| 338 |
\CurParSkip = \DisplayParSkip \ParIndent = 0pt \relax } |
| 339 |
\Cdef {/display}{\AddVspace{\DisplayPostSkip} |
| 340 |
\EndEnvir{display}} |
| 341 |
\newif \ifCodePar |
| 342 |
\def \CodeSetup {\ifvmode \CodePartrue \AddVspace{\DisplayPreSkip} |
| 343 |
\else \CodeParfalse \fi |
| 344 |
\def\FontKind{T}\SelectFont |
| 345 |
\baselineskip = \CodeSkipN \CurParSkip = 0pt \ParIndent = 0pt |
| 346 |
\catcode`\< = 12 \frenchspacing \obeylines \obeyspaces } |
| 347 |
\begingroup |
| 348 |
\catcode`\^^M = \active % |
| 349 |
\gdef\obeylines{\catcode`\^^M=\active \def^^M{\endgraf\leavevmode}}% |
| 350 |
\endgroup |
| 351 |
\begingroup |
| 352 |
\obeyspaces\gdef {\leavevmode\space}% |
| 353 |
\endgroup |
| 354 |
\def \CodeFinish {\ifCodePar |
| 355 |
\def \Next {\endgraf \vskip -\baselineskip \vskip \DisplayPostSkip |
| 356 |
\global\Indentfalse }% |
| 357 |
\else |
| 358 |
\let \Next = \relax |
| 359 |
\fi \Next } |
| 360 |
\Cdef {code}{\NewEnvir{code}{\begingroup}{\endgroup}% |
| 361 |
\CodeSetup \ReadCode } |
| 362 |
\begingroup |
| 363 |
\catcode `\< = 12 |
| 364 |
\gdef \ReadCode #1</code>{#1\CodeFinish\EndEnvir{code}}% |
| 365 |
\endgroup |
| 366 |
\Cdef {codefile}{\IfNextChar{[}% |
| 367 |
{\ReadCodeFile}% |
| 368 |
{\Error{No code file name given;}% |
| 369 |
{the syntax is <codefile>[file name].}}} |
| 370 |
\def \ReadCodeFile [#1]{\endgraf \begingroup |
| 371 |
\CodeSetup |
| 372 |
\IfFileExists{#1}{\input #1}% |
| 373 |
{\Error{Code file `#1' cound not be found.}{}} |
| 374 |
\CodeFinish \endgroup } |
| 375 |
\Cdef {footnote}{\NewEnvir{footnote}% |
| 376 |
{\global\advance \FootnoteCnt by 1 |
| 377 |
\footnote{\FootnoteIm{\FootnoteCnt}}\bgroup |
| 378 |
\edef \CurDef {\the\FootnoteCnt}}% |
| 379 |
{\egroup}% |
| 380 |
\ResetFont \SetSize{S}} |
| 381 |
\Cdef {/footnote}{\EndEnvir{footnote}} |
| 382 |
\newcount \FootnoteCnt |
| 383 |
\footline = {\ResetFont\SelectFont \hfil \folio \hfil} |
| 384 |
\def \DisplayIndent {\ListIndent} |
| 385 |
\def \DisplayParSkip {\ListParSkip} |
| 386 |
\def \DisplayPostSkip {5pt plus 2pt minus 1pt\relax} |
| 387 |
\def \DisplayPreSkip {5pt plus 2pt minus 1pt\relax} |
| 388 |
\def \ListIndent {25pt\relax} |
| 389 |
\def \ListParSkip {\ListSkip} |
| 390 |
\def \ListSkip {10pt plus 2pt minus 1pt\relax} |
| 391 |
\def \SectIim {\the\SectI} |
| 392 |
\def \SectIIim {\SectIim.\the\SectII} |
| 393 |
\def \SectIIIim {\SectIIim.\the\SectIII} |
| 394 |
\def \SectIVim {\SectIIIim.\the\SectIV} |
| 395 |
\def \FootnoteIm #1{$^{\the #1}$} |
| 396 |
\def \FigIm {\the\FigCnt} |
| 397 |
\def \TabIm {\the\TabCnt} |
| 398 |
\def \BulletItemFormat {$\bullet$\kern 6pt\relax} |
| 399 |
\def \NumItemFormat #1{\the#1.\kern 4pt\relax} |
| 400 |
\def \E #1#2{\catcode#1 = \active |
| 401 |
\begingroup \uccode`\~ = #1\uppercase{\endgroup \def ~{#2}}} |
| 402 |
\E{161}{\char189 } \E{163}{\char191 } \E{167}{\char159 } |
| 403 |
\E{171}{\char19 } \E{184}{\char11 } \E{187}{\char20 } |
| 404 |
\E{191}{\char190 } \E{223}{\char255 } \E{255}{\char184 } |
| 405 |
\def \CC #1{{\def\FontAlt{A}\SelectFont \char#1}} |
| 406 |
\E{162}{\CC{162}} \E{164}{\CC{164}} \E{165}{\CC{165}} |
| 407 |
\E{166}{\CC{166}} \E{168}{\CC{168}} \E{169}{\CC{169}} |
| 408 |
\E{170}{\CC{170}} \E{172}{\CC{172}} \E{174}{\CC{174}} |
| 409 |
\E{175}{\CC{175}} \E{176}{\CC{176}} \E{180}{\CC{180}} |
| 410 |
\E{182}{\CC{182}} \E{186}{\CC{186}} |
| 411 |
\def \MC #1#2{\ifmmode #2 \else \CC{#1}\fi } |
| 412 |
\E{177}{\MC{177}{\pm}} \E{178}{\MC{178}{^2{}}} |
| 413 |
\E{179}{\MC{179}{^3{}}} \E{181}{\MC{181}{\mu}} |
| 414 |
\E{183}{\MC{183}{\cdot}} \E{185}{\MC{185}{^1{}}} |
| 415 |
\E{188}{\MC{188}{{1\over4}}} \E{189}{\MC{189}{{1\over2}}} |
| 416 |
\E{190}{\MC{190}{{3\over4}}} \E{215}{\MC{214}{\times}} |
| 417 |
\E{247}{\MC{246}{\div}} |
| 418 |
\E{160}{\nobreak\ } |
| 419 |
\E{173}{\-} |
| 420 |
\def \AbstractName {Abstract} |
| 421 |
\def \FigureName {Figure} |
| 422 |
\def \TableName {Table} |
| 423 |
\def \TimeSep {:} |
| 424 |
\Cdef {today}{\the\day\Th{\day} \Month\space\the\year} |
| 425 |
\def \Month {\ifcase \month \or January\or February\or March\or |
| 426 |
April\or May\or June\or July\or August\or September\or |
| 427 |
October\or November\or December\fi } |
| 428 |
\def \Th #1{% |
| 429 |
\ifnum #1=1 st\else\ifnum #1=21 st\else\ifnum #1=31 st\else |
| 430 |
\ifnum #1=2 nd\else\ifnum #1=22 nd\else |
| 431 |
\ifnum #1=3 rd\else\ifnum #1=23 rd\else th\fi\fi\fi\fi\fi\fi\fi } |
| 432 |
\Cdef {now}{\Minutes = \time \Hours = \Minutes |
| 433 |
\divide \Hours by 60 \Htemp = \Hours \multiply \Htemp by -60 |
| 434 |
\advance \Minutes by \Htemp |
| 435 |
\the\Hours \TimeSep \ifnum \Minutes > 9 \else 0\fi \the\Minutes } |
| 436 |
\newcount \Minutes \newcount \Hours \newcount \Htemp |
| 437 |
\mathcode`< = "8000 |
| 438 |
\Cdef {math}{\MathFonts \NewEnvir{math}{$}{$}} |
| 439 |
\Cdef {/math}{\EndEnvir{math}} |
| 440 |
\Cdef {displaymath}{\endgraf \MathFonts \NewEnvir{displaymath}{$$}{$$}} |
| 441 |
\Cdef {/displaymath}{\EndEnvir{displaymath}} |
| 442 |
\def \MSetFont #1#2{\font \NewMFont = \csname #2\endcsname |
| 443 |
#1 = \NewMFont } |
| 444 |
\def \MathFonts {\if \FontSize \LastMathSize \else |
| 445 |
\MSetFont{\textfont0}{M-\FontSize N0}% |
| 446 |
\MSetFont{\scriptfont0}{M-\FontSize S0}% |
| 447 |
\MSetFont{\scriptscriptfont0}{M-\FontSize X0}% |
| 448 |
\MSetFont{\textfont1}{M-\FontSize N1}% |
| 449 |
\MSetFont{\scriptfont1}{M-\FontSize S1}% |
| 450 |
\MSetFont{\scriptscriptfont1}{M-\FontSize X1}% |
| 451 |
\MSetFont{\textfont2}{M-\FontSize N2}% |
| 452 |
\MSetFont{\scriptfont2}{M-\FontSize S2}% |
| 453 |
\MSetFont{\scriptscriptfont2}{M-\FontSize X2}% |
| 454 |
\MSetFont{\textfont3}{M-\FontSize N3}% |
| 455 |
\MSetFont{\scriptfont3}{M-\FontSize S3}% |
| 456 |
\MSetFont{\scriptscriptfont3}{M-\FontSize X3}% |
| 457 |
\MSetFont{\textfont4}{M-\FontSize N4}% |
| 458 |
\MSetFont{\scriptfont4}{M-\FontSize S4}% |
| 459 |
\MSetFont{\scriptscriptfont4}{M-\FontSize X4}% |
| 460 |
\MSetFont{\textfont5}{M-\FontSize N5}% |
| 461 |
\MSetFont{\scriptfont5}{M-\FontSize S5}% |
| 462 |
\MSetFont{\scriptscriptfont5}{M-\FontSize X5}% |
| 463 |
\MSetFont{\textfont6}{M-\FontSize N6}% |
| 464 |
\MSetFont{\scriptfont6}{M-\FontSize S6}% |
| 465 |
\MSetFont{\scriptscriptfont6}{M-\FontSize X6}% |
| 466 |
\let \LastMathSize = \FontSize |
| 467 |
\fi } |
| 468 |
\def \LastMathSize {?} |
| 469 |
\def \Df #1{\mathcode"#1 = "05#1 \relax } |
| 470 |
\Df{C0}\Df{C1}\Df{C2}\Df{C3}\Df{C4}\Df{C5}\Df{C6}\Df{C7} |
| 471 |
\Df{C8}\Df{C9}\Df{CA}\Df{CB}\Df{CC}\Df{CD}\Df{CE}\Df{CF} |
| 472 |
\Df{D0}\Df{D1}\Df{D2}\Df{D3}\Df{D4}\Df{D5}\Df{D6} |
| 473 |
\Df{D8}\Df{D9}\Df{DA}\Df{DB}\Df{DC}\Df{DD}\Df{DE}\Df{DF} |
| 474 |
\Df{E0}\Df{E1}\Df{E2}\Df{E3}\Df{E4}\Df{E5}\Df{E6}\Df{E7} |
| 475 |
\Df{E8}\Df{E9}\Df{EA}\Df{EB}\Df{EC}\Df{ED}\Df{EE}\Df{EF} |
| 476 |
\Df{F0}\Df{F1}\Df{F2}\Df{F3}\Df{F4}\Df{F5}\Df{F6} |
| 477 |
\Df{F8}\Df{F9}\Df{FA}\Df{FB}\Df{FC}\Df{FD}\Df{FE}\Df{FF} |
| 478 |
\def \Df #1#2#3{\Cdef{bold#1}{\MSy{\mathchar"04#2}}% |
| 479 |
\Cdef{bolduc#1}{\MSy{\mathchar"04#3}}} |
| 480 |
\Df{a}{61}{41}\Df{b}{62}{42}\Df{c}{63}{43}\Df{d}{64}{44} |
| 481 |
\Df{e}{65}{45}\Df{f}{66}{46}\Df{g}{67}{47}\Df{h}{68}{48} |
| 482 |
\Df{i}{69}{49}\Df{j}{6A}{4A}\Df{k}{6B}{4B}\Df{l}{6C}{4C} |
| 483 |
\Df{m}{6D}{4D}\Df{n}{6E}{4E}\Df{o}{6F}{4F}\Df{p}{70}{50} |
| 484 |
\Df{q}{71}{51}\Df{r}{72}{52}\Df{s}{73}{53}\Df{t}{74}{54} |
| 485 |
\Df{u}{75}{55}\Df{v}{76}{56}\Df{w}{77}{57}\Df{x}{78}{58} |
| 486 |
\Df{y}{79}{59}\Df{z}{7A}{5A} |
| 487 |
\def \MSy #1{\ifmmode #1\else $#1$\fi } |
| 488 |
\def \MOp #1#2{\ifmmode \def \MNext {#2}\else |
| 489 |
\Error{Command <#1> is only allowed in math mode;}% |
| 490 |
{command ignored.}\let \MNext = \relax \fi |
| 491 |
\MNext } |
| 492 |
\def \Mdef #1{\Cdef{#1}{\MSy{\csname #1\endcsname}}} |
| 493 |
\def \Odef #1{\Cdef{#1}{\MOp{#1}{\csname #1\endcsname}}} |
| 494 |
\Mdef{amalg} \Mdef{bigcirc} \Mdef{bigtriangleup} |
| 495 |
\Mdef{bigtriangledown} \Mdef{bullet} \Mdef{cap} \Mdef{circ} |
| 496 |
\Mdef{cup} \Mdef{dagger} \Mdef{ddagger} \Mdef{diamond} \Mdef{mp} |
| 497 |
\Mdef{odot} \Mdef{ominus} \Mdef{oplus} \Mdef{oslash} \Mdef{otimes} |
| 498 |
\Mdef{setminus} \Mdef{sqcap} \Mdef{sqcup} \Mdef{star} |
| 499 |
\Mdef{triangleleft} \Mdef{triangleright} \Mdef{uplus} \Mdef{vee} |
| 500 |
\Mdef{wedge} \Mdef{wr} |
| 501 |
\Mdef{approx} \Mdef{asymp} \Mdef{bowtie} \Mdef{cong} \Mdef{doteq} |
| 502 |
\Mdef{dashv} \Mdef{equiv} \Mdef{frown} \Mdef{geq} \Mdef{gg} \Mdef{in} |
| 503 |
\Mdef{leq} \Mdef{ll} \Mdef{mid} \Mdef{models} \Mdef{neq} \Mdef{ni} |
| 504 |
\Mdef{notin} \Mdef{parallel} \Mdef{perp} \Mdef{prec} \Mdef{preceq} |
| 505 |
\Mdef{propto} \Mdef{sim} \Mdef{simeq} \Mdef{smile} \Mdef{sqsubseteq} |
| 506 |
\Mdef{sqsupseteq} \Mdef{subset} \Mdef{subseteq} \Mdef{supset} |
| 507 |
\Mdef{supseteq} \Mdef{succ} \Mdef{succeq} \Mdef{vdash} |
| 508 |
\Cdef{gt}{>} |
| 509 |
\Cdef{lt}{\ifmmode \mathchar"313C \else <\fi} |
| 510 |
\Mdef{langle} \Mdef{lceil} \Mdef{lfloor} \Mdef{rangle} |
| 511 |
\Mdef{rceil} \Mdef{rfloor} |
| 512 |
\Mdef{leftarrow} \Mdef{rightarrow} \Mdef{leftrightarrow} |
| 513 |
\Mdef{longleftarrow} \Mdef{longrightarrow} \Mdef{longleftrightarrow} |
| 514 |
\Mdef{uparrow} \Mdef{downarrow} |
| 515 |
\Mdef{updownarrow} \Mdef{nearrow} \Mdef{nwarrow} \Mdef{searrow} |
| 516 |
\Mdef{swarrow} \Mdef{mapsto} \Mdef{longmapsto} \Mdef{hookleftarrow} |
| 517 |
\Mdef{hookrightarrow} \Mdef{leftharpoonup} \Mdef{rightharpoonup} |
| 518 |
\Mdef{leftharpoondown} \Mdef{rightharpoondown} \Mdef{rightleftharpoons} |
| 519 |
\Cdef{doubleleftarrow}{\MSy{\Leftarrow}} |
| 520 |
\Cdef{doublerightarrow}{\MSy{\Rightarrow}} |
| 521 |
\Cdef{doubleleftrightarrow}{\MSy{\Leftrightarrow}} |
| 522 |
\Cdef{doublelongleftarrow}{\MSy{\Longleftarrow}} |
| 523 |
\Cdef{doublelongrightarrow}{\MSy{\Longrightarrow}} |
| 524 |
\Cdef{doublelongleftrightarrow}{\MSy{\Longleftrightarrow}} |
| 525 |
\Cdef{doubleuparrow}{\MSy{\Uparrow}} |
| 526 |
\Cdef{doubledownarrow}{\MSy{\Downarrow}} |
| 527 |
\Cdef{doubleupdownarrow}{\MSy{\Updownarrow}} |
| 528 |
\Odef{bigcap} \Odef{bigcup} \Odef{bigodot} \Odef{bigoplus} |
| 529 |
\Odef{bigotimes} \Odef{bigsqcup} \Odef{biguplus} \Odef{bigvee} |
| 530 |
\Odef{bigwedge} \Odef{int} \Odef{oint} \Odef{prod} \Odef{sum} |
| 531 |
\Mdef{arccos} \Mdef{arcsin} \Mdef{arctan} \Mdef{arg} \Mdef{cos} |
| 532 |
\Mdef{cosh} \Mdef{cot} \Mdef{coth} \Mdef{csc} \Mdef{deg} \Mdef{det} |
| 533 |
\Mdef{dim} \Mdef{exp} \Mdef{gcd} \Mdef{hom} \Mdef{inf} \Mdef{ker} |
| 534 |
\Mdef{lg} \Mdef{lim} \Mdef{liminf} \Mdef{limsup} \Mdef{ln} |
| 535 |
\Mdef{log} \Mdef{max} \Mdef{min} \Mdef{sec} \Mdef{sin} \Mdef{sinh} |
| 536 |
\Cdef{sup-op}{\MSy{\sup}} \Mdef{tan} \Mdef{tanh} |
| 537 |
\Cdef{pr}{\MSy{\Pr}} |
| 538 |
\Mdef{alpha} \Mdef{beta} \Mdef{gamma} \Mdef{delta} \Mdef{epsilon} |
| 539 |
\Mdef{varepsilon} \Mdef{zeta} \Mdef{eta} \Mdef{theta} \Mdef{vartheta} |
| 540 |
\Mdef{iota} \Mdef{kappa} \Mdef{lambda} \Mdef{mu} \Mdef{nu} \Mdef{xi} |
| 541 |
\Cdef {omicron}{\MSy{o}} \Mdef{pi} \Mdef{varpi} \Mdef{rho} \Mdef{varrho} |
| 542 |
\Mdef{sigma} \Mdef{varsigma} \Mdef{tau} \Mdef{upsilon} \Mdef{phi} |
| 543 |
\Mdef{varphi} \Mdef{chi} \Mdef{psi} \Mdef{omega} |
| 544 |
\def \Df #1#2{\Cdef{#1}{\MSy{\mathchar"#2}}} |
| 545 |
\Df{ucalpha}{0041} \Df{ucbeta}{0042} \Df{ucgamma}{0000} |
| 546 |
\Df{ucdelta}{0001} \Df{ucepsilon}{0045} \Df{uczeta}{005A} |
| 547 |
\Df{uceta}{0048} \Df{uctheta}{0002} \Df{uciota}{0049} |
| 548 |
\Df{uckappa}{004B} \Df{uclambda}{0003} \Df{ucmu}{004D} |
| 549 |
\Df{ucnu}{004E} \Df{ucxi}{0004} \Df{ucomicron}{004F} |
| 550 |
\Df{ucpi}{0005} \Df{ucrho}{0050} \Df{ucsigma}{0006} |
| 551 |
\Df{uctau}{0054} \Df{ucupsilon}{0007} \Df{ucphi}{0008} |
| 552 |
\Df{ucchi}{0058} \Df{ucpsi}{0009} \Df{ucomega}{000a} |
| 553 |
\def \Df #1#2{\Cdef{#1}{\MSy{\mathchar"06#2}}} |
| 554 |
\Df{cset}{43} \Df{nset}{4E} \Df{rset}{52} \Df{zset}{5A} |
| 555 |
\def \Df #1#2{\Cdef{cal#1}{\MSy{\mathchar"02#2}}} |
| 556 |
\Df{a}{41} \Df{b}{42} \Df{c}{43} \Df{d}{44} \Df{e}{45} |
| 557 |
\Df{f}{46} \Df{g}{47} \Df{h}{48} \Df{i}{49} \Df{j}{4A} |
| 558 |
\Df{k}{4B} \Df{l}{4C} \Df{m}{4D} \Df{n}{4E} \Df{o}{4F} |
| 559 |
\Df{p}{50} \Df{q}{51} \Df{r}{52} \Df{s}{53} \Df{t}{54} |
| 560 |
\Df{u}{55} \Df{v}{56} \Df{w}{57} \Df{x}{58} \Df{y}{59} |
| 561 |
\Df{z}{5A} |
| 562 |
\Mdef{aleph} \Mdef{angle} \Mdef{bot} \Mdef{ell} \Mdef{emptyset} |
| 563 |
\Mdef{exists} \Mdef{forall} \Mdef{hbar} \Mdef{nabla} \Mdef{neg} |
| 564 |
\Odef{not} \Mdef{partial} \Mdef{surd} \Mdef{top} \Mdef{wp} |
| 565 |
\Cdef{infinity}{\MSy{\infty}} \Cdef{im}{\MSy{\Im}} \Cdef{re}{\MSy{\Re}} |
| 566 |
\Cdef{,}{{,}} |
| 567 |
\Cdef{:}{\MSy{\vdots}} |
| 568 |
\Cdef{:::}{\MSy{\cdots}} |
| 569 |
\Cdef{...}{\MSy{\ldots}\hskip 0.001pt \relax } |
| 570 |
\Cdef {sub}{\MOp{sub}{\NewEnvir{sub}{_\bgroup}{\egroup}}} |
| 571 |
\Cdef {/sub}{\MOp{/sub}{\EndEnvir{sub}}} |
| 572 |
\Cdef {sup}{\MOp{sup}{\NewEnvir{sup}{^\bgroup}{\egroup}}} |
| 573 |
\Cdef {/sup}{\MOp{/sup}{\EndEnvir{sup}}} |
| 574 |
\Cdef {frac}{\MOp{frac}{\NewEnvir{frac}{\bgroup}{\egroup}% |
| 575 |
\NOver = 0\relax}} |
| 576 |
\Cdef {over}{\MOp{over}{\FracOver}} |
| 577 |
\Cdef {/frac}{\MOp{/frac}{\ifnum \NOver = 0 |
| 578 |
\Error{No <over> in the <frac>...<over>...</frac> environment.}{}\fi |
| 579 |
\EndEnvir{frac}}} |
| 580 |
\def \FracOver {\ifTextEqual{\CurEnv}{frac}% |
| 581 |
\ifnum \NOver = 0 \over |
| 582 |
\else \Error{Only one <over> may occur in each <frac>...</frac> |
| 583 |
environment.}{}% |
| 584 |
\fi \advance \NOver by 1 |
| 585 |
\else \Error{<over> only allowed in a |
| 586 |
<frac>...<over>...</frac> environment.}{}% |
| 587 |
\fi } |
| 588 |
\newcount \NOver |
| 589 |
\Cdef {sqrt}{\MOp{sqrt}{\NewEnvir{sqrt}{\sqrt\bgroup}{\egroup}}} |
| 590 |
\Cdef {/sqrt}{\MOp{/sqrt}{\EndEnvir{sqrt}}} |
| 591 |
\Cdef {psfig}{\if \State x \let \Next = \PSfig \else |
| 592 |
\let \Next = \PSfigError \fi |
| 593 |
\Next } |
| 594 |
\Cdef {/psfig}{\AddVspace{6pt plus 1pt} |
| 595 |
\ifx \PSfile \relax \else |
| 596 |
\centerline{\epsfbox{\PSfile}}% |
| 597 |
\AddVspace{10pt plus 2pt minus 1pt} |
| 598 |
\fi |
| 599 |
\EndEnvir{psfig}} |
| 600 |
\input epsf.tex |
| 601 |
\def \PSfig{\NewEnvir{psfig}{\topinsert}{\endinsert} |
| 602 |
\let \PSfile = \relax \let \State = p |
| 603 |
\IfNextChar{[}% |
| 604 |
{\PSfetch}% |
| 605 |
{\Error{No file name for PostScript figure;}% |
| 606 |
{the syntax is: <psfig>[file name]caption text</psfig>.}% |
| 607 |
\PScaption}} |
| 608 |
\def \PSfigError {\endgraf |
| 609 |
\Error{Calls on <psfig> not allowed inside <psfig> or <table>;}% |
| 610 |
{the command was ignored.}% |
| 611 |
\NewEnvir{psfig}{\begingroup}{\endgroup}} |
| 612 |
\def \PSfetch [#1]{\IfFileExists{#1}% |
| 613 |
{\gdef \PSfile {#1}}% |
| 614 |
{\Error{PostScript file `#1' could not be found.}{}}% |
| 615 |
\PScaption } |
| 616 |
\def \epsfsize #1#2{0pt \dimen1 = 0.8\hsize \dimen2 = 0.4\vsize |
| 617 |
\floatdiv{\dimen2}{#1}{#2}% |
| 618 |
\ifdim \dimen1 < \divres \epsfxsize = 0.8\hsize |
| 619 |
\else \epsfysize = 0.4\vsize \fi } |
| 620 |
\def \PScaption {\global\advance \FigCnt by 1 |
| 621 |
\edef \CurDef {\the\FigCnt} |
| 622 |
\leftskip = 0.1\hsize \rightskip = \leftskip |
| 623 |
\ResetFont \SetSize{S}\Indentfalse |
| 624 |
\FigureName~\FigIm: \ignorespaces } |
| 625 |
\newcount \FigCnt |
| 626 |
\Cdef {table}{\if \State x\let \Next = \Table \else |
| 627 |
\let \Next = \TableError \fi |
| 628 |
\Next } |
| 629 |
\Cdef {/table}{\EndEnvir{table}} |
| 630 |
\newbox \TableBox |
| 631 |
\def \Table{\topinsert |
| 632 |
\NewEnvir{table}{\TableCaption}{\LastRow\endinsert}% |
| 633 |
\let \State = t} |
| 634 |
\def \TableCaption {\global\advance \TabCnt by 1 |
| 635 |
\edef \CurDef {\the\TabCnt} |
| 636 |
\leftskip = 0.1\hsize \rightskip = \leftskip |
| 637 |
\ResetFont \SetSize{S}\Indentfalse |
| 638 |
\TableName~\TabIm: \ignorespaces } |
| 639 |
\newcount \TabCnt |
| 640 |
\def \TableError {\endgraf |
| 641 |
\Error{Calls on <table> not allowed inside <psfig> |
| 642 |
or <table>;}{the command was ignored.}% |
| 643 |
\NewEnvir{table}{\begingroup}{\endgroup}} |
| 644 |
\Cdef {row}{\Row} |
| 645 |
\def \Row {\if \State t\FirstRow\NewRow \else |
| 646 |
\if \State r\EndRow\NewRow \else |
| 647 |
\Error{The <row> command is only allowed inside a |
| 648 |
<table>.}{The command was ignored.}\fi\fi } |
| 649 |
\def \FirstRow {\endgraf \ResetFont \SelectFont \let \State = r% |
| 650 |
\setbox\TableBox = \hbox\bgroup \vbox\bgroup \offinterlineskip |
| 651 |
\halign\bgroup \vrule ##\strut&& |
| 652 |
\kern 6pt \hfil ##\unskip \hfil \kern 6pt \vrule \cr |
| 653 |
\noalign{\hrule}} |
| 654 |
\def \NewRow {&} |
| 655 |
\def \EndRow {\cr \noalign{\hrule}} |
| 656 |
\def \LastRow {\if \State r\EndRow\PrintTable\fi} |
| 657 |
\def \PrintTable {\egroup\egroup\egroup |
| 658 |
\AddVspace{6pt plus 2pt minus 1pt} |
| 659 |
\centerline{\box\TableBox}% |
| 660 |
\AddVspace{10pt plus 4pt minus 2pt}} |
| 661 |
\Cdef {col}{\if \State r&\else |
| 662 |
\Error{The <col> command is only allowed after a <row> |
| 663 |
inside a <table>.}{The command was ignored.}\fi} |
| 664 |
\newif \ifAuxOpen |
| 665 |
\Cdef {label}{\IfNextChar{[}% |
| 666 |
{\begingroup \catcode`\< = 12 \NewLabel}% |
| 667 |
{\Error{No label given;}% |
| 668 |
{the syntax is <label>[your label].}}} |
| 669 |
\def \NewLabel [#1]{\endgroup |
| 670 |
\ifAuxRead \else \ReadAuxFile \fi |
| 671 |
\ifAuxOpen \else |
| 672 |
\immediate\openout \NewAuxFile = \jobname.aux |
| 673 |
\global\AuxOpentrue \fi |
| 674 |
\expandafter\ifx \csname L]#1\endcsname \relax |
| 675 |
\expandafter\edef \csname L]#1\endcsname{\the\inputlineno}% |
| 676 |
{\let \the = 0\relax |
| 677 |
\edef \WriteCurDef {\write \NewAuxFile |
| 678 |
{\string\LabelDef |
| 679 |
]#1]\the\pageno]\CurDef E-o-LabelDef\string\relax}}% |
| 680 |
\WriteCurDef }% |
| 681 |
\else |
| 682 |
\Error{Label `#1' already defined on line \csname L]#1\endcsname;}% |
| 683 |
{this definition is ignored.}% |
| 684 |
\fi } |
| 685 |
\newwrite \NewAuxFile |
| 686 |
\edef \CurDef {0} |
| 687 |
\def \ReadAuxFile {\IfFileExists{\jobname.aux}% |
| 688 |
{\begingroup |
| 689 |
\def \LabelDef {\begingroup |
| 690 |
\catcode `\\ = 12\relax \FetchLabel }% |
| 691 |
\catcode `\< = 12 \catcode `\\ = 0\relax |
| 692 |
\input \jobname.aux |
| 693 |
\global\AuxReadtrue |
| 694 |
\endgroup }% |
| 695 |
{\global\Reruntrue}} |
| 696 |
\def \FetchLabel ]#1]#2]#3E-o-LabelDef{% |
| 697 |
\expandafter\gdef \csname R]#1\endcsname {#3}% |
| 698 |
\expandafter\gdef \csname P]#1\endcsname {#2}% |
| 699 |
\endgroup } |
| 700 |
\newif \ifAuxRead |
| 701 |
\newif \ifRerun |
| 702 |
\def \CheckAux {\immediate\closeout \NewAuxFile |
| 703 |
\begingroup |
| 704 |
\def \LabelDef {\begingroup |
| 705 |
\catcode `\\ = 12 \relax \CheckLabel }% |
| 706 |
\catcode `\< = 12 \catcode `\\ = 0\relax |
| 707 |
\input \jobname.aux |
| 708 |
\endgroup } |
| 709 |
\def \CheckLabel ]#1]#2]#3E-o-LabelDef{% |
| 710 |
\ifTextEqual{#2++#3}% |
| 711 |
{\csname P]#1\endcsname++\csname R]#1\endcsname}% |
| 712 |
\else |
| 713 |
\global\Reruntrue |
| 714 |
\fi \endgroup } |
| 715 |
\Cdef {ref}{\IfNextChar{[}% |
| 716 |
{\begingroup \catcode `\< = 12 \relax \GiveRef }% |
| 717 |
{\Error{No label referenced;}{the syntax is <ref>[your label].}}} |
| 718 |
\def \GiveRef [#1]{\ifAuxRead \else \ReadAuxFile \fi |
| 719 |
\expandafter\ifx \csname R]#1\endcsname \relax |
| 720 |
[label #1]% |
| 721 |
\Error{Label `#1' not defined.}{}\global\Reruntrue |
| 722 |
\else |
| 723 |
\RefFormat{\csname R]#1\endcsname}{\csname P]#1\endcsname}% |
| 724 |
\fi \endgroup } |
| 725 |
\def \RefFormat #1#2{#1\ifTextEqual{#2}{\the\pageno}\else |
| 726 |
\space on page~#2\fi } |
| 727 |
{\catcode`\~ = 12 \Cdef {~}{\nobreak\ }} |
| 728 |
\Cdef {}{\null} |
| 729 |
\Cdef {-}{\-} \Cdef {--}{--} \Cdef {---}{---} |
| 730 |
\Cdef {``}{``} \Cdef {''}{''} |
| 731 |
\Cdef {tex}{\TeX} \Cdef {latex}{La\TeX} \Cdef {startex}{Star\TeX} |
| 732 |
\def \Error #1#2{% |
| 733 |
\message{^^J** StarTeX error detected on line \the\inputlineno:^^J}% |
| 734 |
\message{\space\space\space #1^^J}% |
| 735 |
\ifTextEqual{#2}{}\else \message{\space\space\space #2^^J}\fi} |
| 736 |
\def \Warning #1#2{% |
| 737 |
\message{^^J** StarTeX warning:^^J}% |
| 738 |
\message{\space\space\space #1^^J}% |
| 739 |
\ifTextEqual{#2}{}\else \message{\space\space\space #2^^J}\fi} |
| 740 |
\newlinechar = `^^J |
| 741 |
\Cdef {comment}{\NewEnvir{comment}{\begingroup}{\endgroup}% |
| 742 |
\catcode `\< = 12 \SkipComment } |
| 743 |
{\catcode `\< = 12 |
| 744 |
\gdef \SkipComment #1</comment>{\EndEnvir{comment}}} |
| 745 |
\def \ifTextEqual #1#2{\edef \TmpA {#1}\edef \TmpB {#2}% |
| 746 |
\ifx \TmpA\TmpB } |
| 747 |
\def \IfNextChar #1#2#3{\def \TestChar {#1}% |
| 748 |
\def \AltA {#2}\def \AltB {#3}% |
| 749 |
\futurelet \NextChar \TestNextChar } |
| 750 |
\def \TestNextChar {% |
| 751 |
\if \NextChar \TestChar \let\Next=\AltA \else \let\Next=\AltB \fi |
| 752 |
\Next } |
| 753 |
\def \IfNextCharTwo #1#2#3#4{\def \TestChar {#1}\def \TestCharX {#2}% |
| 754 |
\def \AltA {#3}\def \AltB {#4}% |
| 755 |
\futurelet \NextChar \TestNextCharTwo } |
| 756 |
\def \TestNextCharTwo {% |
| 757 |
\if \NextChar \TestChar \let \Next = \AltA \else |
| 758 |
\if \NextChar \TestCharX \let \Next = \AltA \else |
| 759 |
\let \Next = \AltB |
| 760 |
\fi \fi |
| 761 |
\Next } |
| 762 |
\def \floatdiv #1#2#3{\divtemp = #1\divide \divtemp by #3% |
| 763 |
\divres = #2\multiply \divres by \divtemp |
| 764 |
\multiply \divtemp by #3% |
| 765 |
\divrem = #1\advance \divrem by -\divtemp |
| 766 |
\divtemp = #2% |
| 767 |
\loop |
| 768 |
\multiply \divrem by 2 \divide \divtemp by 2 |
| 769 |
\ifnum \divtemp > 0 |
| 770 |
\ifnum \divrem < #3\else |
| 771 |
\advance \divrem by -#3\advance \divres by \divtemp |
| 772 |
\fi |
| 773 |
\repeat } |
| 774 |
\newdimen \divrem \newdimen \divres \newdimen \divtemp |
| 775 |
\def \IfFileExists #1#2#3{\openin\TestFile = #1 |
| 776 |
\ifeof\TestFile \def \Next {#3}\else |
| 777 |
\closein\TestFile \def \Next {#2}\fi |
| 778 |
\Next } |
| 779 |
\newread \TestFile |
| 780 |
\Cdef {make-new-format}{\dump} |
| 781 |
\Cdef {trace-on}{\tracingcommands = 1 \tracingmacros = 1 |
| 782 |
\tracingrestores = 1 \tracingoutput = 1 \relax } |
| 783 |
\Cdef {trace-off}{\tracingcommands = 0 \tracingmacros = 0 |
| 784 |
\tracingrestores = 0 \tracingoutput = 0 \relax } |
| 785 |
\input startex.lan |
| 786 |
\ResetFont \SetSize{N} |
| 787 |
\endinput \SpecialCatCodes |
| 788 |
\endinput |
| 789 |
%% |
| 790 |
%% End of file `startex.tex'. |