Debian Codegraph @

texmf-dist/source/latex/amsfonts/amsfndoc.def

raw
1 %% filename: amsfndoc.def
2 %% version: 2.2d
3 %% date: 2002/01/18
4 %%
5 %% American Mathematical Society
6 %% Technical Support
7 %% Publications Technical Group
8 %% 201 Charles Street
9 %% Providence, RI 02904
10 %% USA
11 %% tel: (401) 455-4080
12 %% (800) 321-4267 (USA and Canada only)
13 %% fax: (401) 331-3842
14 %% email: [email protected]
15 %%
16 %% Copyright 1994, 2001, 2002, 2009 American Mathematical Society.
17 %%
18 %% Unlimited copying and redistribution of this file are permitted as
19 %% long as this file is not modified. Modifications, and distribution
20 %% of modified versions, are permitted, but only if the resulting file
21 %% is renamed.
22 %%
23 %% ====================================================================
24 \def\fontsreleasedate{January 2002}
25
26 \def\makeatletter{\catcode`\@=11 }
27 \chardef\other=12
28 \def\makeatother{\catcode`\@=\other}
29 \makeatletter
30
31 % If someone tries to typeset this user's guide with amstex or latex,
32 % let's give them a reasonably informative error message instead of
33 % totally random ones.
34 \def\temp{\errmessage{%
35 Plain TeX format must be used for amsfndoc.tex}%
36 \csname @@end\endcsname\end}
37
38 \ifx\amstexloaded@\relax
39 \errhelp{It seems that AMSTeX was used instead of plain TeX.}
40 \else
41 \ifx\@@end\undefined
42 \let\temp\relax
43 \else
44 \errhelp{It seems that LaTeX was used instead of plain TeX.}
45 \fi
46 \fi
47
48 \temp
49
50 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
51 %
52 % Utility registers and definitions
53
54 % Test registers for transient use; paired - internal/external
55 \newbox\T@stBox \newbox\TestBox
56 \newcount\T@stCount \newcount\TestCount
57 \newdimen\T@stDimen \newdimen\TestDimen
58 \newif\ifT@stIf \newif\ifTestIf
59
60 \newif\ifPrelimDraft \PrelimDraftfalse
61
62 % flag for when we decide whether the Extended Distribution for Mac will
63 % still exist
64 \newif\ifExtendedExists
65 \ExtendedExiststrue
66 \ExtendedExistsfalse
67
68 % Avoid unwanted vertical glue when making up pages.
69 \def\basezero{\baselineskip\z@ \lineskip\z@}
70
71
72 % Vertical `laps'; cf. \llap and \rlap
73 \long\def\ulap#1{\vbox to \z@{\vss#1}}
74 \long\def\dlap#1{\vbox to \z@{#1\vss}}
75
76 %
77 % Support ad-hoc strut construction.
78 \def\makestrut[#1;#2]{\vrule height#1 depth#2 width\z@ }
79
80 % Miscellaneous useful stuff
81
82 \def\BlackBoxes{\overfullrule=5pt }
83 \def\NoBlackBoxes{\overfullrule=0pt }
84
85 \def\linebreak{\unskip\break}
86 \def\newline{\hskip0pt plus \pagewd \break}
87 \def\newpage{\par\vfill\eject}
88
89 \def\bull{\vrule height 1ex width .8ex depth -.2ex } % square bullet
90
91 % Hack to permit automatic hyphenation after an actual hyphen.
92
93 \def\hyph{-\penalty0\hskip0pt\relax }
94
95 \def\slash{/\penalty0\hskip0pt} % "breakable" slash
96
97 \def\dotsfill{\leaders\hbox to1em{\hfil.\hfil}\hfill}
98
99
100 % Today's date, to be printed on drafts. Based on TeXbook, p.406.
101
102 \def\today{\number\day\space \ifcase\month\or
103 Jan \or Feb \or Mar \or Apr \or May \or Jun \or
104 Jul \or Aug \or Sep \or Oct \or Nov \or Dec \fi
105 \number\year}
106
107 % Current time; this may be system dependent!
108 \newcount\hours
109 \newcount\minutes
110 \def\SetTime{\hours=\time
111 \global\divide\hours by 60
112 \minutes=\hours
113 \multiply\minutes by 60
114 \advance\minutes by-\time
115 \global\multiply\minutes by-1 }
116 \SetTime
117 \def\now{\number\hours:\ifnum\minutes<10 0\fi\number\minutes}
118
119 \def\Now{\today\ \now}
120
121 %
122 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
123 %
124 % Page dimensions
125 %
126
127
128 % Dimensions given before fonts; \colwd is needed in definition of \ragged...
129
130 \newdimen\pagelgt
131 \newdimen\rheadlgt \rheadlgt=2.5pc
132 \newdimen\collgt \collgt=47pc
133 \maxdepth=2pt
134 \newdimen\rfootlgt \rfootlgt=2pc
135
136 \newif\ifThisIsFirstPage \ThisIsFirstPagetrue
137
138 \def\resetpagelgt{\pagelgt=\collgt
139 \advance\pagelgt by \rheadlgt
140 \advance\pagelgt by \maxdepth
141 \global\advance\pagelgt by \rfootlgt
142 \global\vsize=\collgt }
143
144 \resetpagelgt
145 \raggedbottom
146
147 \newdimen\colwd \colwd=30pc
148 \hsize=\colwd
149 \newdimen\pagewd \pagewd=30pc
150 \parskip=\smallskipamount
151
152
153 %
154 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
155 %
156 % Fonts and friends
157 %
158
159
160 % PLAIN CM fonts needed for \tenpoint, \ninepoint and \eightpoint
161
162 \font\tenrm=cmr10
163 \font\ninerm=cmr9
164 \font\eightrm=cmr8
165 \font\sevenrm=cmr7
166 \font\sixrm=cmr6
167 \font\fiverm=cmr5
168
169 \font\teni=cmmi10 \skewchar\teni='177
170 \font\ninei=cmmi9 \skewchar\ninei='177
171 \font\eighti=cmmi8 \skewchar\eighti='177
172 \font\seveni=cmmi7 \skewchar\seveni='177
173 \font\sixi=cmmi6 \skewchar\sixi='177
174 \font\fivei=cmmi5 \skewchar\fivei='177
175
176 \font\tensy=cmsy10 \skewchar\tensy='60
177 \font\ninesy=cmsy9 \skewchar\ninesy='60
178 \font\eightsy=cmsy8 \skewchar\eightsy='60
179 \font\sevensy=cmsy7 \skewchar\sevensy='60
180 \font\sixsy=cmsy6 \skewchar\sixsy='60
181 \font\fivesy=cmsy5 \skewchar\fivesy='60
182
183 \font\tenex=cmex10
184
185 \font\tenbf=cmbx10
186 \font\ninebf=cmbx9
187 \font\eightbf=cmbx8
188 \font\sevenbf=cmbx7
189 \font\sixbf=cmbx6
190 \font\fivebf=cmbx5
191
192 \font\tentt=cmtt10
193 \font\ninett=cmtt9
194 \font\eighttt=cmtt8
195
196 \font\tensl=cmsl10
197 \font\ninesl=cmsl9
198 \font\eightsl=cmsl8
199
200 \font\tenit=cmti10
201 \font\nineit=cmti9
202 \font\eightit=cmti8
203 \font\sevenit=cmti7
204
205 \font\tensmc=cmcsc10
206
207 \def\mit{\fam\@ne}
208 \def\cal{\fam\tw@}
209
210 %
211 %% Minimize font usage [mjd,20-Dec-1994]
212 \def\manual{\tenss}% font substitution
213
214 \newfam\titlefam
215 \newdimen\titlefontbaselineskip \titlefontbaselineskip=18pt
216 \def\titlefont{\textfont\titlefam=\sixteenbf
217 \scriptfont\titlefam=\twelvebf \scriptscriptfont\titlefam=\tenbf
218 \fam\titlefam \sixteenbf \baselineskip=\titlefontbaselineskip }
219
220
221 % Struts give ascenders and descenders to assist in baseline alignment
222 % (e.g. of adjoining vertical boxes); useful only with text fonts.
223 %
224 % \strut is defined in PLAIN . The structure of \strutt is equivalent.
225
226 \newbox\struttbox
227 \def\strutt{\relax\ifmmode\copy\struttbox\else\unhcopy\struttbox\fi}
228
229 % Struts are given the following dimensions:
230 %
231 % \strut = height/depth of parenthesis in current font
232 % (not the same as PLAIN)
233 % \strutt height + depth = \normalbaselineskip,
234 % height = same as \strut
235 % (equivalent to PLAIN \strut )
236
237
238 % PLAIN's definition of \raggedright doesn't permit any stretch, and
239 % results in too many overfull boxes. Change.
240 \newdimen\raggedskip \raggedskip=\z@
241 \newdimen\raggedstretch \raggedstretch=\colwd
242 \newskip\raggedparfill \raggedparfill=\z@ plus 1fil
243
244 \def\raggedspaces{\spaceskip=.3333em \xspaceskip=.5em }
245 % Some applications may have to add stretch, in order to avoid
246 % all overfull boxes.
247
248 \def\raggedright{\rightskip=\raggedskip plus\raggedstretch \raggedspaces
249 \parfillskip=\raggedparfill }
250 \def\raggedleft{\leftskip=\raggedskip plus\raggedstretch \raggedspaces
251 \parfillskip=\z@ }
252 \def\raggedcenter{\leftskip=\raggedskip plus\raggedstretch
253 \rightskip=\leftskip \raggedspaces
254 \parindent=\z@ \parfillskip=\z@ }
255
256 \def\normalspaces{\spaceskip=.3333em plus.1667em minus.1111em
257 \xspaceskip=.4444em plus.5em minus.037em }
258
259 %
260 % Allow text to be a bit stretchier than the built-in setting;
261 % TeXbook, page 433, 355
262
263 \newdimen\normaltenptstretch \normaltenptstretch=1.6667pt
264 \newdimen\extratenptstretch \extratenptstretch=4pt
265 \def\NormalTenPointSpacing{\fontdimen3\tenrm=\normaltenptstretch
266 \fontdimen3\tenit=\normaltenptstretch}
267 \def\StretchyTenPointSpacing{\fontdimen3\tenrm=\extratenptstretch
268 \fontdimen3\tenit=\extratenptstretch}
269
270 \def\tenpoint{\normalbaselineskip=12pt
271 \abovedisplayskip=3pt plus 3pt minus 1pt
272 \belowdisplayskip=3pt plus 3pt minus 1pt
273 \abovedisplayshortskip=0pt plus 3pt
274 \belowdisplayshortskip=2pt plus 3pt
275 \def\rm{\fam\z@\tenrm}%
276 \textfont0=\tenrm \scriptfont0=\sevenrm \scriptscriptfont0=\fiverm
277 \def\oldstyle{\fam\@ne\teni}%
278 \textfont1=\teni \scriptfont1=\seveni \scriptscriptfont1=\fivei
279 \textfont2=\tensy \scriptfont2=\sevensy \scriptscriptfont2=\fivesy
280 \textfont3=\tenex \scriptfont3=\tenex \scriptscriptfont3=\tenex
281 \def\it{\fam\itfam\tenit}%
282 \textfont\itfam=\tenit \scriptfont\itfam=\sevenit
283 \def\sl{\fam\slfam\tensl}%
284 \textfont\slfam=\tensl \scriptfont\slfam=\eightsl
285 \def\bf{\fam\bffam\tenbf}%
286 \textfont\bffam=\tenbf \scriptfont\bffam=\eightbf
287 \scriptscriptfont\bffam=\sixbf
288 \def\smc{\tensmc}%
289 \def\tt{\tentt}%
290 \setbox\strutbox=\hbox{\vrule height7.5pt depth2.5pt width\z@}%
291 \setbox\struttbox=\hbox{\vrule height8.5pt depth3.5pt width\z@}%
292 \normalbaselines \rm }
293
294 \tenpoint % initialize -- default font
295
296 %
297 \newdimen\normalnineptstretch \normalnineptstretch=1.5pt
298 \newdimen\extranineptstretch \extranineptstretch=3.6pt
299 \def\NormalNinePointSpacing{\fontdimen3\ninerm=\normalnineptstretch}
300 \def\StretchyNinePointSpacing{\fontdimen3\ninerm=\extranineptstretch}
301
302 \def\ninepoint{\normalbaselineskip=11pt
303 \abovedisplayskip=2.5pt plus 2.5pt minus 1pt
304 \belowdisplayskip=2.5pt plus 2.5pt minus 1pt
305 \abovedisplayshortskip=0pt plus 2.5pt
306 \belowdisplayshortskip=2pt plus 2.5pt
307 \def\rm{\fam\z@\ninerm}%
308 \textfont0=\ninerm \scriptfont0=\sevenrm \scriptscriptfont0=\fiverm
309 \def\oldstyle{\fam\@ne\ninei}%
310 \textfont1=\ninei \scriptfont1=\seveni \scriptscriptfont1=\fivei
311 \textfont2=\ninesy \scriptfont2=\sevensy \scriptscriptfont2=\fivesy
312 \def\it{\fam\itfam\nineit}%
313 \textfont\itfam=\nineit
314 \def\sl{\fam\slfam\ninesl}%
315 \textfont\slfam=\ninesl
316 \def\bf{\fam\bffam\ninebf}%
317 \textfont\bffam=\ninebf \scriptfont\bffam=\sevenbf
318 \scriptscriptfont\bffam=\sixbf
319 \def\tt{\ninett}%
320 \setbox\strutbox=\hbox{\vrule height 6.75pt depth 2.25pt width\z@}%
321 \setbox\struttbox=\hbox{\vrule height 7.75pt depth 3.25pt width\z@}%
322 \normalbaselines \rm }
323
324 %
325 \newdimen\normaleightptstretch \normaleightptstretch=1.333pt
326 \newdimen\extraeightptstretch \extraeightptstretch=3pt
327 \def\NormalEightPointSpacing{\fontdimen3\eightrm=\normaleightptstretch}
328 \def\StretchyEightPointSpacing{\fontdimen3\eightrm=\extraeightptstretch}
329
330 \def\eightpoint{\normalbaselineskip=10pt
331 \abovedisplayskip=3pt plus 2pt minus 1pt
332 \belowdisplayskip=3pt plus 2pt minus 1pt
333 \abovedisplayshortskip=0pt plus 2pt
334 \belowdisplayshortskip=2pt plus 2pt
335 \def\rm{\fam\z@\eightrm}%
336 \textfont0=\eightrm \scriptfont0=\sixrm \scriptscriptfont0=\fiverm
337 \def\oldstyle{\fam\@ne\eighti}%
338 \textfont1=\eighti \scriptfont1=\sixi \scriptscriptfont1=\fivei
339 \textfont2=\eightsy \scriptfont2=\sixsy \scriptscriptfont2=\fivesy
340 \def\it{\fam\itfam\eightit}%
341 \textfont\itfam=\eightit
342 \def\sl{\fam\slfam\eightsl}%
343 \textfont\slfam=\eightsl
344 \def\bf{\fam\bffam\eightbf}%
345 \textfont\bffam=\eightbf \scriptfont\bffam=\sixbf
346 \scriptscriptfont\bffam=\sixbf
347 \def\smc{\eightsmc}%
348 \def\tt{\eighttt}%
349 \setbox\strutbox=\hbox{\vrule height 6pt depth 2pt width\z@}%
350 \setbox\struttbox=\hbox{\vrule height 7pt depth 3pt width\z@}%
351 \normalbaselines \rm }
352
353
354 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
355 %
356 % Headers/footers
357 %
358
359
360 \newdimen\pagenowidth
361 \setbox0=\hbox{\tenrm 99\quad}
362 \pagenowidth=\wd0
363
364 \newdimen\rtitlebaseline \rtitlebaseline=10pt
365 \def\rtitlex{\ignorespaces\firstmark\unskip}
366 \def\rhsection#1#2{\if!#1!\else #1. \fi#2}
367
368 \def\runhead{\vbox to \rheadlgt{\let\mnm=\notmain
369 \line{\tenrm
370 \makestrut[\rtitlebaseline;\z@]%
371 \ifodd\pageno \hfil\rtitlex\hfil\hbox to\z@{\hss\number\pageno}%
372 \else \hbox to \z@{\number\pageno\hss}\hfil\rtitlex\hfil \fi }%
373 \vfil }}
374
375 \def\runfoot{\vbox to \rfootlgt{\baselineskip=1.5pc
376 \line{\hfil\line{\hfil
377 \ifPrelimDraft \tenrm \makestrut[1.5pc;\z@]\Now \fi
378 }\hfil}
379 \vfil }}
380
381 %
382 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
383 %
384 % Output
385 %
386
387
388 \output{\shipout \vbox{\basezero
389 \hrule height\z@ depth\z@ width\p@
390 \vskip-\rheadlgt
391 \vbox to \pagelgt{\basezero
392 \ifThisIsFirstPage \vskip\rheadlgt \global\ThisIsFirstPagefalse
393 \else \runhead
394 \fi % \vsize applied in \pagebody
395 \hbox to \pagewd{\hfil\pagebody \hfil}%
396 \vfil % if no depth, avoid underfull box
397 \runfoot }%
398 }%
399 \global\advancepageno }
400
401
402 % Reorganize \pagecontents from PLAIN to put footnotes at very
403 % bottom of page, even if \raggedbottom.
404
405 \def\pagecontents{\ifvoid\topins\else\unvbox\topins\fi
406 \dimen@=\dp\@cclv \unvbox\@cclv % open up \box255
407 \ifr@ggedbottom \kern-\dimen@ \vfil \fi
408 \ifvoid\footins\else % footnote info is present
409 \vskip\skip\footins
410 \footnoterule
411 \unvbox\footins\fi }
412
413 % Redefine \@ins to avoid the \par of PLAIN.
414
415 \def\@ins{\begingroup\setbox\z@\vbox\bgroup} % start a \vbox
416
417 %
418 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
419 %
420 % Titles and section headings
421 %
422
423 \newskip\AboveTitleSkip \AboveTitleSkip=12pt plus 2pt minus 2pt
424 \newskip\BelowTitleSkip \BelowTitleSkip=8pt plus 1pt minus 1pt
425
426 \newdimen\mtrulethickness \mtrulethickness=.6pt
427 \def\mthrule{\hrule height\mtrulethickness depth 0pt \relax }
428 \let\DoHrule=\mthrule
429
430 \newbox\maintitlebox
431 \def\maintitle #1\\#2<{\vfil\eject
432 \vbox{\rightskip=0pt plus 1fil\leftskip=\rightskip
433 \parindent=0pt\parfillskip=0pt\bf#1\par
434 }%
435 \setbox\maintitlebox\hbox{#2}%
436 \ifdim\wd\maintitlebox=\z@
437 \else\vskip3pt\centerline{#2}\fi
438 \medskip\SetupFirstPar }
439
440
441 % First-paragraph formatting
442
443 \newif\ifFirstPar \FirstParfalse
444 \def\SetupFirstPar{\global\parindent=0pt \global\FirstPartrue }
445
446 \newif\ifNoParIndent \NoParIndentfalse
447 \def\NoParIndent{\parindent=0pt \NoParIndenttrue}
448
449 \newdimen\normalparindent \normalparindent=20pt
450 \def\NormalParIndent{\global\parindent=\normalparindent
451 \global\NoParIndentfalse}
452 \NormalParIndent
453
454 % Make the first paragraph after a title start flush left, then reset
455 % \parindent; but don't reset if all paragraphs should start flush left.
456 \everypar{\ifNoParIndent
457 \else \ifFirstPar \NormalParIndent \global\FirstParfalse \fi
458 \fi }
459 %
460 \newif\ifFigure \Figurefalse
461
462 \def\figuretitle#1{\Figuretrue \section{Figure #1}}
463
464 % Don't make running heads from \section in the appendices.
465 \def\section#1#2\par{%
466 \penalty-20
467 \vskip\AboveTitleSkip
468 {\raggedcenter
469 {\smc\noindent\ignorespaces\if!#1!\else#1. \fi
470 \ifFigure\rm\fi\ignorespaces
471 #2\unskip}\strutt
472 \ifFigure \global\Figurefalse
473 \else
474 \tocwrites\tocsection{#1}{#2}%
475 \ifAppendix
476 \else \toks0{\rhsection{#1}{#2}}\mark{\the\toks0}%
477 \fi
478 \fi \endgraf
479 }%
480 \nobreak \vskip\BelowTitleSkip
481 \SetupFirstPar }
482
483 \let\primend=\end
484 \def\end{\immediate\closeout\auxfile
485 \ifNoToc
486 \immediate\write16{*** Warning: Need to rerun to get TOC}%
487 \fi
488 \primend}
489
490 \newwrite\auxfile
491 \def\auxwrite{\immediate\openout\auxfile=\jobname.aux \relax
492 \global\let\auxwrite\auxwriteb \auxwriteb}
493 \def\auxwriteb{\write\auxfile}
494
495 \long\def\gobbletwo#1#2{}
496 \long\def\gobblethree#1#2#3{}
497
498 \def\tocwrite#1#2#3{%
499 \begingroup
500 \def\temp{{#2}{#3}}\edef\temp{\mmeaning\temp}%
501 \edef\tempb{\noexpand\auxwrite{%
502 \string#1\temp{\noexpand\the\pageno}}}%
503 \tempb
504 \endgroup
505 }
506
507 \def\tocwrites{\tocwrite}
508 \def\tocwritea{\tocwrite}
509
510 \newif\ifAppendix
511 \def\appendix#1#2{\maintitle Appendix #1\break #2\\<
512 \mark{Appendix #1.\enspace#2}\tocwritea\tocappendix{#1}{#2}%
513 \gdef\theappendix{#1}%
514 % Now \section should no longer go into the table of contents.
515 \let\tocwrites\gobblethree
516 % And forget the running head on the first page of an appendix.
517 \global\ThisIsFirstPagetrue \Appendixtrue
518 \InstSec=0 \relax }
519
520 % main/not main macro, prints arg #1 in the main text, #2 in running
521 % head or table of contents
522 \def\mnm#1#2{#1}
523 \def\notmain#1#2{#2}
524
525 \def\mmeaning{\expandafter\mstrip\meaning}
526 \def\mstrip#1->{}
527
528 \long\def\gobble#1{}
529
530 \def\References#1{\section{}References\par
531 \begingroup \raggedright \hyphenpenalty=10000 \exhyphenpenalty=10000
532 \setbox\TestBox=\hbox{[#1] }
533 \leftskip=\wd\TestBox
534 }
535
536 \def\endReferences{\par\endgroup}
537
538 \def\bibitem [#1] {\noindent\kern-\leftskip
539 \hbox to\leftskip{[#1]\hfil}\ignorespaces}
540
541 \def\bysame{\hbox to 3em{\leaders\hrule\hfill}\thinspace, }
542
543 % Note that, since \raggedbottom is turned on, there is already an
544 % implied 60pt (= 5\baselineskip) margin allowed, so the penalty
545 % should not be overly attractive.
546 \def\subsection#1#2\par{\ifFirstPar \nobreak
547 \else \vskip\z@ plus 4\baselineskip \penalty-10
548 \vskip\z@ plus-4\baselineskip \vskip 8pt \vskip\parskip \fi
549 {\raggedright\hyphenpenalty=10000 \exhyphenpenalty=10000
550 \noindent\bf#1. \ignorespaces#2\endgraf}\nobreak \vskip 4pt\relax
551 \SetupFirstPar }
552
553
554 \def\Contents{%
555 \subsection{\gobble}Contents of this document\par
556 \begingroup
557 \parfillskip=\normalparindent \parindent=\normalparindent
558 \let\mnm=\notmain
559 \input \jobname.aux \relax
560 \par\endgroup
561 }
562
563 \def\tocsection#1#2#3{%
564 \par \global\NoTocfalse
565 \begingroup \hangindent\parindent\indent
566 \if!#1!\else#1. \fi#2\dotsfill\ #3\endgraf
567 \endgroup}
568
569 \def\tocappendix#1{\tocsection{Appendix #1}}
570
571 % Define address blocks and other structures that use \obeylines
572 % in the context \tag ...<
573 % This requires that < be active, so that \obeylines is invoked
574 % at the outer level. \tag{...} will not deliver the data with
575 % ^M (carriage return) intact, so is not a suitable format for
576 % any construction using \obeylines; the reference (if any) in
577 % The TeXbook has not been found, and this information has been
578 % determined empirically, referring to \obeylines constructions
579 % in PLAIN and MANMAC.TeX (The TeXbook macros).
580 {\catcode`\^^M=\active % these lines must end with %
581 \gdef\obeylinesblock{\catcode`\^^M\active \def^^M{\par\nobreak}}}
582
583 {\catcode`\<=\active \obeylines
584 \gdef\TextAddr{\endgraf\def\Phone{\leavevmode\kern\parindent}%
585 \let\NetAddr=\Phone %
586 \catcode`\<=\active %
587 % next line intentionally ends with <cr> %
588 \def<{
589 \egroup\allowbreak\catcode`\<=12 }%
590 \bgroup\penalty9999 \obeylinesblock }%
591 }
592
593 \newbox\usertypebox
594 \let\usertypeskip\empty
595 \long\def\usertype@#1{%
596 \setbox\usertypebox\hbox{\hskip2pc\tt#1}%
597 \par\usertypeskip
598 {\let\oldpar=\par
599 \def\par{%
600 \oldpar\leavevmode\hbox to 0pt
601 {\ifdim1\wd\usertypebox>10pc\hskip1\wd\usertypebox\hskip1pc
602 \else\hskip10pc
603 \fi
604 \rm $\langle$return$\rangle$\hss}\hskip2pc}%
605 \par\tt#1}%
606 \par\usertypeskip}
607
608 \def\usertype{\let\usertypeskip=\smallskip \usertype@}
609 \def\usertypenoskip{\let\usertypeskip=\empty \usertype@}
610
611 %
612 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
613 %
614 % Abbreviations and logos
615 %
616
617
618 \def\AMS{American Mathematical Society}
619
620 \def\AmS{{\the\textfont2 A}\kern-.1667em\lower.5ex\hbox
621 {\the\textfont2 M}\kern-.125em{\the\textfont2 S}}
622 \def\AmSTeX{\AmS-\TeX}
623
624 \def\AW{Addison\kern.1em-\penalty0\hskip0pt Wesley}
625
626 \def\BibTeX{{\rm B\kern-.05em{\smc i\kern-.025emb}\kern-.08em\TeX}}
627
628 \def\CandT{{\sl Computers \& Typesetting}}
629
630 \def\cn#1{{\tt \bs #1}}
631
632 \def\JoT{{\sl The Joy of \TeX}}
633 \def\Joy{{\sl Joy}}
634
635 % note -- \LaTeX definition is from LATEX.TEX 2.09 of 7 Jan 86,
636 % adapted for additional flexibility.
637 %\def\LaTeX{\TestCount=\the\fam \leavevmode L\raise.42ex
638 % \hbox{$\fam\TestCount\scriptstyle\kern-.3em A$}\kern-.15em\TeX}
639 % note -- broken in two parts, to permit separate use of La, as in (La)TeX
640 \def\La{\TestCount=\the\fam \leavevmode L\raise.42ex
641 \hbox{$\fam\TestCount\scriptstyle\kern-.3em A$}}
642 \def\LaTeX{\La\kern-.15em\TeX}
643 \def\LaTeXe{\LaTeX\kern.15em2$_{\textstyle\varepsilon}$}
644
645 \def\MF{{\manual META}\-{\manual FONT}\spacefactor1000 }
646 \def\mf{{\manual MF}\spacefactor1000 }
647
648 \def\MR{{\sl Mathematical Reviews}}
649
650 \def\pkg#1{{\tt #1}}
651
652 \def\POBox{P.\thinspace O.~Box }
653
654 \def\TB{{\sl The \TeX book}}
655
656 \def\TeX{T\kern-.1667em\lower.424ex\hbox{E}\kern-.125emX\spacefactor1000 }
657
658 \def\Textures{{\it Textures\/}}
659
660 \def\TUB{{\sl TUGboat}}
661 \def\TUG{\TeX{} Users Group}
662
663 %
664 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
665 %
666 % Verbatim
667 %
668
669
670 % Verbatim listing of TeX source, as defined in TeXbook, p. 421.
671
672 \def\ttverbatim{\begingroup \catcode`\\=\other
673 \catcode`\{=\other \catcode`\}=\other \catcode`\$=\other
674 \catcode`\&=\other \catcode`\#=\other \catcode`\%=\other
675 \catcode`\~=\other \catcode`\_=\other \catcode`\^=\other
676 \catcode`\"=\other \catcode`\@=\other
677 \obeyspaces \obeylines \hyphenpenalty=10000 \tt}
678
679 \newskip\ttglue
680 {\tenpoint\tt \global\ttglue=.5em plus .25em minus .15em}
681 % this should be installed in each font
682
683 {\obeyspaces\gdef {\ifvmode\indent\fi\space}}
684
685 % Permissible overhang beyond right margin; in MANMAC, this is 5pc,
686 % which is fine for the TeXbook, but too much here.
687 \newdimen\ttrightskip
688 \ttrightskip=1pc
689
690 \newcount\linenumber
691
692 \def\setuptt{%
693 \vskip\abovedisplayskip
694 \begingroup\def\par{\leavevmode\null\endgraf}\ttverbatim\parskip=\z@
695 \linenumber=0
696 \everypar={\global\advance\linenumber by\@ne
697 \ifnum\linenumber<3 \nobreak \fi}%
698 \catcode`\|=0
699 \frenchspacing\rightskip=-\ttrightskip}
700 \outer\def\begintt{\setuptt\ttfinish}
701 \def\skipaftertt{%
702 \vskip\belowdisplayskip
703 \penalty20
704 \vskip-\parskip
705 \vskip-\abovedisplayshortskip
706 \vskip-2\baselineskip
707 \vskip-\belowdisplayshortskip
708 $$\null$$ % whatever follows will behave as if it follows a display
709 }
710 {\catcode`\|=0 |catcode`|\=\other % | is temporary escape character
711 |obeylines % end of line is active
712 |gdef|ttfinish#1^^M#2\endtt{#1#2|endgroup|endgroup|skipaftertt%
713 |ignorespaces}}
714
715 %
716 % Other non-tt elements that may be embedded within \begintt...\endtt .
717 \def\MTH{$}
718 \def\sb{_}
719 \def\sp{^}
720 \def\SP{{\tt\char"20 }} % "visible" space
721 \chardef\bs=`\\
722 \def\vrt{{\tt\char`\|}}
723
724 \catcode`\|=\active
725 {\obeylines %
726 \gdef|{\ttverbatim \spaceskip\ttglue \xspaceskip\ttglue %
727 \hyphenpenalty=10000 \let^^M=\ \let|=\endgroup}}
728
729 \def\@period{.}
730 \def\@gobble#1{}
731 %\def\furtherinfo{\futurelet\test@period\check@period}
732 %\def\check@period{Appendix D, {\bf For further information}%
733 % \ifx\test@period .\def\next{.\@gobble}\else \def\next{''}\fi \next }
734 \def\typeiapp{Appendix B}
735 \def\furtherinfo{Appendix C, {\bf For further information}}
736 \def\fontchartapp{Appendix D}
737
738 \def\@Note #1{\def\endx{\ifhmode \unskip\endgraf \fi \endgroup \medskip }%
739 \ifdim\lastskip>\medskipamount \else \removelastskip\medskip \fi
740 \begingroup
741 \leftskip=3pc \rightskip=\leftskip
742 \interlinepenalty=10000
743 \noindent
744 {\bf\ignorespaces#1\unskip: } \ignorespaces }
745 \def\Note{\@Note{Note}}
746 \def\Warn{\@Note{Warning}}
747
748 \def\<#1>{$\langle${\rm #1\/}$\rangle$}
749
750 \def\filename#1{%
751 \leavevmode\hbox{\tt\ignorespaces#1\unskip}}
752 \def\fontname{\filename}
753 \let\fn=\filename
754
755 \def\description{\par\begingroup \parskip0pt \raggedright
756 \def\item##1{\par \hang
757 \noindent\hbox{\quad##1}\enspace\ignorespaces}%
758 }
759 \def\enddescription{\par\endgroup}
760
761 \def\mathfrak{\frak}
762 \def\opt{\pkg}
763
764 \def\ctab#1{\noindent$$\def\\{\cr}%
765 \def\hline##1{\noalign{\nointerlineskip\vskip2pt}%
766 \multispan{##1}\hrulefill\\%
767 \noalign{\vskip-2pt}}%
768 \tabskip0pt plus1fil
769 \halign to\hsize\bgroup#1\tabskip0pt plus1fil\cr}
770 \def\endctab{\crcr\egroup$$}
771
772 \makeatother
773
774
775 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
776 %
777 % Initialization
778 %
779
780
781 \PrelimDraftfalse
782 \pageno=1
783
784 \StretchyTenPointSpacing
785 \StretchyEightPointSpacing
786
787 \clubpenalty=10000
788 \widowpenalty=10000
789
790 \normallineskiplimit=1pt
791
792 % some hyphenation exceptions:
793 \hyphenation{man-u-script man-u-scripts}
794
795 % for amsfndoc.ins:
796 \font\tenss=cmss10
797
798 % These fonts and related stuff should be avoided for amsfndoc.ins
799 % because they either assume the AMSFonts collection is already
800 % installed, or they aren't needed in the appendices.
801 \def\extrafonts{\input amssym.def \input amssym.tex \relax
802 \font\teneusm=eusm10 \relax
803 \font\teneurm=eurm10 \relax
804 \font\teneurb=eurb10 \relax
805 \def\matheurm##1{{\teneurm##1}}%
806 \def\matheurb##1{{\teneurb##1}}%
807 \input cyracc.def \relax
808 \font\tencyr=wncyr10 \relax
809 \def\cyr{\tencyr\cyracc}%
810 }
811
812 \newcount\InstSec
813 \def\instsecno{\theappendix.\number\InstSec\relax}
814 \def\instsec{\global\advance\InstSec 1
815 \begingroup\edef\0{\endgroup\noexpand\section{\instsecno}}%
816 \0}
817 \def\theappendix{}
818
819 \def\OtherSec#1{%
820 \begingroup\advance\InstSec #1 \theappendix.\number\InstSec\endgroup}
821
822 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
823 % TOC generation
824
825 \newif\ifNoToc
826 \NoToctrue % set to false by \tocsection
827
828 \ifx\InstName\relax % then we are doing only the installation instructions.
829 \NoTocfalse % don't complain about the absence of TOC
830 \let\tocwrite\gobblethree
831 \else
832 % Make sure there is an auxfile.
833 \openin\auxfile=\jobname.aux \relax
834 \ifeof\auxfile
835 \closein\auxfile
836 \immediate\openout\auxfile=\jobname.aux \relax
837 \write\auxfile{\relax}% to avoid \par
838 \immediate\closeout\auxfile
839 \else
840 \closein\auxfile
841 \fi
842 \fi
843
844 \ifx\InstName\relax % then we are doing only the installation instructions.
845 \else
846 \begingroup \let\tocsection\gobblethree
847 \input \jobname.aux
848 \endgroup
849 \fi
850
851 \def\InstName{}
852
853 \endinput