| 1 |
|
| 2 |
% This is a stripped-down version of plain TeX. |
| 3 |
% |
| 4 |
% It follows plain.tex version 3.141592653. |
| 5 |
% |
| 6 |
% The following has been removed: |
| 7 |
% - All fonts and font switches |
| 8 |
% - \fmtname and \fmtversion |
| 9 |
% - \mathcode, \delcode, \mathchardef, \mathaccent and \delimiter settings |
| 10 |
% - Most math-related macros |
| 11 |
% - Loading hyphen.tex |
| 12 |
|
| 13 |
\catcode`\{=1 % left brace is begin-group character |
| 14 |
\catcode`\}=2 % right brace is end-group character |
| 15 |
\catcode`\$=3 % dollar sign is math shift |
| 16 |
\catcode`\&=4 % ampersand is alignment tab |
| 17 |
\catcode`\#=6 % hash mark is macro parameter character |
| 18 |
\catcode`\^=7 \catcode`\^^K=7 % circumflex and uparrow are for superscripts |
| 19 |
\catcode`\_=8 \catcode`\^^A=8 % underline and downarrow are for subscripts |
| 20 |
\catcode`\^^I=10 % ascii tab is a blank space |
| 21 |
\chardef\active=13 \catcode`\~=\active % tilde is active |
| 22 |
\catcode`\^^L=\active \outer\def^^L{\par} % ascii form-feed is "\outer\par" |
| 23 |
|
| 24 |
\message{Preloading the plain format: codes,} |
| 25 |
|
| 26 |
% We had to define the \catcodes right away, before the message line, |
| 27 |
% since \message uses the { and } characters. |
| 28 |
% When INITEX (the TeX initializer) starts up, |
| 29 |
% it has defined the following \catcode values: |
| 30 |
% \catcode`\^^@=9 % ascii null is ignored |
| 31 |
% \catcode`\^^M=5 % ascii return is end-line |
| 32 |
% \catcode`\\=0 % backslash is TeX escape character |
| 33 |
% \catcode`\%=14 % percent sign is comment character |
| 34 |
% \catcode`\ =10 % ascii space is blank space |
| 35 |
% \catcode`\^^?=15 % ascii delete is invalid |
| 36 |
% \catcode`\A=11 ... \catcode`\Z=11 % uppercase letters |
| 37 |
% \catcode`\a=11 ... \catcode`\z=11 % lowercase letters |
| 38 |
% all others are type 12 (other) |
| 39 |
|
| 40 |
% Here is a list of the characters that have been specially catcoded: |
| 41 |
\def\dospecials{\do\ \do\\\do\{\do\}\do\$\do\&% |
| 42 |
\do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~} |
| 43 |
% (not counting ascii null, tab, linefeed, formfeed, return, delete) |
| 44 |
% Each symbol in the list is preceded by \do, which can be defined |
| 45 |
% if you want to do something to every item in the list. |
| 46 |
|
| 47 |
% We make @ signs act like letters, temporarily, to avoid conflict |
| 48 |
% between user names and internal control sequences of plain format. |
| 49 |
\catcode`@=11 |
| 50 |
|
| 51 |
% INITEX sets \uccode`x=`X and \uccode `X=`X for all letters x, |
| 52 |
% and \lccode`x=`x, \lccode`X=`x; all other values are zero. |
| 53 |
% No changes to those tables are needed in plain TeX format. |
| 54 |
|
| 55 |
% INITEX sets \sfcode x=1000 for all x, except that \sfcode`X=999 |
| 56 |
% for uppercase letters. The following changes are needed: |
| 57 |
\sfcode`\)=0 \sfcode`\'=0 \sfcode`\]=0 |
| 58 |
% The \nonfrenchspacing macro will make further changes to \sfcode values. |
| 59 |
|
| 60 |
% To make the plain macros more efficient in time and space, |
| 61 |
% several constant values are declared here as control sequences. |
| 62 |
% If they were changed, anything could happen; so they are private symbols. |
| 63 |
\chardef\@ne=1 |
| 64 |
\chardef\tw@=2 |
| 65 |
\chardef\thr@@=3 |
| 66 |
\chardef\sixt@@n=16 |
| 67 |
\chardef\@cclv=255 |
| 68 |
\mathchardef\@cclvi=256 |
| 69 |
\mathchardef\@m=1000 |
| 70 |
\mathchardef\@M=10000 |
| 71 |
\mathchardef\@MM=20000 |
| 72 |
|
| 73 |
% Allocation of registers |
| 74 |
|
| 75 |
% Here are macros for the automatic allocation of \count, \box, \dimen, |
| 76 |
% \skip, \muskip, and \toks registers, as well as \read and \write |
| 77 |
% stream numbers, \fam codes, \language codes, and \insert numbers. |
| 78 |
|
| 79 |
\message{registers,} |
| 80 |
|
| 81 |
% When a register is used only temporarily, it need not be allocated; |
| 82 |
% grouping can be used, making the value previously in the register return |
| 83 |
% after the close of the group. The main use of these macros is for |
| 84 |
% registers that are defined by one macro and used by others, possibly at |
| 85 |
% different nesting levels. All such registers should be defined through |
| 86 |
% these macros; otherwise conflicts may occur, especially when two or more |
| 87 |
% macro packages are being used at once. |
| 88 |
|
| 89 |
% The following counters are reserved: |
| 90 |
% 0 to 9 page numbering |
| 91 |
% 10 count allocation |
| 92 |
% 11 dimen allocation |
| 93 |
% 12 skip allocation |
| 94 |
% 13 muskip allocation |
| 95 |
% 14 box allocation |
| 96 |
% 15 toks allocation |
| 97 |
% 16 read file allocation |
| 98 |
% 17 write file allocation |
| 99 |
% 18 math family allocation |
| 100 |
% 19 language allocation |
| 101 |
% 20 insert allocation |
| 102 |
% 21 the most recently allocated number |
| 103 |
% 22 constant -1 |
| 104 |
% New counters are allocated starting with 23, 24, etc. Other registers are |
| 105 |
% allocated starting with 10. This leaves 0 through 9 for the user to play |
| 106 |
% with safely, except that counts 0 to 9 are considered to be the page and |
| 107 |
% subpage numbers (since they are displayed during output). In this scheme, |
| 108 |
% \count 10 always contains the number of the highest-numbered counter that |
| 109 |
% has been allocated, \count 14 the highest-numbered box, etc. |
| 110 |
% Inserts are given numbers 254, 253, etc., since they require a \count, |
| 111 |
% \dimen, \skip, and \box all with the same number; \count 20 contains the |
| 112 |
% lowest-numbered insert that has been allocated. Of course, \box255 is |
| 113 |
% reserved for \output; \count255, \dimen255, and \skip255 can be used freely. |
| 114 |
|
| 115 |
% It is recommended that macro designers always use |
| 116 |
% \global assignments with respect to registers numbered 1, 3, 5, 7, 9, and |
| 117 |
% always non-\global assignments with respect to registers 0, 2, 4, 6, 8, 255. |
| 118 |
% This will prevent ``save stack buildup'' that might otherwise occur. |
| 119 |
|
| 120 |
\count10=22 % allocates \count registers 23, 24, ... |
| 121 |
\count11=9 % allocates \dimen registers 10, 11, ... |
| 122 |
\count12=9 % allocates \skip registers 10, 11, ... |
| 123 |
\count13=9 % allocates \muskip registers 10, 11, ... |
| 124 |
\count14=9 % allocates \box registers 10, 11, ... |
| 125 |
\count15=9 % allocates \toks registers 10, 11, ... |
| 126 |
\count16=-1 % allocates input streams 0, 1, ... |
| 127 |
\count17=-1 % allocates output streams 0, 1, ... |
| 128 |
\count18=3 % allocates math families 4, 5, ... |
| 129 |
\count19=0 % allocates \language codes 1, 2, ... |
| 130 |
\count20=255 % allocates insertions 254, 253, ... |
| 131 |
\countdef\insc@unt=20 % the insertion counter |
| 132 |
\countdef\allocationnumber=21 % the most recent allocation |
| 133 |
\countdef\m@ne=22 \m@ne=-1 % a handy constant |
| 134 |
\def\wlog{\immediate\write\m@ne} % write on log file (only) |
| 135 |
|
| 136 |
% Here are abbreviations for the names of scratch registers |
| 137 |
% that don't need to be allocated. |
| 138 |
|
| 139 |
\countdef\count@=255 |
| 140 |
\dimendef\dimen@=0 |
| 141 |
\dimendef\dimen@i=1 % global only |
| 142 |
\dimendef\dimen@ii=2 |
| 143 |
\skipdef\skip@=0 |
| 144 |
\toksdef\toks@=0 |
| 145 |
|
| 146 |
% Now, we define \newcount, \newbox, etc. so that you can say \newcount\foo |
| 147 |
% and \foo will be defined (with \countdef) to be the next counter. |
| 148 |
% To find out which counter \foo is, you can look at \allocationnumber. |
| 149 |
% Since there's no \boxdef command, \chardef is used to define a \newbox, |
| 150 |
% \newinsert, \newfam, and so on. |
| 151 |
|
| 152 |
\outer\def\newcount{\alloc@0\count\countdef\insc@unt} |
| 153 |
\outer\def\newdimen{\alloc@1\dimen\dimendef\insc@unt} |
| 154 |
\outer\def\newskip{\alloc@2\skip\skipdef\insc@unt} |
| 155 |
\outer\def\newmuskip{\alloc@3\muskip\muskipdef\@cclvi} |
| 156 |
\outer\def\newbox{\alloc@4\box\chardef\insc@unt} |
| 157 |
\let\newtoks=\relax % we do this to allow plain.tex to be read in twice |
| 158 |
\outer\def\newhelp#1#2{\newtoks#1#1\expandafter{\csname#2\endcsname}} |
| 159 |
\outer\def\newtoks{\alloc@5\toks\toksdef\@cclvi} |
| 160 |
\outer\def\newread{\alloc@6\read\chardef\sixt@@n} |
| 161 |
\outer\def\newwrite{\alloc@7\write\chardef\sixt@@n} |
| 162 |
\outer\def\newfam{\alloc@8\fam\chardef\sixt@@n} |
| 163 |
\outer\def\newlanguage{\alloc@9\language\chardef\@cclvi} |
| 164 |
\def\alloc@#1#2#3#4#5{\global\advance\count1#1by\@ne |
| 165 |
\ch@ck#1#4#2% make sure there's still room |
| 166 |
\allocationnumber=\count1#1% |
| 167 |
\global#3#5=\allocationnumber |
| 168 |
\wlog{\string#5=\string#2\the\allocationnumber}} |
| 169 |
\outer\def\newinsert#1{\global\advance\insc@unt by\m@ne |
| 170 |
\ch@ck0\insc@unt\count |
| 171 |
\ch@ck1\insc@unt\dimen |
| 172 |
\ch@ck2\insc@unt\skip |
| 173 |
\ch@ck4\insc@unt\box |
| 174 |
\allocationnumber=\insc@unt |
| 175 |
\global\chardef#1=\allocationnumber |
| 176 |
\wlog{\string#1=\string\insert\the\allocationnumber}} |
| 177 |
\def\ch@ck#1#2#3{\ifnum\count1#1<#2% |
| 178 |
\else\errmessage{No room for a new #3}\fi} |
| 179 |
|
| 180 |
% Here are some examples of allocation. |
| 181 |
\newdimen\maxdimen \maxdimen=16383.99999pt % the largest legal <dimen> |
| 182 |
\newskip\hideskip \hideskip=-1000pt plus 1fill % negative but can grow |
| 183 |
\newskip\centering \centering=0pt plus 1000pt minus 1000pt |
| 184 |
\newdimen\p@ \p@=1pt % this saves macro space and time |
| 185 |
\newdimen\z@ \z@=0pt % can be used both for 0pt and 0 |
| 186 |
\newskip\z@skip \z@skip=0pt plus0pt minus0pt |
| 187 |
\newbox\voidb@x % permanently void box register |
| 188 |
|
| 189 |
% And here's a different sort of allocation: |
| 190 |
% For example, \newif\iffoo creates \footrue, \foofalse to go with \iffoo. |
| 191 |
\outer\def\newif#1{\count@\escapechar \escapechar\m@ne |
| 192 |
\expandafter\expandafter\expandafter |
| 193 |
\def\@if#1{true}{\let#1=\iftrue}% |
| 194 |
\expandafter\expandafter\expandafter |
| 195 |
\def\@if#1{false}{\let#1=\iffalse}% |
| 196 |
\@if#1{false}\escapechar\count@} % the condition starts out false |
| 197 |
\def\@if#1#2{\csname\expandafter\if@\string#1#2\endcsname} |
| 198 |
{\uccode`1=`i \uccode`2=`f \uppercase{\gdef\if@12{}}} % `if' is required |
| 199 |
|
| 200 |
% Assign initial values to TeX's parameters |
| 201 |
|
| 202 |
\message{parameters,} |
| 203 |
|
| 204 |
% All of TeX's numeric parameters are listed here, |
| 205 |
% but the code is commented out if no special value needs to be set. |
| 206 |
% INITEX makes all parameters zero except where noted. |
| 207 |
|
| 208 |
\pretolerance=100 |
| 209 |
\tolerance=200 % INITEX sets this to 10000 |
| 210 |
\hbadness=1000 |
| 211 |
\vbadness=1000 |
| 212 |
\linepenalty=10 |
| 213 |
\hyphenpenalty=50 |
| 214 |
\exhyphenpenalty=50 |
| 215 |
\binoppenalty=700 |
| 216 |
\relpenalty=500 |
| 217 |
\clubpenalty=150 |
| 218 |
\widowpenalty=150 |
| 219 |
\displaywidowpenalty=50 |
| 220 |
\brokenpenalty=100 |
| 221 |
\predisplaypenalty=10000 |
| 222 |
% \postdisplaypenalty=0 |
| 223 |
% \interlinepenalty=0 |
| 224 |
% \floatingpenalty=0, set during \insert |
| 225 |
% \outputpenalty=0, set before TeX enters \output |
| 226 |
\doublehyphendemerits=10000 |
| 227 |
\finalhyphendemerits=5000 |
| 228 |
\adjdemerits=10000 |
| 229 |
% \looseness=0, cleared by TeX after each paragraph |
| 230 |
% \pausing=0 |
| 231 |
% \holdinginserts=0 |
| 232 |
% \tracingonline=0 |
| 233 |
% \tracingmacros=0 |
| 234 |
% \tracingstats=0 |
| 235 |
% \tracingparagraphs=0 |
| 236 |
% \tracingpages=0 |
| 237 |
% \tracingoutput=0 |
| 238 |
\tracinglostchars=1 |
| 239 |
% \tracingcommands=0 |
| 240 |
% \tracingrestores=0 |
| 241 |
% \language=0 |
| 242 |
\uchyph=1 |
| 243 |
% \lefthyphenmin=2 \righthyphenmin=3 set below |
| 244 |
% \globaldefs=0 |
| 245 |
% \maxdeadcycles=25 % INITEX does this |
| 246 |
% \hangafter=1 % INITEX does this, also TeX after each paragraph |
| 247 |
% \fam=0 |
| 248 |
% \mag=1000 % INITEX does this |
| 249 |
% \escapechar=`\\ % INITEX does this |
| 250 |
\defaulthyphenchar=`\- |
| 251 |
\defaultskewchar=-1 |
| 252 |
% \endlinechar=`\^^M % INITEX does this |
| 253 |
\newlinechar=-1 |
| 254 |
\delimiterfactor=901 |
| 255 |
% \time=now % TeX does this at beginning of job |
| 256 |
% \day=now % TeX does this at beginning of job |
| 257 |
% \month=now % TeX does this at beginning of job |
| 258 |
% \year=now % TeX does this at beginning of job |
| 259 |
\showboxbreadth=5 |
| 260 |
\showboxdepth=3 |
| 261 |
\errorcontextlines=5 |
| 262 |
|
| 263 |
\hfuzz=0.1pt |
| 264 |
\vfuzz=0.1pt |
| 265 |
\overfullrule=5pt |
| 266 |
\hsize=6.5in |
| 267 |
\vsize=8.9in |
| 268 |
\maxdepth=4pt |
| 269 |
\splitmaxdepth=\maxdimen |
| 270 |
\boxmaxdepth=\maxdimen |
| 271 |
% \lineskiplimit=0pt, changed by \normalbaselines |
| 272 |
\delimitershortfall=5pt |
| 273 |
\nulldelimiterspace=1.2pt |
| 274 |
\scriptspace=0.5pt |
| 275 |
% \mathsurround=0pt |
| 276 |
% \predisplaysize=0pt, set before TeX enters $$ |
| 277 |
% \displaywidth=0pt, set before TeX enters $$ |
| 278 |
% \displayindent=0pt, set before TeX enters $$ |
| 279 |
\parindent=20pt |
| 280 |
% \hangindent=0pt, zeroed by TeX after each paragraph |
| 281 |
% \hoffset=0pt |
| 282 |
% \voffset=0pt |
| 283 |
|
| 284 |
% \baselineskip=0pt, changed by \normalbaselines |
| 285 |
% \lineskip=0pt, changed by \normalbaselines |
| 286 |
\parskip=0pt plus 1pt |
| 287 |
\abovedisplayskip=12pt plus 3pt minus 9pt |
| 288 |
\abovedisplayshortskip=0pt plus 3pt |
| 289 |
\belowdisplayskip=12pt plus 3pt minus 9pt |
| 290 |
\belowdisplayshortskip=7pt plus 3pt minus 4pt |
| 291 |
% \leftskip=0pt |
| 292 |
% \rightskip=0pt |
| 293 |
\topskip=10pt |
| 294 |
\splittopskip=10pt |
| 295 |
% \tabskip=0pt |
| 296 |
% \spaceskip=0pt |
| 297 |
% \xspaceskip=0pt |
| 298 |
\parfillskip=0pt plus 1fil |
| 299 |
|
| 300 |
\thinmuskip=3mu |
| 301 |
\medmuskip=4mu plus 2mu minus 4mu |
| 302 |
\thickmuskip=5mu plus 5mu |
| 303 |
|
| 304 |
% We also define special registers that function like parameters: |
| 305 |
\newskip\smallskipamount \smallskipamount=3pt plus 1pt minus 1pt |
| 306 |
\newskip\medskipamount \medskipamount=6pt plus 2pt minus 2pt |
| 307 |
\newskip\bigskipamount \bigskipamount=12pt plus 4pt minus 4pt |
| 308 |
\newskip\normalbaselineskip \normalbaselineskip=12pt |
| 309 |
\newskip\normallineskip \normallineskip=1pt |
| 310 |
\newdimen\normallineskiplimit \normallineskiplimit=0pt |
| 311 |
\newdimen\jot \jot=3pt |
| 312 |
\newcount\interdisplaylinepenalty \interdisplaylinepenalty=100 |
| 313 |
\newcount\interfootnotelinepenalty \interfootnotelinepenalty=100 |
| 314 |
|
| 315 |
% Definitions for preloaded fonts |
| 316 |
|
| 317 |
\def\magstephalf{1095 } |
| 318 |
\def\magstep#1{\ifcase#1 \@m\or 1200\or 1440\or 1728\or 2074\or 2488\fi\relax} |
| 319 |
|
| 320 |
\message{fonts (omitted),} |
| 321 |
|
| 322 |
\def\rm{\fam\z@\tenrm} |
| 323 |
\def\mit{\fam\@ne} |
| 324 |
\def\cal{\fam\tw@} |
| 325 |
\def\it{\fam4\tenit} |
| 326 |
\def\sl{\fam5\tensl} |
| 327 |
\def\bf{\fam6\tenbf} |
| 328 |
\def\tt{\fam7\tentt} |
| 329 |
|
| 330 |
% Macros for setting ordinary text |
| 331 |
\message{macros,} |
| 332 |
|
| 333 |
\def\frenchspacing{\sfcode`\.\@m \sfcode`\?\@m \sfcode`\!\@m |
| 334 |
\sfcode`\:\@m \sfcode`\;\@m \sfcode`\,\@m} |
| 335 |
\def\nonfrenchspacing{\sfcode`\.3000\sfcode`\?3000\sfcode`\!3000% |
| 336 |
\sfcode`\:2000\sfcode`\;1500\sfcode`\,1250 } |
| 337 |
|
| 338 |
\def\normalbaselines{\lineskip\normallineskip |
| 339 |
\baselineskip\normalbaselineskip \lineskiplimit\normallineskiplimit} |
| 340 |
|
| 341 |
\def\^^M{\ } % control <return> = control <space> |
| 342 |
\def\^^I{\ } % same for <tab> |
| 343 |
|
| 344 |
\def\lq{`} \def\rq{'} |
| 345 |
\def\lbrack{[} \def\rbrack{]} |
| 346 |
|
| 347 |
\let\endgraf=\par \let\endline=\cr |
| 348 |
|
| 349 |
\def\space{ } |
| 350 |
\def\empty{} |
| 351 |
\def\null{\hbox{}} |
| 352 |
|
| 353 |
\let\bgroup={ \let\egroup=} |
| 354 |
|
| 355 |
% In \obeylines, we say `\let^^M=\par' instead of `\def^^M{\par}' |
| 356 |
% since this allows, for example, `\let\par=\cr \obeylines \halign{...' |
| 357 |
{\catcode`\^^M=\active % these lines must end with % |
| 358 |
\gdef\obeylines{\catcode`\^^M\active \let^^M\par}% |
| 359 |
\global\let^^M\par} % this is in case ^^M appears in a \write |
| 360 |
\def\obeyspaces{\catcode`\ \active} |
| 361 |
{\obeyspaces\global\let =\space} |
| 362 |
|
| 363 |
\def\loop#1\repeat{\def\body{#1}\iterate} |
| 364 |
\def\iterate{\body \let\next\iterate \else\let\next\relax\fi \next} |
| 365 |
\let\repeat=\fi % this makes \loop...\if...\repeat skippable |
| 366 |
|
| 367 |
\def\thinspace{\kern .16667em } |
| 368 |
\def\negthinspace{\kern-.16667em } |
| 369 |
\def\enspace{\kern.5em } |
| 370 |
|
| 371 |
\def\enskip{\hskip.5em\relax} |
| 372 |
\def\quad{\hskip1em\relax} |
| 373 |
\def\qquad{\hskip2em\relax} |
| 374 |
|
| 375 |
\def\smallskip{\vskip\smallskipamount} |
| 376 |
\def\medskip{\vskip\medskipamount} |
| 377 |
\def\bigskip{\vskip\bigskipamount} |
| 378 |
|
| 379 |
\def\nointerlineskip{\prevdepth-1000\p@} |
| 380 |
\def\offinterlineskip{\baselineskip-1000\p@ |
| 381 |
\lineskip\z@ \lineskiplimit\maxdimen} |
| 382 |
|
| 383 |
\def\topglue{\nointerlineskip\vglue-\topskip\vglue} % for top of page |
| 384 |
\def\vglue{\afterassignment\vgl@\skip@=} |
| 385 |
\def\vgl@{\par \dimen@\prevdepth \hrule height\z@ |
| 386 |
\nobreak\vskip\skip@ \prevdepth\dimen@} |
| 387 |
\def\hglue{\afterassignment\hgl@\skip@=} |
| 388 |
\def\hgl@{\leavevmode \count@\spacefactor \vrule width\z@ |
| 389 |
\nobreak\hskip\skip@ \spacefactor\count@} |
| 390 |
|
| 391 |
\def~{\penalty\@M \ } % tie |
| 392 |
\def\slash{/\penalty\exhyphenpenalty} % a `/' that acts like a `-' |
| 393 |
|
| 394 |
\def\break{\penalty-\@M} |
| 395 |
\def\nobreak{\penalty \@M} |
| 396 |
\def\allowbreak{\penalty \z@} |
| 397 |
|
| 398 |
\def\filbreak{\par\vfil\penalty-200\vfilneg} |
| 399 |
\def\goodbreak{\par\penalty-500 } |
| 400 |
\def\eject{\par\break} |
| 401 |
\def\supereject{\par\penalty-\@MM} |
| 402 |
|
| 403 |
\def\removelastskip{\ifdim\lastskip=\z@\else\vskip-\lastskip\fi} |
| 404 |
\def\smallbreak{\par\ifdim\lastskip<\smallskipamount |
| 405 |
\removelastskip\penalty-50\smallskip\fi} |
| 406 |
\def\medbreak{\par\ifdim\lastskip<\medskipamount |
| 407 |
\removelastskip\penalty-100\medskip\fi} |
| 408 |
\def\bigbreak{\par\ifdim\lastskip<\bigskipamount |
| 409 |
\removelastskip\penalty-200\bigskip\fi} |
| 410 |
|
| 411 |
\def\line{\hbox to\hsize} |
| 412 |
\def\leftline#1{\line{#1\hss}} |
| 413 |
\def\rightline#1{\line{\hss#1}} |
| 414 |
\def\centerline#1{\line{\hss#1\hss}} |
| 415 |
|
| 416 |
\def\rlap#1{\hbox to\z@{#1\hss}} |
| 417 |
\def\llap#1{\hbox to\z@{\hss#1}} |
| 418 |
|
| 419 |
\def\m@th{\mathsurround\z@} |
| 420 |
\def\underbar#1{$\setbox\z@\hbox{#1}\dp\z@\z@ |
| 421 |
\m@th \underline{\box\z@}$} |
| 422 |
|
| 423 |
\newbox\strutbox |
| 424 |
\setbox\strutbox=\hbox{\vrule height8.5pt depth3.5pt width\z@} |
| 425 |
\def\strut{\relax\ifmmode\copy\strutbox\else\unhcopy\strutbox\fi} |
| 426 |
|
| 427 |
\def\hidewidth{\hskip\hideskip} % for alignment entries that can stick out |
| 428 |
\def\ialign{\everycr{}\tabskip\z@skip\halign} % initialized \halign |
| 429 |
\newcount\mscount |
| 430 |
\def\multispan#1{\omit \mscount#1\relax |
| 431 |
\loop\ifnum\mscount>\@ne \sp@n\repeat} |
| 432 |
\def\sp@n{\span\omit\advance\mscount\m@ne} |
| 433 |
|
| 434 |
\newif\ifus@ \newif\if@cr |
| 435 |
\newbox\tabs \newbox\tabsyet \newbox\tabsdone |
| 436 |
|
| 437 |
\def\cleartabs{\global\setbox\tabsyet\null \setbox\tabs\null} |
| 438 |
\def\settabs{\setbox\tabs\null \futurelet\next\sett@b} |
| 439 |
\let\+=\relax % in case this file is being read in twice |
| 440 |
\def\sett@b{\ifx\next\+\def\nxt{\afterassignment\s@tt@b\let\nxt}% |
| 441 |
\else\let\nxt\s@tcols\fi \let\next\relax \nxt} |
| 442 |
\def\s@tt@b{\let\nxt\relax \us@false\m@ketabbox} |
| 443 |
\def\tabalign{\us@true\m@ketabbox} % non-\outer version of \+ |
| 444 |
\outer\def\+{\tabalign} |
| 445 |
\def\s@tcols#1\columns{\count@#1\dimen@\hsize |
| 446 |
\loop\ifnum\count@>\z@ \@nother \repeat} |
| 447 |
\def\@nother{\dimen@ii\dimen@ \divide\dimen@ii\count@ |
| 448 |
\setbox\tabs\hbox{\hbox to\dimen@ii{}\unhbox\tabs}% |
| 449 |
\advance\dimen@-\dimen@ii \advance\count@\m@ne} |
| 450 |
|
| 451 |
\def\m@ketabbox{\begingroup |
| 452 |
\global\setbox\tabsyet\copy\tabs |
| 453 |
\global\setbox\tabsdone\null |
| 454 |
\def\cr{\@crtrue\crcr\egroup\egroup |
| 455 |
\ifus@\unvbox\z@\lastbox\fi\endgroup |
| 456 |
\setbox\tabs\hbox{\unhbox\tabsyet\unhbox\tabsdone}}% |
| 457 |
\setbox\z@\vbox\bgroup\@crfalse |
| 458 |
\ialign\bgroup&\t@bbox##\t@bb@x\crcr} |
| 459 |
|
| 460 |
\def\t@bbox{\setbox\z@\hbox\bgroup} |
| 461 |
\def\t@bb@x{\if@cr\egroup % now \box\z@ holds the column |
| 462 |
\else\hss\egroup \global\setbox\tabsyet\hbox{\unhbox\tabsyet |
| 463 |
\global\setbox\@ne\lastbox}% now \box\@ne holds its size |
| 464 |
\ifvoid\@ne\global\setbox\@ne\hbox to\wd\z@{}% |
| 465 |
\else\setbox\z@\hbox to\wd\@ne{\unhbox\z@}\fi |
| 466 |
\global\setbox\tabsdone\hbox{\box\@ne\unhbox\tabsdone}\fi |
| 467 |
\box\z@} |
| 468 |
|
| 469 |
\def\hang{\hangindent\parindent} |
| 470 |
\def\textindent#1{\indent\llap{#1\enspace}\ignorespaces} |
| 471 |
\def\item{\par\hang\textindent} |
| 472 |
\def\itemitem{\par\indent \hangindent2\parindent \textindent} |
| 473 |
\def\narrower{\advance\leftskip\parindent |
| 474 |
\advance\rightskip\parindent} |
| 475 |
|
| 476 |
\outer\def\beginsection#1\par{\vskip\z@ plus.3\vsize\penalty-250 |
| 477 |
\vskip\z@ plus-.3\vsize\bigskip\vskip\parskip |
| 478 |
\message{#1}\leftline{\bf#1}\nobreak\smallskip\noindent} |
| 479 |
\outer\def\proclaim #1. #2\par{\medbreak |
| 480 |
\noindent{\bf#1.\enspace}{\sl#2\par}% |
| 481 |
\ifdim\lastskip<\medskipamount \removelastskip\penalty55\medskip\fi} |
| 482 |
|
| 483 |
\def\raggedright{\rightskip\z@ plus2em \spaceskip.3333em \xspaceskip.5em\relax} |
| 484 |
\def\ttraggedright{\tt\rightskip\z@ plus2em\relax} % for use with \tt only |
| 485 |
|
| 486 |
\chardef\%=`\% |
| 487 |
\chardef\&=`\& |
| 488 |
\chardef\#=`\# |
| 489 |
\chardef\$=`\$ |
| 490 |
|
| 491 |
\def\leavevmode{\unhbox\voidb@x} % begins a paragraph, if necessary |
| 492 |
\def\_{\leavevmode \kern.06em \vbox{\hrule width.3em}} |
| 493 |
|
| 494 |
\def\mathhexbox#1#2#3{\leavevmode |
| 495 |
\hbox{$\m@th \mathchar"#1#2#3$}} |
| 496 |
|
| 497 |
\def\oalign#1{\leavevmode\vtop{\baselineskip\z@skip \lineskip.25ex% |
| 498 |
\ialign{##\crcr#1\crcr}}} \def\o@lign{\lineskiplimit\z@ \oalign} |
| 499 |
\def\ooalign{\lineskiplimit-\maxdimen \oalign} % chars over each other |
| 500 |
{\catcode`p=12 \catcode`t=12 \gdef\\#1pt{#1}} \let\getf@ctor=\\ |
| 501 |
\def\sh@ft#1{\dimen@#1\kern\expandafter\getf@ctor\the\fontdimen1\font |
| 502 |
\dimen@} % kern by #1 times the current slant |
| 503 |
\def\d#1{{\o@lign{\relax#1\crcr\hidewidth\sh@ft{-1ex}.\hidewidth}}} |
| 504 |
\def\b#1{{\o@lign{\relax#1\crcr\hidewidth\sh@ft{-3ex}% |
| 505 |
\vbox to.2ex{\hbox{\char22}\vss}\hidewidth}}} |
| 506 |
\def\c#1{{\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1% |
| 507 |
\else\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}\fi}} |
| 508 |
\def\copyright{{\ooalign{\hfil\raise.07ex\hbox{c}\hfil\crcr\Orb}}} |
| 509 |
|
| 510 |
\def\dots{\relax\ifmmode\ldots\else$\m@th\ldots\,$\fi} |
| 511 |
\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX} |
| 512 |
|
| 513 |
\def\hrulefill{\leaders\hrule\hfill} |
| 514 |
\def\dotfill{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfill} |
| 515 |
\def\rightarrowfill{$\m@th\smash-\mkern-7mu% |
| 516 |
\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill |
| 517 |
\mkern-7mu\mathord\rightarrow$} |
| 518 |
\def\leftarrowfill{$\m@th\mathord\leftarrow\mkern-7mu% |
| 519 |
\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill |
| 520 |
\mkern-7mu\smash-$} |
| 521 |
\mathchardef\braceld="37A \mathchardef\bracerd="37B |
| 522 |
\mathchardef\bracelu="37C \mathchardef\braceru="37D |
| 523 |
\def\downbracefill{$\m@th \setbox\z@\hbox{$\braceld$}% |
| 524 |
\braceld\leaders\vrule height\ht\z@ depth\z@\hfill\braceru |
| 525 |
\bracelu\leaders\vrule height\ht\z@ depth\z@\hfill\bracerd$} |
| 526 |
\def\upbracefill{$\m@th \setbox\z@\hbox{$\braceld$}% |
| 527 |
\bracelu\leaders\vrule height\ht\z@ depth\z@\hfill\bracerd |
| 528 |
\braceld\leaders\vrule height\ht\z@ depth\z@\hfill\braceru$} |
| 529 |
|
| 530 |
\outer\def\bye{\par\vfill\supereject\end} |
| 531 |
|
| 532 |
% Macros for math setting |
| 533 |
\message{math definitions,} |
| 534 |
|
| 535 |
\let\sp=^ \let\sb=_ |
| 536 |
\def\,{\mskip\thinmuskip} |
| 537 |
\def\>{\mskip\medmuskip} |
| 538 |
\def\;{\mskip\thickmuskip} |
| 539 |
\def\!{\mskip-\thinmuskip} |
| 540 |
\def\*{\discretionary{\thinspace\the\textfont2\char2}{}{}} |
| 541 |
{\catcode`\'=\active \gdef'{^\bgroup\prim@s}} |
| 542 |
\def\prim@s{\prime\futurelet\next\pr@m@s} |
| 543 |
\def\pr@m@s{\ifx'\next\let\nxt\pr@@@s \else\ifx^\next\let\nxt\pr@@@t |
| 544 |
\else\let\nxt\egroup\fi\fi \nxt} |
| 545 |
\def\pr@@@s#1{\prim@s} \def\pr@@@t#1#2{#2\egroup} |
| 546 |
{\catcode`\^^Z=\active \gdef^^Z{\not=}} % ^^Z is like \ne in math |
| 547 |
|
| 548 |
{\catcode`\_=\active \global\let_=\_} % _ in math is either subscript or \_ |
| 549 |
|
| 550 |
\def\joinrel{\mathrel{\mkern-3mu}} |
| 551 |
\def\relbar{\mathrel{\smash-}} % \smash, because - has the same height as + |
| 552 |
\def\Relbar{\mathrel=} |
| 553 |
\def\bowtie{\mathrel\triangleright\joinrel\mathrel\triangleleft} |
| 554 |
\def\models{\mathrel|\joinrel=} |
| 555 |
\def\Longrightarrow{\Relbar\joinrel\Rightarrow} |
| 556 |
\def\longrightarrow{\relbar\joinrel\rightarrow} |
| 557 |
\def\longleftarrow{\leftarrow\joinrel\relbar} |
| 558 |
\def\Longleftarrow{\Leftarrow\joinrel\Relbar} |
| 559 |
\def\longmapsto{\mapstochar\longrightarrow} |
| 560 |
\def\longleftrightarrow{\leftarrow\joinrel\rightarrow} |
| 561 |
\def\Longleftrightarrow{\Leftarrow\joinrel\Rightarrow} |
| 562 |
\def\iff{\;\Longleftrightarrow\;} |
| 563 |
|
| 564 |
\def\ldots{\mathinner{\ldotp\ldotp\ldotp}} |
| 565 |
\def\cdots{\mathinner{\cdotp\cdotp\cdotp}} |
| 566 |
|
| 567 |
\def\skew#1#2#3{{\muskip\z@#1mu\divide\muskip\z@\tw@ \mkern\muskip\z@ |
| 568 |
#2{\mkern-\muskip\z@{#3}\mkern\muskip\z@}\mkern-\muskip\z@}{}} |
| 569 |
|
| 570 |
\def\bigl{\mathopen\big} |
| 571 |
\def\bigm{\mathrel\big} |
| 572 |
\def\bigr{\mathclose\big} |
| 573 |
\def\Bigl{\mathopen\Big} |
| 574 |
\def\Bigm{\mathrel\Big} |
| 575 |
\def\Bigr{\mathclose\Big} |
| 576 |
\def\biggl{\mathopen\bigg} |
| 577 |
\def\biggm{\mathrel\bigg} |
| 578 |
\def\biggr{\mathclose\bigg} |
| 579 |
\def\Biggl{\mathopen\Bigg} |
| 580 |
\def\Biggm{\mathrel\Bigg} |
| 581 |
\def\Biggr{\mathclose\Bigg} |
| 582 |
\def\big#1{{\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}} |
| 583 |
\def\Big#1{{\hbox{$\left#1\vbox to11.5\p@{}\right.\n@space$}}} |
| 584 |
\def\bigg#1{{\hbox{$\left#1\vbox to14.5\p@{}\right.\n@space$}}} |
| 585 |
\def\Bigg#1{{\hbox{$\left#1\vbox to17.5\p@{}\right.\n@space$}}} |
| 586 |
\def\n@space{\nulldelimiterspace\z@ \m@th} |
| 587 |
|
| 588 |
\def\choose{\atopwithdelims()} |
| 589 |
\def\brack{\atopwithdelims[]} |
| 590 |
\def\brace{\atopwithdelims\{\}} |
| 591 |
|
| 592 |
\def\mathpalette#1#2{\mathchoice{#1\displaystyle{#2}}% |
| 593 |
{#1\textstyle{#2}}{#1\scriptstyle{#2}}{#1\scriptscriptstyle{#2}}} |
| 594 |
\newif\ifv@ \newif\ifh@ |
| 595 |
\def\vphantom{\v@true\h@false\ph@nt} |
| 596 |
\def\hphantom{\v@false\h@true\ph@nt} |
| 597 |
\def\phantom{\v@true\h@true\ph@nt} |
| 598 |
\def\ph@nt{\ifmmode\def\next{\mathpalette\mathph@nt}% |
| 599 |
\else\let\next\makeph@nt\fi\next} |
| 600 |
\def\makeph@nt#1{\setbox\z@\hbox{#1}\finph@nt} |
| 601 |
\def\mathph@nt#1#2{\setbox\z@\hbox{$\m@th#1{#2}$}\finph@nt} |
| 602 |
\def\finph@nt{\setbox\tw@\null |
| 603 |
\ifv@ \ht\tw@\ht\z@ \dp\tw@\dp\z@\fi |
| 604 |
\ifh@ \wd\tw@\wd\z@\fi \box\tw@} |
| 605 |
\def\mathstrut{\vphantom(} |
| 606 |
\def\smash{\relax % \relax, in case this comes first in \halign |
| 607 |
\ifmmode\def\next{\mathpalette\mathsm@sh}\else\let\next\makesm@sh |
| 608 |
\fi\next} |
| 609 |
\def\makesm@sh#1{\setbox\z@\hbox{#1}\finsm@sh} |
| 610 |
\def\mathsm@sh#1#2{\setbox\z@\hbox{$\m@th#1{#2}$}\finsm@sh} |
| 611 |
\def\finsm@sh{\ht\z@\z@ \dp\z@\z@ \box\z@} |
| 612 |
|
| 613 |
\def\cong{\mathrel{\mathpalette\@vereq\sim}} % congruence sign |
| 614 |
\def\@vereq#1#2{\lower.5\p@\vbox{\lineskiplimit\maxdimen\lineskip-.5\p@ |
| 615 |
\ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr}}} |
| 616 |
\def\notin{\mathrel{\mathpalette\c@ncel\in}} |
| 617 |
\def\c@ncel#1#2{\m@th\ooalign{$\hfil#1\mkern1mu/\hfil$\crcr$#1#2$}} |
| 618 |
\def\rightleftharpoons{\mathrel{\mathpalette\rlh@{}}} |
| 619 |
\def\rlh@#1{\vcenter{\m@th\hbox{\ooalign{\raise2pt |
| 620 |
\hbox{$#1\rightharpoonup$}\crcr |
| 621 |
$#1\leftharpoondown$}}}} |
| 622 |
\def\buildrel#1\over#2{\mathrel{\mathop{\kern\z@#2}\limits^{#1}}} |
| 623 |
\def\doteq{\buildrel\textstyle.\over=} |
| 624 |
|
| 625 |
\def\cases#1{\left\{\,\vcenter{\normalbaselines\m@th |
| 626 |
\ialign{$##\hfil$&\quad##\hfil\crcr#1\crcr}}\right.} |
| 627 |
\def\matrix#1{\null\,\vcenter{\normalbaselines\m@th |
| 628 |
\ialign{\hfil$##$\hfil&&\quad\hfil$##$\hfil\crcr |
| 629 |
\mathstrut\crcr\noalign{\kern-\baselineskip} |
| 630 |
#1\crcr\mathstrut\crcr\noalign{\kern-\baselineskip}}}\,} |
| 631 |
\def\pmatrix#1{\left(\matrix{#1}\right)} |
| 632 |
\newdimen\p@renwd |
| 633 |
\setbox0=\hbox{\kern8.75002pt} \p@renwd=\wd0 % width of the big left ( |
| 634 |
\def\bordermatrix#1{\begingroup \m@th |
| 635 |
\setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}% |
| 636 |
\ialign{$##$\hfil\kern2\p@\kern\p@renwd&\thinspace\hfil$##$\hfil |
| 637 |
&&\quad\hfil$##$\hfil\crcr |
| 638 |
\omit\strut\hfil\crcr\noalign{\kern-\baselineskip}% |
| 639 |
#1\crcr\omit\strut\cr}}% |
| 640 |
\setbox\tw@\vbox{\unvcopy\z@\global\setbox\@ne\lastbox}% |
| 641 |
\setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@ne\lastbox}% |
| 642 |
\setbox\tw@\hbox{$\kern\wd\@ne\kern-\p@renwd\left(\kern-\wd\@ne |
| 643 |
\global\setbox\@ne\vbox{\box\@ne\kern2\p@}% |
| 644 |
\vcenter{\kern-\ht\@ne\unvbox\z@\kern-\baselineskip}\,\right)$}% |
| 645 |
\null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup} |
| 646 |
|
| 647 |
\def\openup{\afterassignment\@penup\dimen@=} |
| 648 |
\def\@penup{\advance\lineskip\dimen@ |
| 649 |
\advance\baselineskip\dimen@ |
| 650 |
\advance\lineskiplimit\dimen@} |
| 651 |
\def\eqalign#1{\null\,\vcenter{\openup\jot\m@th |
| 652 |
\ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil |
| 653 |
\crcr#1\crcr}}\,} |
| 654 |
\newif\ifdt@p |
| 655 |
\def\displ@y{\global\dt@ptrue\openup\jot\m@th |
| 656 |
\everycr{\noalign{\ifdt@p \global\dt@pfalse \ifdim\prevdepth>-1000\p@ |
| 657 |
\vskip-\lineskiplimit \vskip\normallineskiplimit \fi |
| 658 |
\else \penalty\interdisplaylinepenalty \fi}}} |
| 659 |
\def\@lign{\tabskip\z@skip\everycr{}} % restore inside \displ@y |
| 660 |
\def\displaylines#1{\displ@y \tabskip\z@skip |
| 661 |
\halign{\hbox to\displaywidth{$\@lign\hfil\displaystyle##\hfil$}\crcr |
| 662 |
#1\crcr}} |
| 663 |
\def\eqalignno#1{\displ@y \tabskip\centering |
| 664 |
\halign to\displaywidth{\hfil$\@lign\displaystyle{##}$\tabskip\z@skip |
| 665 |
&$\@lign\displaystyle{{}##}$\hfil\tabskip\centering |
| 666 |
&\llap{$\@lign##$}\tabskip\z@skip\crcr |
| 667 |
#1\crcr}} |
| 668 |
\def\leqalignno#1{\displ@y \tabskip\centering |
| 669 |
\halign to\displaywidth{\hfil$\@lign\displaystyle{##}$\tabskip\z@skip |
| 670 |
&$\@lign\displaystyle{{}##}$\hfil\tabskip\centering |
| 671 |
&\kern-\displaywidth\rlap{$\@lign##$}\tabskip\displaywidth\crcr |
| 672 |
#1\crcr}} |
| 673 |
|
| 674 |
% Definitions related to output |
| 675 |
|
| 676 |
\message{output routines,} |
| 677 |
|
| 678 |
\countdef\pageno=0 \pageno=1 % first page is number 1 |
| 679 |
\newtoks\headline \headline={\hfil} % headline is normally blank |
| 680 |
\newtoks\footline \footline={\hss\tenrm\folio\hss} |
| 681 |
% footline is normally a centered page number in font \tenrm |
| 682 |
\newif\ifr@ggedbottom |
| 683 |
\def\raggedbottom{\topskip 10\p@ plus60\p@ \r@ggedbottomtrue} |
| 684 |
\def\normalbottom{\topskip 10\p@ \r@ggedbottomfalse} % undoes \raggedbottom |
| 685 |
\def\folio{\ifnum\pageno<\z@ \romannumeral-\pageno \else\number\pageno \fi} |
| 686 |
\def\nopagenumbers{\footline{\hfil}} % blank out the footline |
| 687 |
\def\advancepageno{\ifnum\pageno<\z@ \global\advance\pageno\m@ne |
| 688 |
\else\global\advance\pageno\@ne \fi} % increase |pageno| |
| 689 |
|
| 690 |
\newinsert\footins |
| 691 |
\def\footnote#1{\let\@sf\empty % parameter #2 (the text) is read later |
| 692 |
\ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi |
| 693 |
#1\@sf\vfootnote{#1}} |
| 694 |
\def\vfootnote#1{\insert\footins\bgroup |
| 695 |
\interlinepenalty\interfootnotelinepenalty |
| 696 |
\splittopskip\ht\strutbox % top baseline for broken footnotes |
| 697 |
\splitmaxdepth\dp\strutbox \floatingpenalty\@MM |
| 698 |
\leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip \xspaceskip\z@skip |
| 699 |
\textindent{#1}\footstrut\futurelet\next\fo@t} |
| 700 |
\def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t |
| 701 |
\else\let\next\f@t\fi \next} |
| 702 |
\def\f@@t{\bgroup\aftergroup\@foot\let\next} |
| 703 |
\def\f@t#1{#1\@foot} |
| 704 |
\def\@foot{\strut\egroup} |
| 705 |
\def\footstrut{\vbox to\splittopskip{}} |
| 706 |
\skip\footins=\bigskipamount % space added when footnote is present |
| 707 |
\count\footins=1000 % footnote magnification factor (1 to 1) |
| 708 |
\dimen\footins=8in % maximum footnotes per page |
| 709 |
|
| 710 |
\newinsert\topins |
| 711 |
\newif\ifp@ge \newif\if@mid |
| 712 |
\def\topinsert{\@midfalse\p@gefalse\@ins} |
| 713 |
\def\midinsert{\@midtrue\@ins} |
| 714 |
\def\pageinsert{\@midfalse\p@getrue\@ins} |
| 715 |
\skip\topins=\z@skip % no space added when a topinsert is present |
| 716 |
\count\topins=1000 % magnification factor (1 to 1) |
| 717 |
\dimen\topins=\maxdimen % no limit per page |
| 718 |
\def\@ins{\par\begingroup\setbox\z@\vbox\bgroup} % start a \vbox |
| 719 |
\def\endinsert{\egroup % finish the \vbox |
| 720 |
\if@mid \dimen@\ht\z@ \advance\dimen@\dp\z@ \advance\dimen@12\p@ |
| 721 |
\advance\dimen@\pagetotal \advance\dimen@-\pageshrink |
| 722 |
\ifdim\dimen@>\pagegoal\@midfalse\p@gefalse\fi\fi |
| 723 |
\if@mid \bigskip\box\z@\bigbreak |
| 724 |
\else\insert\topins{\penalty100 % floating insertion |
| 725 |
\splittopskip\z@skip |
| 726 |
\splitmaxdepth\maxdimen \floatingpenalty\z@ |
| 727 |
\ifp@ge \dimen@\dp\z@ |
| 728 |
\vbox to\vsize{\unvbox\z@\kern-\dimen@}% depth is zero |
| 729 |
\else \box\z@\nobreak\bigskip\fi}\fi\endgroup} |
| 730 |
|
| 731 |
\output{\plainoutput} |
| 732 |
\def\plainoutput{\shipout\vbox{\makeheadline\pagebody\makefootline}% |
| 733 |
\advancepageno |
| 734 |
\ifnum\outputpenalty>-\@MM \else\dosupereject\fi} |
| 735 |
\def\pagebody{\vbox to\vsize{\boxmaxdepth\maxdepth \pagecontents}} |
| 736 |
\def\makeheadline{\vbox to\z@{\vskip-22.5\p@ |
| 737 |
\line{\vbox to8.5\p@{}\the\headline}\vss}\nointerlineskip} |
| 738 |
\def\makefootline{\baselineskip24\p@\lineskiplimit\z@\line{\the\footline}} |
| 739 |
\def\dosupereject{\ifnum\insertpenalties>\z@ % something is being held over |
| 740 |
\line{}\kern-\topskip\nobreak\vfill\supereject\fi} |
| 741 |
|
| 742 |
\def\pagecontents{\ifvoid\topins\else\unvbox\topins\fi |
| 743 |
\dimen@=\dp\@cclv \unvbox\@cclv % open up \box255 |
| 744 |
\ifvoid\footins\else % footnote info is present |
| 745 |
\vskip\skip\footins |
| 746 |
\footnoterule |
| 747 |
\unvbox\footins\fi |
| 748 |
\ifr@ggedbottom \kern-\dimen@ \vfil \fi} |
| 749 |
\def\footnoterule{\kern-3\p@ |
| 750 |
\hrule width 2truein \kern 2.6\p@} % the \hrule is .4pt high |
| 751 |
|
| 752 |
% Hyphenation, miscellaneous macros, and initial values for standard layout |
| 753 |
\message{hyphenation} |
| 754 |
|
| 755 |
\lefthyphenmin=2 \righthyphenmin=3 % disallow x- or -xx breaks |
| 756 |
|
| 757 |
\def\magnification{\afterassignment\m@g\count@} |
| 758 |
\def\m@g{\mag\count@ |
| 759 |
\hsize6.5truein\vsize8.9truein\dimen\footins8truein} |
| 760 |
|
| 761 |
\def\loggingall{\tracingcommands\tw@\tracingstats\tw@ |
| 762 |
\tracingpages\@ne\tracingoutput\@ne\tracinglostchars\@ne |
| 763 |
\tracingmacros\tw@\tracingparagraphs\@ne\tracingrestores\@ne |
| 764 |
\showboxbreadth\maxdimen\showboxdepth\maxdimen} |
| 765 |
\def\tracingall{\tracingonline\@ne\loggingall} |
| 766 |
|
| 767 |
\def\showhyphens#1{\setbox0\vbox{\parfillskip\z@skip\hsize\maxdimen\tenrm |
| 768 |
\pretolerance\m@ne\tolerance\m@ne\hbadness0\showboxdepth0\ #1}} |
| 769 |
|
| 770 |
\normalbaselines |
| 771 |
\catcode`@=12 % at signs are no longer letters |
| 772 |
|