Debian Codegraph @

texmf-dist/doc/amstex/base/amsppt.txt

raw
1 % AMSPPT.STY VERSION 2.0
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %% %%
5 %% This is the documentation for AMSPPT.STY, the AmS-TeX `preprint style'. %%
6 %% It contains all the code for AMSPPT.STY, with additional comments. All %%
7 %% such comments begin with %%, making it easy to recognize single % signs %%
8 %% that sometimes appear in AMSPPT.STY. %%
9 %% %%
10 %% Some explanations given earlier in the file will be required at later %%
11 %% points. Boxes like this are sometimes used for such explanations. %%
12 %% %%
13 %% Material from AMSTEX.DOC, the documentation file for AMSTEX.TEX may also %%
14 %% be used. %%
15 %% %%
16 %% As in AMSTEX.DOC, TB refers to The Texbook. %%
17 %% %%
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19
20 \catcode`\@=11
21
22 %% We record the style name in \styname and the version in \styversion,
23 !!!%% and then report them to the screen and log file.
24
25 \def\styname{amsppt}
26 \def\styversion{2.0}
27 {\W@{}\W@{AMSPPT.STY - Version \styversion}\W@{}}
28
29 %% It probably isn't necessary to prevent reading in amsppt.sty twice, but
30 %% we do it anyway, just to save time if it happens to be called twice.
31
32 \ifx\amspptloaded@\relax\catcode`\@=\active
33 \endinput\else\let\amspptloaded@\relax\fi
34
35 %% First we set up some basic parameters, which are different than in
36 %% plain. The values are common to several AMS journals, including the
37 %% Journal of the AMS.
38
39 \parindent1pc \hsize30pc \vsize47.5pc \normallineskiplimit\p@
40
41 %% As mentioned in AMSTEX.DOC, \captionwidth@ has to be reset for the new
42 %% \hsize.
43
44 \def\setcaptionwidth@{\captionwidth@\hsize \advance\captionwidth@-6pc}
45 \setcaptionwidth@
46
47 !!%% Provide a way to change the page height and width; changing the page
48 !!%% width automatically adjusts the caption width as well. (\pagewidth
49 !!%% in AMSTEX.TEX resets the caption width to a different value than is
50 !!%% used in AMS journals.)
51 !!
52 !!\def\changepageheight#1{\vsize=#1}
53 !!\def\changepagewidth#1{\hsize=#1\setcaptionwidth@}
54
55 %% We need the cmcsc10 font. Although \tensmc appears in AMSTEX.TEX, it
56 %% never actually got declared. Supply the cmcsc8 font too; it will be
57 %% included in the AMSFonts collection. We use \font@, not simply \font,
58 %% as already explained in AMSTEX.DOC.
59
60 \font@\tensmc=cmcsc10
61 \font@\eightsmc=cmcsc8
62
63 %% We have to load a lot of other fonts for the eight-point footnotes. Note
64 %% that cmti and cmsl in sizes 5, 6, 7 don't get loaded, since they may not
65 %% exist (cmti7 is one of the standard 75 Computer Modern fonts, but cmti5
66 !!%% and cmti6 aren't, nor are any of cmsl5, cmsl6, cmsl7). Instructions for
67 !!%% loading nine-point fonts are present, but commented out, as they are not
68 !!%% required in the preprint style; however, if a user wishes to use nine-point
69 !!%% fonts, the comment characters can be removed and \ninepoint defined on the
70 !!%% model of \tenpoint and \eightpoint below.
71
72 %\font@\ninerm=cmr9
73 \font@\eightrm=cmr8
74 \font@\sixrm=cmr6
75 %\font@\ninei=cmmi9 \skewchar\ninei='177
76 \font@\eighti=cmmi8 \skewchar\eighti='177
77 \font@\sixi=cmmi6 \skewchar\sixi='177
78 %\font@\ninesy=cmsy9 \skewchar\ninesy='60
79 \font@\eightsy=cmsy8 \skewchar\eightsy='60
80 \font@\sixsy=cmsy6 \skewchar\sixsy='60
81 %\font@\ninebf=cmbx9
82 \font@\eightbf=cmbx8
83 \font@\sixbf=cmbx6
84 %\font@\nineit=cmti9
85 \font@\eightit=cmti8
86 %\font@\ninesl=cmsl9
87 \font@\eightsl=cmsl8
88
89 %% We will load the basic sizes of the msam, msbm and eufm fonts as well
90 %% as the names of all the symbols. If these are really not needed, or
91 %% space is a problem, a user can comment out these lines without making
92 %% any other changes.
93
94 \loadmsam
95 \loadmsbm
96 \loadeufm
97 \UseAMSsymbols
98
99 %% We will only load the additional point sizes for the msam, msbm, and
100 %% eufm families if the flags \ifmsamloaded@, etc., are true (since
101 %% presumably this was done by a user who has the proper families).
102 %% As above, instructions for nine-point fonts are present but commented out.
103
104 \ifmsamloaded@
105 % \font@\ninemsa=msam9
106 \font@\eightmsa=msam8
107 \font@\sixmsa=msam6
108 \fi
109 \ifmsbmloaded@
110 % \font@\ninemsb=msbm9
111 \font@\eightmsb=msbm8
112 \font@\sixmsb=msbm6
113 \fi
114
115 \ifeufmloaded@
116 % \font@\nineeufm=eufm9
117 \font@\eighteufm=eufm8
118 \font@\sixeufm=eufm6
119 \fi
120
121 %% In order to be able to load additional sizes of the Euler fonts that
122 %% are not included automatically, we need to be able to test whether the
123 %% basic sizes have been loaded, and if they haven't, create a new switch.
124 %% Since this will be performed inside another macro, we need a \newif that
125 %% isn't outer. We repeat the definition of \@if from plain, for completeness.
126
127 % from plain.tex; we need a \newif that isn't outer.
128 \def\@newif#1{\count@\escapechar \escapechar\m@ne
129 \expandafter\expandafter\expandafter
130 \edef\@if#1{true}{\let\noexpand#1=\noexpand\iftrue}%
131 \expandafter\expandafter\expandafter
132 \edef\@if#1{false}{\let\noexpand#1=\noexpand\iffalse}%
133 \@if#1{false}\escapechar\count@} % the condition starts out false
134 \def\@if#1#2{\csname\expandafter\if@\string#1#2\endcsname}
135
136 %% We define a test that will determine whether or not a \cs is defined
137 %% (TB, p. 308).
138
139 \def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax }
140
141 %% We define a routine to create a new \if... if a tested \if... name
142 %% is not already defined, and apply it to all the Euler fonts that are
143 %% not loaded automatically.
144
145 \def\makeflag#1{\expandafter\@newif\csname if#1\endcsname
146 \csname #1false\endcsname}
147 \ifundefined{ifeufbloaded@}\makeflag{eufbloaded@}\fi
148 \ifundefined{ifeusmloaded@}\makeflag{eusmloaded@}\fi
149 \ifundefined{ifeusbloaded@}\makeflag{eusbloaded@}\fi
150 \ifundefined{ifeurmloaded@}\makeflag{eurmloaded@}\fi
151 \ifundefined{ifeurbloaded@}\makeflag{eurbloaded@}\fi
152
153 %% Now we define \tenpoint and \eightpoint for regular text and footnotes,
154 %% similarly to TB, p. 414. We keep track of the point size in a control
155 %% sequence \pointsize@, because a couple of constructions need to know the
156 %% point size we are in (and other constructions added later, or in other
157 %% styles, might need this). We not only change the \baselineskip, but also
158 %% change the glue above and below displayed formulas, in case the footnotes
159 %% happen to have them. We also need to set not only \strutbox, but also
160 %% \strutbox@. And we will set \ex@ in each case (for \tenpoint it is
161 %% supposed to be equivalent to 1pt, while for \eightpoint it will then
162 %% presumably be equivalent to .8pt).
163
164 %% When \ifsyntax@ is true, so that we are checking syntax, then we won't
165 %% bother specifying fonts (since we would only change them all to \dummyft@
166 %% anyway), and we simply let \big gobble up things with the proper syntax,
167 %% instead of worrying about getting the right sizes. In general, \big is
168 %% \tenbig or \eightbig, which are defined immediately afterwards.
169
170 \def\tenpoint{\def\pointsize@{10}%
171 \normalbaselineskip12\p@
172 \abovedisplayskip12\p@ plus3\p@ minus9\p@
173 \belowdisplayskip12\p@ plus3\p@ minus9\p@
174 \abovedisplayshortskip\z@ plus3\p@
175 \belowdisplayshortskip7\p@ plus3\p@ minus4\p@
176 \textonlyfont@\rm\tenrm
177 \textonlyfont@\it\tenit
178 \textonlyfont@\sl\tensl
179 \textonlyfont@\bf\tenbf
180 \textonlyfont@\smc\tensmc
181 \ifsyntax@\def\big##1{{\hbox{$\left##1\right.$}}}\else
182 \let\big\tenbig@
183 \textfont\z@=\tenrm \scriptfont\z@=\sevenrm \scriptscriptfont\z@=\fiverm
184 \textfont\@ne=\teni \scriptfont\@ne=\seveni \scriptscriptfont\@ne=\fivei
185 \textfont\tw@=\tensy \scriptfont\tw@=\sevensy \scriptscriptfont\tw@=\fivesy
186 \textfont\thr@@=\tenex \scriptfont\thr@@=\tenex
187 \scriptscriptfont\thr@@=\tenex
188 \textfont\itfam=\tenit %% \scriptfont and \scriptscriptfont for \itfam
189 %% are already set by AMSTEX.TEX, and there's no point trying to make
190 %% changes, since we probably don't have the right sizes.
191 \textfont\slfam=\tensl %% Similarly for \slfam.
192 \textfont\bffam=\tenbf \scriptfont\bffam=\sevenbf
193 \scriptscriptfont\bffam=\fivebf
194 \ifmsamloaded@
195 \textfont\msafam=\tenmsa \scriptfont\msafam=\sevenmsa
196 \scriptscriptfont\msafam=\fivemsa
197 \fi
198 \ifmsbmloaded@
199 \textfont\msbfam=\tenmsb \scriptfont\msbfam=\sevenmsb
200 \scriptscriptfont\msbfam=\fivemsb
201 \fi
202 \ifeufmloaded@
203 \textfont\eufmfam=\teneufm \scriptfont\eufmfam=\seveneufm
204 \scriptscriptfont\eufmfam=\fiveeufm
205 \fi
206 \ifeufbloaded@
207 \textfont\eufbfam=\teneufb \scriptfont\eufbfam=\seveneufb
208 \scriptscriptfont\eufbfam=\fiveeufb
209 \fi
210 \ifeusmloaded@
211 \textfont\eusmfam=\teneusm \scriptfont\eusmfam=\seveneusm
212 \scriptscriptfont\eusmfam=\fiveeusm
213 \fi
214 \ifeusbloaded@
215 \textfont\eusbfam=\teneusb \scriptfont\eusbfam=\seveneusb
216 \scriptscriptfont\eusbfam=\fiveeusb
217 \fi
218 \ifeurmloaded@
219 \textfont\eurmfam=\teneurm \scriptfont\eurmfam=\seveneurm
220 \scriptscriptfont\eurmfam=\fiveeurm
221 \fi
222 \ifeurbloaded@
223 \textfont\eurbfam=\teneurb \scriptfont\eurbfam=\seveneurb
224 \scriptscriptfont\eurbfam=\fiveeurb
225 \fi
226 \ifcmmibloaded@
227 \textfont\cmmibfam=\tencmmib \scriptfont\cmmibfam=\sevencmmib
228 \scriptscriptfont\cmmibfam=\fivecmmib
229 \fi
230 \ifcmbsyloaded@
231 \textfont\cmbsyfam=\tencmbsy \scriptfont\cmbsyfam=\sevencmbsy
232 \scriptscriptfont\cmbsyfam=\fivecmbsy
233 \fi
234 \fi %% Matches \ifsyntax@.
235 \setbox\strutbox\hbox{\vrule height8.5\p@ depth3.5\p@ width\z@}%
236 \setbox\strutbox@\hbox{\vrule height8\p@ depth3\p@ width\z@}%
237 \normalbaselines\tenrm\ex@=.2326ex}
238
239 %% For \eightpoint we don't change the assignments of \scriptscriptstyle,
240 %% since these don't change from \tenpoint (and we call \tenpoint near the
241 %% end). \textfont3 also doesn't change (an \eightex font will be included
242 %% in the AMSFonts collection, and can be added by the user).
243
244 \def\eightpoint{\def\pointsize@{8}%
245 \normalbaselineskip10\p@
246 \abovedisplayskip10\p@ plus2.4\p@ minus7.2\p@
247 \belowdisplayskip10\p@ plus2.4\p@ minus7.2\p@
248 \abovedisplayshortskip\z@ plus2.4\p@
249 \belowdisplayshortskip5.6\p@ plus2.4\p@ minus3.2\p@
250 \textonlyfont@\rm\eightrm
251 \textonlyfont@\it\eightit
252 \textonlyfont@\sl\eightsl
253 \textonlyfont@\bf\eightbf
254 \textonlyfont@\smc\eightsmc
255 \ifsyntax@\def\big##1{{\hbox{$\left##1\right.$}}}\else
256 \let\big\eightbig@
257 \textfont\z@=\eightrm \scriptfont\z@=\sixrm
258 \textfont\@ne=\eighti \scriptfont\@ne=\sixi
259 \textfont\tw@=\eightsy \scriptfont\tw@=\sixsy
260 %% Although we don't have smaller fonts for \itfam or \slfam, we reset
261 %% the \scriptfont and \scriptscriptfonts to the text size so that they
262 %% won't appear in ten-point if they are used.
263 \textfont\itfam=\eightit \scriptfont\itfam=\eightit
264 \scriptscriptfont\itfam=\eightit
265 \textfont\slfam=\eightsl \scriptfont\slfam=\eightsl
266 \scriptscriptfont\slfam=\eightsl
267 \textfont\bffam=\eightbf \scriptfont\bffam=\sixbf
268 \ifmsamloaded@
269 \textfont\msafam=\eightmsa \scriptfont\msafam=\sixmsa
270 \fi
271 \ifmsbmloaded@
272 \textfont\msbfam=\eightmsb \scriptfont\msbfam=\sixmsb
273 \fi
274 \ifeufmloaded@
275 \textfont\eufmfam=\eighteufm \scriptfont\eufmfam=\sixeufm
276 \fi
277 \fi
278 \setbox\strutbox\hbox{\vrule height7\p@ depth3\p@ width\z@}%
279 \setbox\strutbox@\hbox{\vrule height6.5\p@ depth2.5\p@ width\z@}%
280 \normalbaselines\eightrm\[email protected]}
281
282 %% Fix Plain's \bigl, \Bigl, etc. macros so that they try to scale with
283 %% size changes. This uses the fact that \tenpoint and \eightpoint
284 %% set \ht\strutbox to be 70% of the normal unstretched baselineskip.
285 %% from John Hobby
286
287 \def\big#1{{\hbox{$\m@th
288 \left#1\vcenter to1.428\ht\strutbox{}\right.\n@space$}}}
289 \def\Big#1{{\hbox{$\m@th
290 \left#1\vcenter to2.142\ht\strutbox{}\right.\n@space$}}}
291 \def\bigg#1{{\hbox{$\m@th
292 \left#1\vcenter to2.857\ht\strutbox{}\right.\n@space$}}}
293 \def\Bigg#1{{\hbox{$\m@th
294 \left#1\vcenter to3.571\ht\strutbox{}\right.\n@space$}}}
295
296 %% Although the counter \footmarkcount@ is declared in AMSTEX.TEX, the rest
297 %% of \footnote has to be done here. \footmarkform@ tells how to treat a
298 %% general type of footnote marker. And \thefootnotemark is for the user,
299 %% analogous to \thetag in AMSTEX.TEX.
300
301 \def\footmarkform@#1{$\m@th^{#1}$}
302 \let\thefootnotemark\footmarkform@
303
304 %% \makefootnote@ takes care of the general problem of creating a footnote
305 %% whose marker is #1 and whose text is #2, so that we can concentrate
306 %% separately on the problem of how the marker is determined. It is
307 %% essentially \vfootnote from TB, p. 363, except that we don't do fancy
308 %% things to worry about category code changes; our footnotes will begin
309 %% unindented, and instead of adding a \strut at the end, we will just add
310 %% the lower part of the strut. (And, of course, we will be in eight point
311 %% type.)
312
313 \def\makefootnote@#1#2{\insert\footins
314 {\interlinepenalty\interfootnotelinepenalty
315 \eightpoint\splittopskip\ht\strutbox\splitmaxdepth\dp\strutbox
316 \floatingpenalty\@MM\leftskip\z@\rightskip\z@\spaceskip\z@\xspaceskip\z@
317 \noindent{#1}\footstrut\ignorespaces#2\unskip\lower\dp\strutbox
318 \vbox to\dp\strutbox{}}}
319
320 %% We need a counter for footnotes; initialize it.
321
322 \newcount\footmarkcount@
323 \footmarkcount@\z@
324
325 %% \footnotemark basically just advances \footmarkcount@ by 1 and then uses
326 %% \footmarkform@{\number\footmarkcount@}---we still have to worry about the
327 %% space factor as in the definition of \footnote in TB, p. 363. However, we
328 %% are allowing both an `optional' argument [#1], where we instead use
329 %% \footmarkform@{#1}, and a `literal' argument "#1", where we instead use #1
330 %% exactly as typed, so we need to use a \futurelet to look at the next
331 %% symbol. Compressed format is used.
332
333 \def\footnotemark{\let\@sf\empty\relaxnext@
334 \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi
335 \DN@{\ifx[\next\let\next@\nextii@\else
336 \ifx"\next\let\next@\nextiii@\else
337 \let\next@\nextiv@\fi\fi\next@}%
338 \DNii@[##1]{\footmarkform@{##1}\@sf}%
339 \def\nextiii@"##1"{{##1}\@sf}%
340 \def\nextiv@{\global\advance\footmarkcount@\@ne
341 \footmarkform@{\number\footmarkcount@}\@sf}%
342 \FN@\next@}
343
344 %% \footnotetext essentially applies \makefootnote@ to the next group, using
345 %% \footmarkcount@ for the marker that goes before the footnote text.
346 %% However, we once again allow optional and literal arguments. Compressed
347 %% format is used.
348
349 \def\footnotetext{\relaxnext@
350 \DN@{\ifx[\next\let\next@\nextii@\else
351 \ifx"\next\let\next@\nextiii@\else
352 \let\next@\nextiv@\fi\fi\next@}%
353 \DNii@[##1]##2{\makefootnote@{\footmarkform@{##1}}{##2}}%
354 \def\nextiii@"##1"##2{\makefootnote@{##1}{##2}}%
355 \def\nextiv@##1{\makefootnote@{\footmarkform@{\number\footmarkcount@}}{##1}}%
356 \FN@\next@}
357
358 %% Finally, \footnote is basically \footnotemark\footnote, but we can't write
359 %% it directly that way because it, too, can take optional and literal
360 %% arguments. Compressed format again.
361
362 \def\footnote{\let\@sf\empty\relaxnext@
363 \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi
364 \DN@{\ifx[\next\let\next@\nextii@\else
365 \ifx"\next\let\next@\nextiii@\else
366 \let\next@\nextiv@\fi\fi\next@}%
367 \DNii@[##1]##2{\footnotemark[##1]\footnotetext[##1]{##2}}%
368 \def\nextiii@"##1"##2{\footnotemark"##1"\footnotetext"##1"{##2}}%
369 \def\nextiv@##1{\footnotemark\footnotetext{##1}}%
370 \FN@\next@}
371
372 %% \adjustfootnotemark just allows the user to change \footmarkcount@.
373
374 \def\adjustfootnotemark#1{\advance\footmarkcount@#1\relax}
375
376 %% The \topmatter ... \endtopmatter syntax was created to go along with
377 %% LaTeX, but \topmatter actually has no function.
378
379 \let\topmatter\relax
380
381 !!!!!!!!!!
382
383 %% The constructions \title, \author, \affil and \heading use `\z@\filhss@'
384 %% instead of \hfil or \hss glue explicitly, so that if they are followed by
385 %% \overlong they can let \filhss@ be `plus1000pt minus1000pt' (so that a
386 %% line longer than \hsize will just be centered outside the margins), but
387 %% otherwise they let \filhss@ simply be `plus1000pt' (so that a line longer
388 %% than \hsize will actually be reported as Overfull). Like \vspace, etc.,
389 %% in AMSTEX.TEX, this should give an error message when used incorrectly,
390 %% and we abbreviate the proper definition. The definition involves \next@
391 %% and \nextii@, because \overlong@ is always used in constructions with
392 %% compressed format that end \futurelet\next\next@, use \overlong to define
393 %% \next@, and then define \nextii@ appropriately.
394
395
396 \Invalid@\overlong
397 \def\overlong@{\DN@{\ifx\next\overlong
398 \def\filhss@{plus\@m\p@ minus\@m\p@}\DN@\overlong{\nextii@}%
399 %% When \overlong appears [the new value of] \next@ must
400 %% kill \overlong and then call \nextii@.
401 \else\def\filhss@{plus\@m\p@\relax}\let\next@\nextii@\fi
402 \next@}}
403
404 %% We need a box to store the title. We make it empty if no title appears,
405 %% so that at least some space appears for the title (presumably the author
406 %% simply hasn't decided on the title yet).
407
408 \newbox\titlebox@
409 \setbox\titlebox@\vbox{}
410
411 %% Although we use the syntax \author ... \endauthor, we simply use
412 %% \endauthor as a delimiter for the argument, as with \align, rather than
413 %% doing \bgroup and \egroup tricks, as with \aligned. And we simply say
414 %% \let\\=\cr, since we shouldn't have to worry about any of the problems
415 %% that make \Let@ necessary. But there is a particular reason, beyond
416 %% convenience, for writing things this way. If one wanted to have a \TITLE
417 %% construction, that applied \uppercase to everything, then \TITLE would
418 %% have to be written this way. [\TITLE is a nice idea, because then the
419 %% title can appear in upper- and lowercase in the input file (for automatic
420 %% indexing, for example), but all uppercase in the paper. However, there
421 %% would actually be some horrible problems involved in writing TITLE
422 %% correctly. For example, math formulas might appear in a title, and we'd
423 %% have to arrange not to uppercase them. Moreover, footnotes might appear,
424 %% since some styles use footnotes on authors for the affiliation, etc., and
425 %% then the footnotes mustn't be uppercased either! Any one who wants this
426 %% can do it Eirself.]
427
428 \def\title{\relaxnext@
429 \DNii@##1\endtitle{{\let\\=\cr
430 \global\setbox\titlebox@\vbox{\tabskip\z@\filhss@
431 \halign to\hsize{\tenpoint\bf\hfil\ignorespaces####\unskip\hfil\cr##1\cr}}}}%
432 \overlong@
433 \futurelet\next\next@}
434
435 %% \author@ is almost exactly the same, except that instead of having
436 %% \authorbox@ empty when no \author appears, we have a flag to tell if it
437 %% appears.
438
439 \newif\ifauthor@
440 \newbox\authorbox@
441 \def\author{\relaxnext@
442 \DNii@##1\endauthor{{\let\\=\cr
443 \global\setbox\authorbox@\vbox{\tabskip\z@\filhss@
444 \halign to\hsize{\tenpoint\smc\hfil\ignorespaces####\unskip\hfil\cr##1\cr
445 }}}}\overlong@\global\author@true
446 \futurelet\next\next@}
447
448 %% \affil, on the other hand, is written in the \bgroup ... \egroup style,
449 %% since one presumably wouldn't ever want to uppercase everything here.
450
451 \newif\ifaffil@
452 \newbox\affilbox@
453 \def\affil{\relaxnext@
454 \DNii@{\bgroup\let\\=\cr
455 \global\setbox\affilbox@\vbox\bgroup\tabskip\z@\filhss@
456 \halign to\hsize\bgroup\tenpoint\hfil\ignorespaces####\unskip\hfil\cr}%
457 \overlong@
458 \global\affil@true
459 \futurelet\next\next@}
460
461 \def\endaffil{\cr\egroup\egroup\egroup}
462
463 %% Since \address can be used any number of times, we have to store the
464 %% different addresses in control sequences that we manufacture as needed. We
465 %% use \addresscount@ to store the number of times \address is used.
466
467 \newcount\addresscount@
468 \addresscount@\z@
469
470 \def\address#1{\global\advance\addresscount@\@ne
471 \expandafter\gdef\csname address\number\addresscount@\endcsname
472 %% The first address is `\address1', the next is `\address2', etc.
473 {\noindent\eightpoint\ignorespaces#1\par}}
474
475 %% We use flags to tell if \date and \thanks have been used, in which case
476 %% \date@ and \thanks@, respectively, have been defined.
477
478 \newif\ifdate@
479
480 \def\date#1{\global\date@true\gdef\date@{\tenpoint\ignorespaces#1\unskip}}
481
482 \newif\ifthanks@
483
484 \def\thanks#1{\global\thanks@true
485 \gdef\thanks@{\eightpoint\ignorespaces#1\unskip}}
486
487 %% \nofrills and \usualspace are subsidiary features that some constructions
488 %% can have, but which should give error message if used otherwise.
489
490 \Invalid@\nofrills
491 \Invalid@\usualspace
492
493 %% \nofrills@ is the control sequence that does the work of making \nofrills
494 %% work correctly. \nofrills@ will take two arguments; the first represents
495 %% the text that should be typeset `without frills', while the second is just
496 %% a convenient control sequence name, which we put at the beginning of the
497 %% construction in question. This control sequence will be defined to be the
498 %% first argument of \nofrills@ if \nofrills follows the construction, but
499 %% simply \relax otherwise. (We choose different control sequences for each
500 %% construction in case one occurs within another.)
501
502 %% Like \overlong, \nofrills@ is defined in terms of \next@ and \nextii@
503 %% because it is used in constructions that end \futurelet\next\next@, use
504 %% \nofrills@ to define \next@, and then define \nextii@ appropriately.
505 %% \nofrills@ also sets a flag \ifnofrills@, for use with \usualspace@.
506
507 \newif\ifnofrills@
508 \def\nofrills@#1#2{\DN@{\ifx\next\nofrills\nofrills@true\let#2\relax
509 \DN@\nofrills{\nextii@}%
510 %% When \nofrills appears, the control sequence #2 is just relax, and
511 %% \next@ must kill off \nofrills before calling \nextii@.
512 \else\nofrills@false
513 \def#2{#1}%
514 %% When \nofrills doesn't appear, the control sequence #2 is #1.
515 \let\next@\nextii@\fi\next@}}
516
517 %% \usualspace@ simply defines \usualspace when no frills have been specified
518 %% (and otherwise does nothing).
519
520 \def\usualspace@#1{\ifnofrills@\def\usualspace{#1}\fi}
521
522 %% As an example of all this, consider \keywords, which creates
523 %% \thekeywords@. Normally \keywords makes \thekeywords@ begin with {\it
524 %% Keywords.\enspace}. But \keywords\nofrills{...} makes it begin with ...
525 %% instead. Moreover, \usualspace will then be defined as {\it\enspace}.
526
527 \def\thekeywords@{}
528 \def\keywords{\relaxnext@
529 \nofrills@{{\it Keywords.\enspace}}\keywords@
530 \DNii@##1{\def\thekeywords@{\usualspace@{{\it\enspace}}\noindent
531 \eightpoint\keywords@\ignorespaces##1\par}}%
532 \futurelet\next\next@}
533
534 %% \subjclass is exactly analogous.
535
536 \def\thesubjclass@{}
537 \def\subjclass{\relaxnext@
538 \nofrills@{{\rm1980 {\it Mathematics subject
539 classifications\/}: }}\subjclass@
540 \DNii@##1{\def\thesubjclass@{\usualspace@
541 {{\rm\spacefactor2000 \space}}\noindent\eightpoint
542 \subjclass@\ignorespaces##1\par}}%
543 \futurelet\next\next@}
544
545 %% \proclaim and \endproclaim have a special problem: We want them to be
546 %% allowed within \abstract{...} but we want them to be \outer afterwards. So
547 %% we will actually define \innerproclaim@ and \innerendproclaim@ (later) and
548 %% temporarily use these for \proclaim and \endproclaim, until \endtopmatter
549 %% (which naturally should appear after any \abstract), which will make them
550 %% outer again.
551
552 \def\proclaim{\innerproclaim@}
553 \def\endproclaim{\innerendproclaim@}
554
555 %% \abstract is similar to the constructions above, but we need a \long\def
556 %% since an abstract can be more than one paragraph.
557
558 \newif\ifabstract@
559 \def\abstract{\relaxnext@
560 \nofrills@{{Abstract.\enspace}}\abstract@
561 \long\DNii@##1{\long\gdef\theabstract@{\usualspace@
562 {{\eightpoint\enspace}}\eightpoint\abstract@\ignorespaces##1\par}}%
563 \global\abstract@true
564 \futurelet\next\next@}
565
566 %% We create empty entries \pretitle, ..., \prepaper among the other parts of
567 %% the \topmatter so that users can insert things between them if necessary.
568
569 \let\pretitle\relax
570 \let\preauthor\relax
571 \let\preaffil\relax
572 \let\predate\relax
573 \let\preabstract\relax
574 \let\prepaper\relax
575
576 %% \endtopmatter now puts all of these things together on the page.
577
578 \def\endtopmatter{\hrule height\z@\vskip-\topskip %% Go to very top of page.
579 \pretitle
580 \vskip24\p@ plus12\p@ minus12\p@
581 \unvbox\titlebox@ %% Title (or empty box).
582 \preauthor
583 \ifauthor@\vskip12\p@ plus6\p@ minus3\p@\unvbox\authorbox@\fi
584 %% Put in \author, and spacing, if specified.
585 \preaffil
586 \ifaffil@\vskip10\p@ plus5\p@ minus2\p@\unvbox\affilbox@\fi
587 %% Put in \affil, and spacing, if specified.
588 \predate
589 \ifdate@\vskip6\p@ plus2\p@ minus\p@\hbox to\hsize{\hfil\date@\hfil}\fi
590 %% Put in \date, and spacing, if specified.
591 \preabstract
592 \ifthanks@\makefootnote@{}{\thanks@}\fi
593 %% If \thanks given, treat it as a footnote text (with no footnote mark).
594 \ifabstract@\vskip15\p@ plus12\p@ minus12\p@
595 %% If \abstract given, put in spacing and then print \theabstract@ with
596 %% 24pt margins at each side. In order for \tag's to come out at the
597 %% new margins, we have to have \displaywidth decreased by 48pt and
598 %% \displayindent set to 24pt (see the rules in TB, pp. 188--189). Since
599 %% \displaywidth and \displayindent are normally set at each $$, we
600 %% have to use \everydisplay to get the desired values.
601 {\leftskip24\p@\rightskip24\p@
602 \everydisplay{\advance\displaywidth-48\p@\displayindent20\p@}
603 \noindent\theabstract@}\fi
604 \prepaper
605 %% Now make \proclaim and \endproclaim \outer.
606 \outer\def\proclaim{\innerproclaim@}%
607 \outer\def\endproclaim{\innerendproclaim@}%
608 \vskip18\p@ plus12\p@ minus6\p@\tenpoint}
609
610 %% The \address's get printed at the end of the paper, so we take care of this
611 %% with \enddocument.
612
613 \outer\def\enddocument{\nobreak %% No break between the References and
614 %% the final matter.
615 \sfcode`\.=3000 %% Return space factor code of period (changed by \Refs).
616 \vskip12\p@ minus6\p@
617 \thekeywords@\thesubjclass@ %% Keywords and subject classifications,
618 %% if they exist.
619 \nobreak\vskip12\p@ minus6\p@
620 \count@\z@
621 \loop\ifnum\count@<\addresscount@\advance\count@\@ne
622 \csname address\number\count@\endcsname\repeat
623 %% Print all the \address's.
624 \vfill\supereject\end}
625
626 %% \heading ... \endheading is similar to \affil .. \endaffil, except that
627 %% \bigbreak is added at the beginning, and \endheading actually prints the
628 %% \headingbox@, followed by \nobreak\medskip. We \unvbox the \headingbox@,
629 %% so that a footnote within it will migrate properly.
630
631 \newbox\headingbox@
632
633 \outer\def\heading{\relaxnext@
634 \DNii@{\bigbreak\bgroup\let\\=\cr
635 \global\setbox\headingbox@\vbox\bgroup\tabskip\z@\filhss@
636 \halign to\hsize\bgroup\tenpoint\smc\hfil\ignorespaces####\unskip\hfil\cr}%
637 \overlong@
638 \futurelet\next\next@}
639
640 \def\endheading{\cr\egroup\egroup\egroup\unvbox\headingbox@
641 \nobreak\medskip}
642
643 %% \subheading is simpler, though it allows \nofrills.
644
645 \def\subheading{\relaxnext@
646 \nofrills@{.\enspace}\subheading@
647 \DNii@##1{\medbreak\noindent{\usualspace@{{\bf\enspace}}%
648 \tenpoint\bf\ignorespaces##1\unskip\subheading@}\ignorespaces}%
649 \futurelet\next\next@}
650
651 %% \innerproclaim@ (the guy behind \proclaim), sets a flag so that we can
652 %% give an error message if a previous \proclaim has occurred without an
653 %% \endproclaim (surely an error, since the \endproclaim would be needed to
654 %% turn off the \sl font). If we are in eight point type (probably because we
655 %% are in the abstract, rather than in a footnote), we replace the \smc font
656 %% by \uppercase{\rm...} as the nearest substitute. Instead of writing the
657 %% test as \ifnum\pointsize@=8 we use a construction that will work even if
658 %% \pointsize@ has other values (say, for fractional point sizes) in other
659 %% formats.
660
661 %% Note that in the error message we say \string\\proclaim instead of
662 %% \string\proclaim. That is because \proclaim will usually be \outer, so
663 %% can't appear in \Err@, while \\ always can. We then have to \eat@ the
664 %% first \ of the \\, requiring an \expandafter\eat@\string\\ construction.
665
666 \newif\ifproclaim@
667
668 \def\innerproclaim@{\relaxnext@
669 \nofrills@{.\enspace}\proclaim@
670 \DNii@##1{\medbreak\noindent
671 \DN@{8}\ifx\pointsize@\next@ %% If \pointsize@ is 8,
672 \uppercase{\usualspace@{{\rm\enspace}}\rm\ignorespaces##1\unskip\proclaim@}%
673 %% use an \uppercase construction.
674 \else
675 \usualspace@{{\smc\enspace}}\smc\ignorespaces##1\unskip\proclaim@\fi
676 %% After printing the name of the theorem, switch to \sl.
677 \sl
678 \ifproclaim@\Err@{Previous \expandafter\eat@\string\\proclaim
679 has no matching \expandafter\eat@\string\\endproclaim}\else
680 \proclaim@true\fi\ignorespaces}%
681 \futurelet\next\next@}
682
683 %% \innerendproclaim@ (the guy behind \endproclaim) resets the \ifproclaim@
684 %% flag, ends the paragraph, switches back to \rm and adds spacing. (This
685 %% means that if, for some strange reason, a whole section of text happens to
686 %% be in italics, then the user must type \it again after each \endproclaim,
687 %% but that hardly seems a problem worth worrying about.)
688
689 \def\innerendproclaim@{\proclaim@false\par\rm
690 \ifdim\lastskip<\medskipamount\removelastskip\penalty55 \medskip\fi}
691
692 %% \demo, like \innerproclaim@, replaces the \smc font by \uppercase{\rm...}
693 %% (I didn't expect any one to use \demo in eight point type, but some one
694 %% has already claimed that he did). We also take the opportunity again to
695 %% issue an error message if a previous \proclaim has no matching
696 %% \endproclaim.
697
698 \def\demo{\relaxnext@
699 \nofrills@{:\enspace}\demo@
700 \DNii@##1{\par\ifdim\lastskip<\smallskipamount\removelastskip
701 \smallskip\fi\noindent
702 \DN@{8}\ifx\pointsize@\next@
703 \uppercase{\usualspace@{{\rm\enspace}}\rm\ignorespaces##1\unskip\demo@}%
704 \else
705 \usualspace@{{\smc\enspace}}\smc\ignorespaces##1\unskip\demo@\fi
706 \rm
707 \ifproclaim@\Err@{Previous \expandafter\eat@\string\\proclaim
708 had no matching \expandafter\eat@\string\\endproclaim}\fi
709 \ignorespaces}%
710 \futurelet\next\next@}
711
712 %% \enddemo is easy.
713
714 \def\enddemo{\par\smallskip}
715
716 %% \qed adjusts the spacing for use within a displayed formula (the proper
717 %% usage when the displayed formula ends the \demo). However, it looks as if
718 %% the proper spacing won't be made when we use \qed as the last line of an
719 %% \align, so something should probably be done about this.
720
721 \def\qed{\ifhmode\unskip\nobreak\fi\ifmmode\ifinner\else\hskip5\p@\fi\fi
722 \hbox{\hskip5\p@\vrule width4\p@ height6\p@ depth1.5\p@\hskip\p@}}
723
724 %% \cite has to see if a comma appears.
725
726 \def\cite#1{\DNii@##1,##2\end@{{\rm[{\bf##1}, ##2]}}%
727 \in@,{#1}\ifin@\DN@{\nextii@#1\end@}\else
728 \DN@{{\rm[{\bf#1}]}}\fi\next@}
729
730 %% \roster uses \rostercount@ to store the \item number. The first item is
731 %% treated specially, because of the extra space before it, so we need a flag
732 %% \iffirstitem@ to identify it.
733
734 \newcount\rostercount@
735 \newif\iffirstitem@
736
737 %% Since \item in \roster differs from in \plain, we store plain's \item in
738 %% \plainitem@, so that we can restore the definition after the \roster is
739 %% over.
740
741 \let\plainitem@\item
742
743 %% In order for our \roster's to work, we will also have to be sure that
744 %% \everypar is {}. Just in case \everypar already has a value, as it might
745 %% in some format, we store those values in the token list \everypartoks@, so
746 %% that we can restore them at the end. \par@ does this storing, and sets
747 %% \everypar{}.
748
749 \newtoks\everypartoks@
750 \def\par@{\everypartoks@=\expandafter{\the\everypar}\everypar{}}
751
752 %% Compressed format is used for \roster, and even for one of the \def's made
753 %% within the \def of \roster !
754
755 \def\roster{\edef\leftskip@{\leftskip\the\leftskip}%
756 %% We also have to store the \leftskip, since it will be changed.
757 \relaxnext@
758 \rostercount@\z@ %% Initialize \rostercount@ to 0.
759 \def\item{\futurelet\next\rosteritem@}% %% \item, now redefined,
760 %% has to look ahead for [ and ", since we allow optional and literal
761 %% arguments. \rosteritem@ itself is defined below.
762 %% The following \next@ is the one called at the very end of this \def.
763 \DN@{\ifx\next\runinitem\let\next@\nextii@\else
764 \let\next@\nextiii@\fi\next@}%
765 %% First we look to see whether \roster is followed by \runinitem,
766 %% since this requires different processing.
767 \DNii@\runinitem %% If \runinitem occurs, \nextii@ must kill it off.
768 {\unskip %% This unskips any space before the original \roster.
769 %% Our definition of \nextii@\runinitem itself uses compressed format
770 %% and a \futurelet\next\next@, because we still have to allow
771 %% [ or " to come next.
772 \DN@{\ifx\next[\let\next@\nextii@\else
773 \ifx\next"\let\next@\nextiii@\else\let\next@\nextiv@\fi\fi\next@}%
774 %% The following \nextii@ is the one created by \nextii@\runinitem;
775 %% there is no conflict of names, since the first calls the second.
776 \DNii@[####1]{\rostercount@####1\relax
777 \enspace{\rm(\number\rostercount@)}~\ignorespaces}%
778 %% If [...] comes next, we use (...) but we explicitly do this by
779 %% setting \rostercount@ equal to ... so that succeeding \item's
780 %% will have the right numbers (use of something other than a
781 %% number will give an error message).
782 \def\nextiii@"####1"{\enspace{\rm####1}~\ignorespaces}%
783 %% If "..." comes next, we use ... exactly as typed.
784 \def\nextiv@{\enspace{\rm(1)}\rostercount@\@ne~}%
785 %% Otherwise just use (1).
786 \par@\firstitem@false %% Before doing any of this we still change
787 %% \everypar, if necessary, which is normally done elsewhere, and set
788 %% \firstitem@false, since this \runinitem counts as the first.
789 \futurelet\next\next@}% %% End of definition of \nextii@\runinitem.
790 %% The following \nextiii@ will be used if we didn't have \runinitem.
791 \def\nextiii@{\par\par@ %% End the present paragraph, change \everypar
792 %% if necessary, prohibit a break, add a small skip, but add something
793 %% to offset any \parskip, if there is any, which would be contributed
794 %% when the next paragraph is begun by the next \item.
795 \penalty\@m\smallskip\vskip-\parskip
796 \firstitem@true}% %% And set \firstitem@true for use with \item.
797 \futurelet\next\next@}
798
799 %% Rember that \rosteritem@ is called by \futurelet\next\rosteritem@.
800
801 \def\rosteritem@{\iffirstitem@\firstitem@false\else\par\vskip-\parskip\fi
802 %% Except at the first \item, we end the paragraph (consisting of the
803 %% previous \item), and subtract any space that might be added by the
804 %% next \item.
805 \leftskip3\parindent\noindent %% Set the indentation.
806 \DNii@[##1]{\rostercount@##1\relax
807 \llap{\hbox to2.5\parindent{\hss\rm(\number\rostercount@)}%
808 \hskip.5\parindent}\ignorespaces}%
809 %% If [...] follows \item, we use ... as the number, again by setting
810 %% \rostercount@, so that succeeding \items will have the right number.
811 \def\nextiii@"##1"{%
812 \llap{\hbox to2.5\parindent{\hss\rm##1}\hskip.5\parindent}\ignorespaces}%
813 %% If "..." follows \item, we use ... exactly as typed.
814 \def\nextiv@{\advance\rostercount@\@ne
815 \llap{\hbox to2.5\parindent{\hss\rm(\number\rostercount@)}%
816 \hskip.5\parindent}}%
817 %% Otherwise we print the \rostercount@ in parentheses.
818 \ifx\next[\let\next@\nextii@\else\ifx\next"\let\next@\nextiii@\else
819 \let\next@\nextiv@\fi\fi\next@}
820
821 %% \therosteritem is just a convenience for the user.
822
823 \def\therosteritem#1{{\rm(\ignorespaces#1\unskip)}}
824
825 %% We want to save \Runinitem for last, but it is relevant even to the
826 %% definition of \endroster, since we have to worry whether \endroster is
827 %% followed by another \Runinitem. We will use a flag \ifnextRunin@ to tell
828 %% us.
829
830 \newif\ifnextRunin@
831
832 \def\endroster{\relaxnext@
833 \par\leftskip@ %% End the paragraph, and restore the \leftskip.
834 \penalty-50 \vskip-\parskip\smallskip %% Add a good break and
835 %% subtract any space that will be started by next paragraph,
836 %% but add a \smallskip.
837 \DN@{\ifx\next\Runinitem\let\next@\relax
838 %% Don't do anything else if \Runinitem comes next.
839 \else\nextRunin@false\let\item\plainitem@ %% Otherwise, set
840 %% \nextRunin@false, and restore \item to its definition in plain;
841 \ifx\next\par %% moreover, if the \endroster is followed by a new paragraph,
842 \DN@\par{\everypar=\expandafter{\the\everypartoks@}}%
843 %% delete that instruction (since we've already put in a \par), and
844 %% restore \everypar,
845 \else %% but if the \endroster isn't followed by a new paragraph,
846 \DN@{\noindent\everypar=\expandafter{\the\everypartoks@}}%
847 %% start the next paragraph unindented, and restore \everypar.
848 \fi\fi\next@}%
849 \futurelet\next\next@}
850
851 %% Finally, for \Runinitem ... \roster\runinitem we have the usual junk for
852 %% worrying about [ or " coming next, and then more interesting things: We
853 %% have to find out how many lines of text we had before the \roster; we
854 %% will store this in \rosterhangafter@.
855
856 \newcount\rosterhangafter@
857
858 \def\Runinitem#1\roster\runinitem{\relaxnext@
859 \rostercount@\z@ %% Initialize \rostercount@ to 0.
860 \def\item{\futurelet\next\rosteritem@}% %% Define \item as before.
861 \def\runinitem@{#1}% %% Store everything up to the roster in \runinitem@.
862 \DN@{\ifx\next[\let\next\nextii@\else\ifx\next"\let\next\nextiii@
863 \else\let\next\nextiv@\fi\fi\next}%
864 \DNii@[##1]{\rostercount@##1\relax
865 \def\item@{{\rm(\number\rostercount@)}}\nextv@}%
866 %% If [...] follows \runinitem, we proceed as before, except we call
867 %% this first instance \item@, and we let \nextv@, defined below, take
868 %% care of everything.
869 \def\nextiii@"##1"{\def\item@{{\rm##1}}\nextv@}%
870 %% If "..." follows \runinitem, we define \item@ to use it.
871 \def\nextiv@{\advance\rostercount@\@ne
872 \def\item@{{\rm(\number\rostercount@)}}\nextv@}%
873 %% Otherwise, we use the proper \rostercount@.
874 %% Now comes \nextv@, which has to properly typeset things.
875 \def\nextv@{\setbox\z@\vbox %% First store things in \box0 .
876 {\ifnextRunin@\noindent\fi %% Start unindented if we have
877 %% \ifnextRunin@true. This will happen only if we had
878 %% \Runinitem...\endroster right before.
879 \runinitem@\unskip\enspace\item@~\par %% Add the stored things in
880 %% \runinitem@, and then \item@.
881 \global\rosterhangafter@\prevgraf}% %% This sets \rosterhangafter@
882 %% to the number of lines in \box0 , i.e., of the material so far; see
883 %% TB, p. 103. We need to say \global since this is set within \box0 .
884 %% Now we're done with \box0 !
885 \firstitem@false %% Set \firstitem@false for future \item's.
886 \ifnextRunin@\else\par\fi %% End previous paragraph unless
887 %% we had \Runinitem ...\endroster right before.
888 %%
889 %% Now comes the good part: we \hangindent3\parindent, as before,
890 %% but we do it for \rosterhangafter@ lines, the number that already
891 %% appeared in the material we set in \box0 .
892 \hangafter\rosterhangafter@\hangindent3\parindent
893 \ifnextRunin@\noindent\fi %% Start unindented if we had a
894 %% \Runinitem ... \endroster right before.
895 \runinitem@\unskip\enspace %% Put in all the stored stuff \Runinitem@
896 \item@~\ifnextRunin@\else\par@\fi %% and the \item@, and
897 %% end the paragraph, unless we had a \Runinitem ... \endroster before.
898 \nextRunin@true\ignorespaces}% %% Here's where we set \nextRunin@true.
899 \futurelet\next\next@}
900
901 %% \Refs is supposed to allow \nofrills to allow a different heading to be
902 %% printed. We use the same general scheme as before, but can't use
903 %% \nofrills@ directly, since now we want one thing to appear when \nofrills
904 %% isn't used, and something else when it is.
905
906 %% Beyond that, \Refs will change to eight point type, in which all the
907 %% references will be set, and change the space factor code of a period to
908 %% 1000, so that normal interword spaces occur after periods. In addition,
909 %% \refskip@ will be defined as \hskip 1sp \hskip-1sp. Recall that \refskip@
910 %% appears in the definition of \nolinebreak in AMSTEX.TEX, although it
911 %% simply has the value \relax there. The exact reasons for redefining
912 %% \refskip@ will appear later, but the main point is that it is easy to
913 %% recognize, since presumably no user would actually use an \hskip-1sp.
914 %% The change to eight point type is preceded by a \bgroup, which will be
915 %% closed by an \egroup in \endRefs.
916
917 \outer\def\Refs{\relaxnext@\def\refskip@{\hskip\@ne sp\hskip\m@ne sp}%
918 %% The next two lines are the substitute for \nofrills@.
919 \DN@{\ifx\next\nofrills\DN@\nofrills{\nextii@}\else
920 \DN@{\nextii@{References}}\fi\next@}%
921 \DNii@##1{\bigbreak\hbox to\hsize{\hfil\tenpoint
922 \smc\ignorespaces##1\unskip\hfil}\nobreak
923 \bigskip\bgroup\eightpoint\sfcode`.=\@m}%
924 \futurelet\next\next@}
925
926 %% The following macros to set the references are perhaps more of a tour de
927 %% force than anything else. Various people dislike them for various reasons,
928 %% and some one will always be able find some special kind of reference
929 %% formatting that isn't included here. However, one can always simply type
930 %% out a reference as one wants it to appear as a last resort. The value of
931 %% these macros is that they at least do allow the various parts of the
932 %% reference to be specified without having to worry about the particular way
933 %% the style file will format them, and thus they can easily be modified for
934 %% other style files.
935
936 %% The real TeXnical finesse was to allow the various parts of the reference
937 %% to be specified in an arbitrary order.
938
939 %% We begin by allocating boxes to hold the various possible bits of
940 %% information. A few of these can be used by different constructions:
941 %% \bybox@ holds the author, whether called by \by or by \manyby; \bookbox@
942 %% holds the book title, whether called by \book, or by \inbook; \pagesbox@
943 %% holds the pages, whether called by \pages or by \page.
944
945 \newbox\nobox@
946 \newbox\keybox@
947 \newbox\bybox@
948 \newbox\paperbox@
949 \newbox\paperinfobox@
950 \newbox\jourbox@
951 \newbox\volbox@
952 \newbox\issuebox@
953 \newbox\yrbox@
954 \newbox\pagesbox@
955 \newbox\bookbox@
956 \newbox\bookinfobox@
957 \newbox\publbox@
958 \newbox\publaddrbox@
959 \newbox\finalinfobox@
960
961 %% We also need a box to store the author's name for later use when
962 %% it has been called by \bymany.
963
964 \newbox\bysamebox@
965
966 %% Next we define flags to tell if various bits of information have been
967 %% specified.
968
969 \newif\ifno@
970 \newif\ifkey@
971 \newif\ifby@
972 \newif\ifmanyby@
973 \newif\ifbysame@
974 \newif\ifpaper@
975 \newif\ifpaperinfo@
976 \newif\ifjour@
977 \newif\ifvol@
978 \newif\ifissue@
979 \newif\ifyr@
980 \newif\iftoappear@
981 \newif\ifpages@
982 \newif\ifpage@
983 \newif\ifbook@
984 \newif\ifinbook@
985 \newif\ifbookinfo@
986 \newif\ifpubl@
987 \newif\ifpubladdr@
988 \newif\iffinalinfo@
989
990 %% In addition, certain other flags will be needed to get the processing
991 %% right.
992
993 %% \ifafterbook@ is needed to tell if we've just finished typesetting a book
994 %% title, so that right double quotes '' should go after it; we can't put in
995 %% the '' immediately, because we will need either a period or comma,
996 %% depending on whether any other information follows. (Of course, things
997 %% would be much easier if we used `logical' punctuation and typed things
998 %% like:
999 %% ``Title of Book'', pg. 367. Publisher.
1000 %% But most journals prefer having the punctuation inside the right quotes,
1001 %% and since this is the harder case we might as well do it, to show how it's
1002 %% done.
1003
1004 \newif\ifafterbook@
1005
1006 %% Other flags are needed because of the \moreref construction, which
1007 %% requires subsequent parts of the \ref to be treated somewhat differently.
1008
1009 \newif\iffirstref@
1010 \newif\iflastref@
1011 \newif\ifprevjour@
1012 \newif\ifprevbook@
1013 \newif\ifprevinbook@
1014 \newif\ifnojourinfo@
1015
1016 %% When \bysame is used, the author's name will be replaced by a rule having
1017 %% the same width as the author's name that was specified by the previous
1018 %% \manyby. However, we want to put a maximum limit on this size, which we
1019 %% store in \maxbysamerule@.
1020
1021 \newdimen\maxbysamerule@
1022 \maxbysamerule@1in
1023
1024 %% Each \ref has to initialize various things; we abbreviate all these by
1025 %% \ref@, which will also add a \bgroup, whose role we will see later.
1026
1027 \def\ref@{\global\no@false \global\key@false \global\by@false
1028 \global\bysame@false \global\paper@false \global\paperinfo@false
1029 \global\jour@false \global\vol@false \global\issue@false
1030 \global\yr@false \global\toappear@false \global\pages@false \global\page@false
1031 \global\book@false \global\inbook@false
1032 \global\bookinfo@false \global\publ@false \global\publaddr@false
1033 \global\finalinfo@false
1034 \bgroup\ignorespaces}
1035
1036 %% \moreref should have a meaning only if used properly within a \ref.
1037
1038 \Invalid@\moreref
1039
1040 %% Each \ref will be \outer. We start with \begingroup, just to be on the
1041 %% safe side, and make things easy; begin a nonindented paragraph; initialize
1042 %% \iffirstref@ and \iflastref@, which are special, and aren't handled by
1043 %% \ref@, but specially by \moreref and \endref; and then do the
1044 %% initializations of \ref@ --- remember that this adds \bgroup\ignorespaces.
1045
1046 \outer\def\ref{\begingroup
1047 \noindent\hangindent20\p@\hangafter\@ne\firstref@true
1048 \lastref@false\def\moreref{\egroup\endref@\global\firstref@false\ref@}\ref@}
1049
1050 %% Note that \moreref is practically the same as \endref, defined below,
1051 %% followed by \ref again, except that certain flags are set differently, and
1052 %% we don't start another group or a new noindented paragraph.
1053
1054 %% The basic idea behind all the following constructions is the following.
1055 %% If we type \no 3 \anothercontrolsequence, then this must somehow set
1056 %% \ifno@ true and set \nobox@ to be \hbox{3}. (The \endref will then take
1057 %% all these various boxes, and unbox them, in the proper order.) To get the
1058 %% box set, we let \no end with \setbox\nobox@\bgroup, and let
1059 %% \anothercontrolsequence contribute the closing \egroup. (The important
1060 %% point here is that a construction like \hbox\bgroup ... \egroup is allowed
1061 %% [even though something like \toks0=\bgroup ... \egroup isn't]. That is
1062 %% because \hbox\bgroup causes tokens to be expanded, since the material
1063 %% actually has to be typeset, so the \egroup can be noticed when it occurs.)
1064 %% Of course, \no itself must therefore begin by contributing an \egroup.
1065 %% That is why \ref@ starts with \bgroup\ignorespaces, so that the first of
1066 %% the control sequences called simply creates an empty group.
1067
1068 %% Instead of typing lots of definitions that all look almost exactly alike,
1069 %% we have a general construction \refdef@ which can be applied to most. The
1070 %% first argument of \refdef@ will be a control sequence, like \no, \key,
1071 %% etc., and it will have to set \no@true, \key@true and boxes \nobox@,
1072 %% \keybox@, etc. So we have to use plenty of \csname's to define \refdef@.
1073 %% The second argument of \refdef@ will be either \relax or a font change,
1074 %% like \it, for those cases where this new font is to be used for the
1075 %% element in question.
1076
1077 \def\refdef@#1#2{\def#1{\egroup
1078 \csname\expandafter\eat@\string#1@true\endcsname
1079 \expandafter\setbox
1080 \csname\expandafter\eat@\string#1box@\endcsname\hbox\bgroup#2}}
1081
1082 %% \no and \key are defined immediately by \refdef@.
1083
1084 \refdef@\no\relax
1085 \refdef@\key\relax
1086
1087 %% \by, \manyby and \bysame are all a little different. In order to get them
1088 %% to work together, they each have to set certain other flags.
1089
1090 %% In \manyby, the \by@true isn't made \global, since it is needed only by
1091 %% the current \ref, but the \manyby@true is needed by the succeeding \ref's,
1092 %% so it must be \global.
1093
1094 \def\manyby{\egroup\global\manyby@true\by@true\setbox\bybox@\hbox\bgroup}
1095
1096 %% Similarly, in \by, the \bysame@false is needed by the current \ref, while
1097 %% the \global \manyby@false is needed by the succeeding \ref's.
1098
1099 \def\by{\egroup\by@true\bysame@false\global\manyby@false
1100 \setbox\bybox@\hbox\bgroup}
1101
1102 %% All \bysame has to do is set \bysame@true for the current \ref.
1103
1104 \def\bysame{\egroup\bysame@true\bgroup}
1105
1106 %% \paper and \paperinfo are straightforward \refdef@'s.
1107
1108 \refdef@\paper\it
1109 \refdef@\paperinfo\relax
1110
1111 %% \jour is a little more complicated because it has to set \prevjour@true
1112 %% (this is used for \moreref, for a succeeding paper in the same journal).
1113
1114 \def\jour{\egroup\jour@true\prevjour@true\setbox
1115 \jourbox@\hbox\bgroup}
1116
1117 %% \vol, \issue, \yr are straightforward.
1118
1119 \refdef@\vol\bf
1120 \refdef@\issue\relax
1121 \refdef@\yr\relax
1122
1123 %% \toappear doesn't set a box, but only sets \toappear@true.
1124
1125 \def\toappear{\egroup\toappear@true\bgroup}
1126
1127 %% \pages is straightforward.
1128
1129 \refdef@\pages\relax
1130
1131 %% \page, for just a single-page reference, uses the same box \pagesbox@, as
1132 %% \pages, but sets a different flag.
1133
1134 \def\page{\egroup\page@true\setbox\pagesbox@\hbox\bgroup}
1135
1136 %% \book is straightforward.
1137
1138 \refdef@\book\relax
1139
1140 %% \inbook uses the same box, \bookbox@, but has to set an extra flag.
1141
1142 \def\inbook{\egroup\inbook@true\previnbook@true\setbox
1143 \bookbox@\hbox\bgroup}
1144
1145 %% \bookinfo, \publ, \publaddr, \finalinfo are all straightforward.
1146
1147 \refdef@\bookinfo\relax
1148 \refdef@\publ\relax
1149 \refdef@\publaddr\relax
1150 \refdef@\finalinfo\relax
1151
1152 %% The worst problems are caused by the commas that come after various bits
1153 %% of information, since the comma mustn't be supplied if something happens to
1154 %% be the last element. We elect instead to supply the commas that come
1155 %% BEFORE things. To do this, instead of simply \unbox'ing the relevant
1156 %% \box's (and then \unskip'ing, in case extra spaces crept in), we will
1157 %% usually `\ppunbox@' them (prepunctuate and then \unbox and \unskip).
1158
1159 \def\ppunbox@#1{\prepunct@\unhbox#1\unskip}
1160
1161 %% Here \prepunct@ will be \relax when we have just typeset elements that
1162 %% shouldn't have commas after them, and will then be changed when we get to
1163 %% other elements. The construction that changes them will be called
1164 %% \setpunct@, which is defined below.
1165
1166 %% There are two special problems in having \setpunct@ define \prepunct@
1167 %% correctly. The first involves the penalties \linebreak and \nolinebreak,
1168 %% which the user might want to type at certain points. These \penalty's
1169 %% will of course generally be absorbed into various boxes, but since these
1170 %% boxes get unboxed, they will appear again in the proper places. However,
1171 %% if a line break is specified after an element that gets a comma after it,
1172 %% we'd better be sure that the comma gets put in before the penalty! The
1173 %% second problem involves book titles, as previously mentioned.
1174
1175 \def\setpunct@{\def\prepunct@{\ifnum\lastpenalty<\z@
1176 %% If \linebreak, and hence a negative penalty appears,
1177 \edef\penalty@{\penalty\the\lastpenalty}%
1178 %% first save the penalty in \penalty@,
1179 \unpenalty,% %% then delete the penalty and add the comma.
1180 \ifafterbook@''\fi %% If we've just finished a book title, add the quotes.
1181 \penalty@\relax\space %% Finally, put back the penalty, and then a space;
1182 %% \relax added after \penalty@ since \the\lastpenalty is just a number.
1183 \else %% If a negative penalty doesn't appear, we still want to check
1184 %% for \nolinebreak. If it was typed, it has contributed
1185 %% \penalty10000 \hskip1sp\hskip-1sp. However, the \hskip-1sp has
1186 %% been removed by the previous \unskip (in \ppunbox@ or \unbox\unskip),
1187 %% so \lastskip is 1sp.
1188 \ifdim\lastskip=\@ne sp\unskip\unskip
1189 %% In this case, \unskip the \hskip-1sp also, and then any previous space.
1190 \edef\penalty@{\penalty\the\lastpenalty}\unpenalty,\ifafterbook@''\fi
1191 \penalty@\relax\space
1192 %% Then proceed as before.
1193 \else,\ifafterbook@''\fi\space %% Otherwise just add the comma
1194 %% (and quotes) and a space.
1195 \fi\fi\afterbook@false}} %% And reset \ifafterbook@.
1196
1197 %% Now all \endref has to do is add the final \egroup, globally set
1198 %% \lastref@true again, for succeeding \ref's, call \endref@, to put things
1199 %% together, reset certain flags used by \moreref, end the paragraph, and
1200 %% then the group.
1201
1202 \def\endref{\egroup\global\lastref@true\endref@ \global\prevjour@false
1203 \global\previnbook@false\par\endgroup}
1204
1205 %% Here is how \endref@ puts things together.
1206
1207 \def\endref@{\let\prepunct@\relax %% No commas added to begin with.
1208 \iffirstref@ %% (I) First assume we're not doing a \moreref.
1209 \ifno@\hbox to20\p@{\hss\unhbox\nobox@\unskip. }\else\hbox to10\p@{}\fi
1210 %% A \no gets put into a box of width 20pt. Otherwise add 10pts of space.
1211 \ifkey@\unhbox\keybox@\unskip\ \fi
1212 %% Add the key, if any, followed by a space.
1213 \ifmanyby@ %% (1) Suppose this is one of the papers governed by \manyby.
1214 \ifby@ %% (1a) Suppose we're at the first one.
1215 \hbox{\unhcopy\bybox@\unskip}%
1216 %% Then we add a box with the author's name (we keep the author's name
1217 %% in a box so that the glue can't stretch or shrink, so that the
1218 %% subsequent rules will be exactly the right length),
1219 \global\setbox\bysamebox@\hbox{\unhcopy\bybox@\unskip}%
1220 %% and we set \bysamebox@ to this box,
1221 \setpunct@ %% and we \setpunct@, since commas will subsequently be needed.
1222 \else %% This \else goes with \ifby@, giving the alternative for (1a).
1223 %% Suppose instead we're at a subsequent instance of a \bymany.
1224 \ifbysame@ %% (1ai) If we still have \bysame,
1225 \ifdim\wd\bysamebox@>\maxbysamerule@
1226 \hbox to\maxbysamerule@{\leaders\hrule\hfill}\else
1227 \hbox to \wd\bysamebox@{\leaders\hrule\hfill}\fi
1228 %% we add a rule the length of \bysamebox@, unless this is too long,
1229 %% in which case we use \maxbysamerule@ as the length.
1230 \setpunct@ %% and we \setpunct@
1231 \fi %% This \fi matches \ifbysame@, finishing (1ai).
1232 \fi %% This \fi matches the \ifby@, finishing (1a).
1233 \else %% This \else goes with \ifmanyby@, giving the alternative for (1).
1234 %% Suppose instead this paper isn't governed by \manyby.
1235 \ifby@ %% Suppose, however, that there is a \by.
1236 \unhcopy\bybox@\unskip\setpunct@ %% Then just use \bybox@ and \setpunct@.
1237 \fi %% This \fi matches \ifby@.
1238 \fi %% This \fi matches \ifmanyby@, finishing (1).
1239 \fi %% This \fi [which could also be written \else\fi]
1240 %% matches \iffirstref@, and finishes (I).
1241 %% [None of this is done for \moreref's.]
1242 %% Having done the first stuff, involving the author, we can now get to
1243 %% the paper.
1244 \ifpaper@\ppunbox@\paperbox@\setpunct@\fi
1245 %% If there's a \paper, put it in, with proper punctuation before it, and
1246 %% get set up for commas on next element.
1247 \ifpaperinfo@\ppunbox@\paperinfobox@\setpunct@\fi
1248 %% Similarly for \paperinfo.
1249 %% The journal is a little more complicated.
1250 \ifjour@ %% (2) Suppose there's a \jour.
1251 \ppunbox@\jourbox@\setpunct@ %% Put in journal name.
1252 \ifvol@\ \unhbox\volbox@\unskip\setpunct@\fi %% Then volume, if given.
1253 \ifissue@\ \unhbox\issuebox@\unskip\setpunct@\fi %% Then issue, if given.
1254 \ifyr@\ (\unhbox\yrbox@\unskip)\setpunct@\fi %% Then year, if given, but
1255 %% don't put comma before it.
1256 \iftoappear@\ (to appear)\setpunct@\fi %% If \toappear was given instead,
1257 %% typeset `(to appear)'.
1258 \ifpages@\ppunbox@\pagesbox@\setpunct@\fi %% Then \pages, if given.
1259 \ifpage@\prepunct@ p.~\unhbox\pagesbox@\unskip\setpunct@\fi
1260 %% If \page given instead, type p.~ before it.
1261 \else %% This \else goes with \ifjour@, giving the alternative to (2).
1262 %% Suppose instead there's no \jour.
1263 \ifprevjour@ %% (2a) But suppose there's a \prevjour@ (because
1264 %% this part comes from \moreref).
1265 \unskip\nojourinfo@false %% Begin by assuming there is
1266 %% additional journal information to be set (\nojourinfo@false).
1267 \ifvol@\else\ifissue@\else\ifyr@\else\nojourinfo@true\fi\fi\fi
1268 %% If \vol, \issue or \yr was specified in this \moreref, nothing
1269 %% changes (hence \nojourinfo@false). But if none were specified, there
1270 %% is no additional journal information to be set (\nojourinfo@true).
1271 \ifnojourinfo@\else,\fi
1272 %% If there is additional journal information to be set, first put
1273 %% in the comma.
1274 %% Then put in volume, issue, etc., as before.
1275 \ifvol@\ \unhbox\volbox@\unskip\setpunct@\fi
1276 \ifissue@\ \unhbox\issuebox@\unskip\setpunct@\fi
1277 \ifyr@\ (\unhbox\yrbox@\unskip)\setpunct@\fi
1278 \iftoappear@\ (to appear)\setpunct@\fi
1279 \ifpages@\ppunbox@\pagesbox@\setpunct@\fi
1280 \ifpage@\prepunct@ p.~\unhbox\pagesbox@\unskip\setpunct@\fi
1281 \fi %% This \fi [which could also be written \else\fi]
1282 %% matches \ifprevjour@, and finishes (2a).
1283 \fi %% This \fi mathces \ifjour@, and finishes (2).
1284 %% Having finished worrying about journals, we tackle books.
1285 \ifbook@\prepunct@``\unhbox\bookbox@\unskip\afterbook@true\setpunct@\fi
1286 %% If there was a \book, set it with `` at the beginning,
1287 %% and preceded by punctuation and penalties as already determined; also
1288 %% set \afterbook@true, so we'll know that we've just typeset a book title.
1289 \ifinbook@\prepunct@\unskip\ in ``\unhbox\bookbox@\unskip\afterbook@true
1290 \setpunct@\global\book@true\fi
1291 %% If \inbook, (which will initially have \ifbook@false), set the book
1292 %% title preceded by in ``; also set \book@true so that subsequent
1293 %% information will be printed. (It's \global, since it might be needed
1294 %% later for a \moreref.)
1295 \ifbookinfo@\ppunbox@\bookinfobox@\setpunct@\fi
1296 %% Put in any \bookinfo.
1297 \ifpubl@\ppunbox@\publbox@\setpunct@\fi
1298 %% Put in \publ.
1299 \ifpubladdr@\ppunbox@\publaddrbox@\setpunct@\fi
1300 %% Put in \publaddr.
1301 \ifbook@ %% (3) Moreover, if there was a book, we also add other things.
1302 \ifyr@\prepunct@\unhbox\yrbox@\unskip\setpunct@\fi
1303 %% Add the \yr, if any.
1304 \iftoappear@\ifafterbook@''\fi\ (to appear)\afterbook@false
1305 \setpunct@\fi
1306 %% If \toappear appears, and we haven't typeset anything after the
1307 %% title, so that \ifafterbook@ is still true, add the '' and then
1308 %% `(to appear)'.
1309 \ifpages@\prepunct@ pp.~\unhbox\pagesbox@\unskip\setpunct@\fi
1310 %% If there is \pages, add pp.~and the pages.
1311 \ifpage@\prepunct@ p.~\unhbox\pagesbox@\unskip\setpunct@\fi
1312 %% If there is \page, add only p.~ before it.
1313 \else %% This \else goes with \ifbook@, giving the alternative to (3).
1314 %% Even if there wasn't a \book, we might want to add things.
1315 \ifprevinbook@ %% (3a) Suppose we have \previnbook@true.
1316 \unskip %% Then we still have to add all this information.
1317 \ifyr@\prepunct@\unhbox\yrbox@\unskip\setpunct@\fi
1318 \iftoappear@\ (to appear)\setpunct@\fi
1319 \ifpages@\prepunct@ pp.~\unhbox\pagesbox@\unskip\setpunct@\fi
1320 \ifpage@\prepunct@ p.~\unhbox\pagesbox@\unskip\setpunct@\fi
1321 \fi %% This \fi matches \ifprevinbook, and finishes (3a).
1322 \fi %% This \fi matches \ifbook@ and finishes (3).
1323 %% Now we add the finishing touches.
1324 \iffinalinfo@.\ifafterbook@''\fi\afterbook@false
1325 \spacefactor3000\relax\space\unhbox\finalinfobox@
1326 %% (4) If there is \finalinfo, add a period, and quotes if still setting
1327 %% the title, and then add a space and the final info, first setting
1328 %% \spacefactor to 3000, so that the space before the final info will be
1329 %% an intersentence space. (However, if the final info has more than one
1330 %% sentence, it will still be necessary to use @. instead of . at ends
1331 %% of sentences for proper spacing.)
1332 \else %% This \else goes with \iffinalinfo@, giving alternative to (4).
1333 \iflastref@.\ifafterbook@''\fi\afterbook@false
1334 %% (4a) If we're at the last ref (i.e., there isn't a \moreref),
1335 %% add a period, and quotes if still setting the title.
1336 \else;\ifafterbook@''\fi\afterbook@false\space
1337 %% but if we're not at the last ref (i.e., there's a \moreref),
1338 %% add a semicolon, and quotes if necessary, and a space.
1339 \fi %% This \fi matches \iflastref@ and finishes (4a)
1340 \fi} %% This \fi matches \iffinalinfo@ and finishes (4).
1341
1342 %% The Refs are ended with an \egroup, in case some ordinary text follows them.
1343
1344 \def\endRefs{\egroup}
1345
1346 %% We use \iflogo@ as a flag to tell if the user has typed \nolog.
1347
1348 \newif\iflogo@
1349 \def\nologo{\logo@false}
1350 \logo@true
1351
1352 %% Finally, we are ready for the \output routine. It is hardly different from
1353 %% the \plainoutput routine, except that the first page normally has the
1354 %% `Typeset by AmS-TeX' logo attached.
1355
1356 \output={\output@}
1357
1358 \def\output@{%
1359 \ifnum\pageno=\@ne\shipout\vbox{\makeheadline\vbox to\vsize
1360 {\boxmaxdepth\maxdepth\pagecontents}\baselineskip2pc
1361 \iflogo@\hbox to\hsize{\hfil\eightpoint Typeset by \AmSTeX}\fi
1362 \makefootline}%
1363 \else
1364 \shipout\vbox{\makeheadline\pagebody\makefootline}%
1365 \fi
1366 \advancepageno
1367 \ifnum\outputpenalty>-\@MM\else\dosupereject\fi}
1368
1369 %% We begin with ten point type.
1370
1371 \tenpoint
1372
1373 %% Now we make @ active once again.
1374
1375 \catcode`\@=\active
1376
1377 %% And that's it.
1378
1379 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1380 %% %%
1381 %% HERE IS A SUMMARY OF ALL PLACES WHERE SPECIFIC VALUES USED IN THIS FILE %%
1382 %% MIGHT NEED TO BE REPLACED, BECAUSE OF DIFFERENT FONTS, STYLES, ETC. %%
1383 %% %%
1384 %% \parindent %%
1385 %% \hsize %%
1386 %% \vsize %%
1387 %% \normalbaselineskip, \normallineskip, \normallineskiplimit %%
1388 %% \abovedisplayskip, \belowdisplayskip, \abovedisplayshortskip , %%
1389 %% \belowdisplayshortskip (for different point sizes) %%
1390 %% \big (for different point sizes) %%
1391 %% \strutbox, \strutbox@ (for different point sizes) %%
1392 %% \ex@ (for different point sizes) %%
1393 %% \footmarkfrom@ %%
1394 %% \makefootnote format %%
1395 %% \title, \author, \affil, \address, \date, \thanks, %%
1396 %% \keywords, \subjclass, \innerproclaim@, \innerendproclaim@, \abstract %%
1397 %% (including the \nofrills and \usualspace for these) %%
1398 %% spacing, and order, in \endtopmatter %%
1399 %% \leftskip, \rightskip (and then the \everydisplay) for \abstract %%
1400 %% spacing, and order, in \enddocument %%
1401 %% \heading (including the \nofrills and \usualspace) %%
1402 %% \subheading %%
1403 %% \demo (including the \nofrills and \usualspace) %%
1404 %% \enddemo %%
1405 %% \qed %%
1406 %% \cite %%
1407 %% spacing and formatting of the \items in \roster %%
1408 %% \Refs (including the default heading) %%
1409 %% order and formatting of elements in each \ref %%
1410 %% \logo (probably eliminated) %%
1411 %% \output routine %%
1412 %% %%
1413 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1414
1415 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1416 %% %%
1417 %% Finally, style files meant for journals, etc., rather than for %%
1418 %% preprints, probably ought to disable some of the constructions from %%
1419 %% AMSTEX.TEX that allow style changes. For example, one might %%
1420 %% %%
1421 %% \def\taboo@#1{\errmessage %%
1422 %% {Sorry, \string#1 can't be used in this style}} %%
1423 %% \def\default@#1{\immediate\write\sixt@@n %%
1424 %% {\string#1\space is unnecessary; it is the default for this style.}} %%
1425 %% %%
1426 %% and then type things like %%
1427 %% %%
1428 %% \taboo@\pageheight %%
1429 %% \taboo@\TagsOnRight %%
1430 %% \default@\TagsOnLeft %%
1431 %% %%
1432 %% The constructions in question are %%
1433 %% %%
1434 %% \pageheight, \pagewidth %%
1435 %% \hcorrection, \vcorrection %%
1436 %% \LimitsOnSums, \NoLimitsOnSums %%
1437 %% \LimitsOnInts, \NoLimitsOnInts %%
1438 %% \LimitsOnNames, \NoLimitsOnNames %%
1439 %% \ChangeBuffer, \ResetBuffer %%
1440 %% \TagsOnLeft, \TagsOnRight %%
1441 %% \CenteredTagsOnSplits, \TopOrBottomTagsOnSplits %%
1442 %% \MultlineGap %%
1443 %% %%
1444 %% \TagAsMath and \TagsAsText probably should be allowed, because they %%
1445 %% don't change the style, only the input. %%
1446 %% %%
1447 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%