| 1 |
%%% ==================================================================== |
| 2 |
%%% @AMSTeX-style-file{ |
| 3 |
%%% filename = "amsppt.sty", |
| 4 |
\def\filename{amsppt.sty} |
| 5 |
% filename = "amsppt.doc", |
| 6 |
%%% version = "2.2", |
| 7 |
\def\fileversion{2.2} |
| 8 |
%%% date = "2001/08/07", |
| 9 |
\def\filedate{2001/08/07} |
| 10 |
%%% time = "13:47:28 EDT", |
| 11 |
%%% checksum = "45523 3399 17317 143562", |
| 12 |
%%% author = "American Mathematical Society", |
| 13 |
%%% copyright = "Copyright 2001 American Mathematical Society, |
| 14 |
%%% all rights reserved. Copying of this file is |
| 15 |
%%% authorized only if either: |
| 16 |
%%% (1) you make absolutely no changes to your copy |
| 17 |
%%% including name; OR |
| 18 |
%%% (2) if you do make changes, you first rename it |
| 19 |
%%% to some other name.", |
| 20 |
%%% address = "American Mathematical Society, |
| 21 |
%%% Technical Support, |
| 22 |
%%% Publications Technical Group, |
| 23 |
%%% P. O. Box 6248, |
| 24 |
%%% Providence, RI 02940, |
| 25 |
%%% USA", |
| 26 |
%%% telephone = "401-455-4080 or (in the USA and Canada) |
| 27 |
%%% 800-321-4AMS (321-4267)", |
| 28 |
%%% FAX = "401-331-3842", |
| 29 |
%%% email = "[email protected] (Internet)", |
| 30 |
%%% codetable = "ISO/ASCII", |
| 31 |
%%% supported = "yes", |
| 32 |
%%% keywords = "amstex, ams-tex, tex", |
| 33 |
%%% abstract = "This file is a documentstyle for use with |
| 34 |
%%% AMS-TeX 2.2. It exists in two forms: amsppt.doc, |
| 35 |
%%% which is the full form containing all technical |
| 36 |
%%% documentation, and amsppt.sty, which is identical |
| 37 |
%%% except that all lines beginning with a single percent |
| 38 |
%%% sign are removed, to make the file more rapid-loading |
| 39 |
%%% when processed by TeX.", |
| 40 |
%%% docstring = "The checksum field above contains a CRC-16 checksum |
| 41 |
%%% as the first value, followed by the equivalent of |
| 42 |
%%% the standard UNIX wc (word count) utility output of |
| 43 |
%%% lines, words, and characters. This is produced by |
| 44 |
%%% Robert Solovay's checksum utility.", |
| 45 |
%%% } |
| 46 |
%%% ==================================================================== |
| 47 |
% |
| 48 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 49 |
% -0- CONTENTS |
| 50 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 51 |
% -0- Contents |
| 52 |
% -1- Preliminary |
| 53 |
% -2- Utility definitions |
| 54 |
% -3- Fonts |
| 55 |
% -4- Global variable settings |
| 56 |
% -5- Top matter definitions |
| 57 |
% -6- Section headings |
| 58 |
% -7- Theorem environments and similar structures |
| 59 |
% -8- Rosters |
| 60 |
% -9- Footnotes |
| 61 |
% -10- Tables |
| 62 |
% -11- Figure spaces and captions |
| 63 |
% -12- Miscellaneous formatting macros |
| 64 |
% -13- References/Bibliography |
| 65 |
% -14- End of document |
| 66 |
% -15- Output routine |
| 67 |
% -16- Hyphenation exceptions |
| 68 |
% -17- Notes |
| 69 |
% -18- Appendix: Notes on version 2.1 |
| 70 |
% -19- Appendix: Notes on versions 2.1a, 2.1b, ... |
| 71 |
% -20- Appendix: Notes on versions 2.2 |
| 72 |
% |
| 73 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 74 |
% -1- PRELIMINARY |
| 75 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 76 |
% |
| 77 |
% AMSPPT.DOC contains all the code for AMSPPT.STY, with |
| 78 |
% additional comments. AMSPPT.STY is produced by removing from |
| 79 |
% AMSPPT.DOC all blank lines and lines beginning with a percent |
| 80 |
% sign. This is done to allow it to be loaded faster by TeX. |
| 81 |
% |
| 82 |
% For the most part the internals of AMSPPT.STY aren't closely |
| 83 |
% related to AMSTEX.TEX: AMSTEX.TEX handles mathematics, |
| 84 |
% AMSPPT.STY handles visual design and overall structure of |
| 85 |
% documents. But some parts of AMSTEX.DOC are relevant, e.g., |
| 86 |
% the standard abbreviations \DN@, \RIfM@, etc., the description |
| 87 |
% of "compressed format", the remarks about the "K-method", and |
| 88 |
% the allocation of scratch registers and variables such as |
| 89 |
% \toks@@. |
| 90 |
% |
| 91 |
% The style produced by AMSPPT.STY is based on the style of the |
| 92 |
% Journal of the American Mathematical Society (as of December |
| 93 |
% 1990), but is not intended to reproduce it exactly. For one |
| 94 |
% thing, most users of AMSPPT.STY will probably have Computer |
| 95 |
% Modern fonts, while the Journal of the AMS in 1990 used Times |
| 96 |
% Roman fonts licensed from Autologic, Inc. This means that line |
| 97 |
% breaks and page breaks were sure to change when a paper was |
| 98 |
% submitted to the AMS. For another thing, preprints naturally |
| 99 |
% differ in some respects from articles in final published form: |
| 100 |
% published articles generally have the journal name, volume and |
| 101 |
% year of publication somewhere on the first page, a ``received |
| 102 |
% by the editors'' date, subject classification numbers, perhaps |
| 103 |
% key words and phrases, and an abstract, none of which are |
| 104 |
% necessary in a preprint (though the last few are sometimes |
| 105 |
% present). In addition, the Journal of the AMS has a few |
| 106 |
% idiosyncrasies such as placement of the abstract at the end of |
| 107 |
% an article rather than at the beginning, and a non-zero value |
| 108 |
% of \mathsurround, which were deemed inappropriate for inclusion |
| 109 |
% in the preprint style (in particular, a non-zero \mathsurround |
| 110 |
% would require the user to do extra work in certain situations |
| 111 |
% to cancel unwanted side effects). Since we are not matching |
| 112 |
% the style of the Journal of the AMS exactly, we sometimes have |
| 113 |
% rounded off measurements in AMSPPT.STY to convenient amounts |
| 114 |
% such as \bigskipamount and \medskipamount or the nearest whole |
| 115 |
% or half pica. For example \belowheadskip is 7pt in the Journal |
| 116 |
% of the AMS, but AMSPPT.STY uses 6pt (half a pica). |
| 117 |
% |
| 118 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 119 |
% |
| 120 |
% Bug in amsppt.sty version 2.1 left \amsppt.sty = \endinput |
| 121 |
% after the file was loaded. This will fix it if amsppt.sty |
| 122 |
% was put in the format file. |
| 123 |
% |
| 124 |
\expandafter\ifx\csname amsppt.sty\endcsname\endinput |
| 125 |
\expandafter\def\csname amsppt.sty\endcsname{2.2 (2001/08/07)}\fi |
| 126 |
% |
| 127 |
% Check to see if this file was previously loaded and, if so, |
| 128 |
% if the version numbers agree. |
| 129 |
% |
| 130 |
\xdef\fileversiontest{\fileversion\space(\filedate)} |
| 131 |
\expandafter\ifx\csname\filename\endcsname\fileversiontest |
| 132 |
% Then file is already loaded, and versions agree. Quit here. |
| 133 |
% \endinput and \fi MUST be on the same line: |
| 134 |
\message{[already loaded]}\endinput\fi |
| 135 |
% |
| 136 |
% If the file versions disagree, we generate an error message, |
| 137 |
% but we don't do an \endinput: maybe the user will want to |
| 138 |
% continue, inputting the new version, and see what happens. |
| 139 |
% |
| 140 |
\expandafter\ifx\csname\filename\endcsname\relax % file not yet loaded |
| 141 |
\else\errmessage{Discrepancy in `\filename' file versions: |
| 142 |
version \csname\filename\endcsname\space already loaded, trying |
| 143 |
now to load version \fileversiontest}\fi |
| 144 |
% |
| 145 |
% Since we are about to change the catcode of @, we define |
| 146 |
% \csname\filename\endcsname to set the catcode back to its previous |
| 147 |
% value. Furthermore, it then redefines itself to record the file |
| 148 |
% version number for future reference (e.g., the test above). |
| 149 |
% |
| 150 |
\expandafter\xdef\csname\filename\endcsname{% |
| 151 |
\catcode`\noexpand\@=\the\catcode`\@ |
| 152 |
\expandafter\gdef\csname\filename\endcsname{% |
| 153 |
\fileversion\space(\filedate)}} |
| 154 |
% |
| 155 |
% Add @ to the plain list of \dospecials, to make it behave |
| 156 |
% better in verbatim, e-mail addresses, and URL's. |
| 157 |
% |
| 158 |
\def\dospecials{\do\ \do\\\do\{\do\}\do\$\do\&% |
| 159 |
\do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~\do\@} |
| 160 |
% |
| 161 |
% Enable the use of @ as letter in `private' control sequence names. |
| 162 |
% Cf. TeXbook, p. 344 (above the \mathcode table). |
| 163 |
% |
| 164 |
\catcode`\@=11 |
| 165 |
% |
| 166 |
% For convenience in loading other files of definitions, provide |
| 167 |
% commands to save and restore the catcode value of any character, |
| 168 |
% most commonly @. |
| 169 |
% |
| 170 |
\def\savecat#1{% |
| 171 |
\expandafter\xdef\csname\string#1savedcat\endcsname{\the\catcode`#1}} |
| 172 |
\def\restorecat#1{\catcode`#1=\csname\string#1savedcat\endcsname} |
| 173 |
% |
| 174 |
% Besides putting the file version on screen, this message also |
| 175 |
% records it in the transcript/log file (which is useful for |
| 176 |
% troubleshooting). The file name was already given on screen and in |
| 177 |
% the transcript file by TeX, as part of the automatic processing |
| 178 |
% surrounding file input. |
| 179 |
% |
| 180 |
\message{version \fileversion\space(\filedate):} |
| 181 |
% |
| 182 |
% If another documentstyle inputs amsppt.sty, it should define |
| 183 |
% \styname and \styversion appropriately. We use an `ifundefined' |
| 184 |
% test to avoid overriding the definitions, in that case. |
| 185 |
\expandafter\ifx\csname styname\endcsname\relax |
| 186 |
\def\styname{AMSPPT}\def\styversion{2.2} |
| 187 |
\fi |
| 188 |
% |
| 189 |
% In AMSPPT.STY we follow the convention in amstex.tex of |
| 190 |
% appending @ signs at the end of control sequences, rather than |
| 191 |
% substituting @ signs for vowels as is frequently done in |
| 192 |
% plain.tex. |
| 193 |
% |
| 194 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 195 |
% -2- UTILITY DEFINITIONS |
| 196 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 197 |
\message{Loading utility definitions,} |
| 198 |
% |
| 199 |
% For several macros, e.g., \title, we want to allow the user the |
| 200 |
% following two options: |
| 201 |
% |
| 202 |
% \title xxx\endtitle |
| 203 |
% \title\nofrills xxx\endtitle |
| 204 |
% |
| 205 |
% In the first case, we want the text of the title to be stored |
| 206 |
% in a box for later use. In the second case, we want certain |
| 207 |
% parts of the typesetting to be omitted when constructing the |
| 208 |
% box. Internally this is done by prefixing them with \frills@, |
| 209 |
% which in the normal cases is simply an identity function |
| 210 |
% (\let\frills@\identity@), whereas in the nofrills case it |
| 211 |
% gobbles its argument (\let\frills@\eat@). |
| 212 |
% |
| 213 |
% In order to test for \nofrills we have to use \futurelet |
| 214 |
% (because if \nofrills is absent, we don't want to do anything |
| 215 |
% that might affect the actual text of the title, such as |
| 216 |
% stripping braces or adding an unwanted extra pair around the |
| 217 |
% first token or group). |
| 218 |
% |
| 219 |
\def\identity@#1{#1} |
| 220 |
% |
| 221 |
\def\nofrills@@#1{% |
| 222 |
% This extra step in defining \next@ is a precaution in case #1 |
| 223 |
% might be more than one token. |
| 224 |
\DN@{#1}% |
| 225 |
\ifx\next\nofrills \let\frills@\eat@ |
| 226 |
\expandafter\expandafter\expandafter\next@\expandafter\eat@ |
| 227 |
\else \let\frills@\identity@\expandafter\next@\fi} |
| 228 |
% |
| 229 |
\def\nofrillscheck#1{\def\nofrills@{\nofrills@@{#1}}% |
| 230 |
\futurelet\next\nofrills@} |
| 231 |
% |
| 232 |
% Typical use: if we want to execute a macro called \title, but |
| 233 |
% check to see if \nofrills is coming up next, we do this: |
| 234 |
% |
| 235 |
% ... \nofrillscheck\title |
| 236 |
% |
| 237 |
% If indeed the next thing is \nofrills, then we will execute |
| 238 |
% \nofrills@@ before calling \title again. This involves some |
| 239 |
% shuffling around in order for us to get back the ``real'' |
| 240 |
% definition of \title afterwards and yet still be able to use a |
| 241 |
% control sequence named \title to read the argument. This is |
| 242 |
% important in giving the user a useful error message if they |
| 243 |
% accidentally omit or misspell the matching \endtitle or |
| 244 |
% whatever. We could use instead the trick used with \align of |
| 245 |
% adding a space onto the \csname with which we read the |
| 246 |
% argument, but that would increase the use of hash size. |
| 247 |
% |
| 248 |
% We define \usualspace to give a warning message if used in |
| 249 |
% a place where it's not intended to be used: |
| 250 |
% |
| 251 |
\Invalid@\usualspace |
| 252 |
% |
| 253 |
% Facility for adding to a token list, providing it was named |
| 254 |
% with the particular naming convention that we require: an |
| 255 |
% additional @ sign at the end of the control sequence name. |
| 256 |
% Usage: \addto\tenpoint{...} |
| 257 |
% |
| 258 |
\def\addto#1#2{\csname \expandafter\eat@\string#1@\endcsname |
| 259 |
\expandafter{\the\csname \expandafter\eat@\string#1@\endcsname#2}} |
| 260 |
% |
| 261 |
% Fix Plain's \big, \Big, etc. macros so that they can scale with |
| 262 |
% size changes. The relations in \tenpoint are: |
| 263 |
% |
| 264 |
% total height above |
| 265 |
% height baseline |
| 266 |
% -------------------------------------------------------------- |
| 267 |
% \big: 12pt 8.5 (12/2 = 6, + 2.5 (height of math axis)) |
| 268 |
% \Big: 18pt 11.5 (18/2 = 9, + 2.5 (height of math axis)) |
| 269 |
% \bigg: 24pt 14.5 (24/2 = 12, + 2.5 (height of math axis)) |
| 270 |
% \Bigg: 30pt 17.5 (30/2 = 15, + 2.5 (height of math axis)) |
| 271 |
% |
| 272 |
% In \tenpoint \bigsize@ will be set to 12pt, the height of an |
| 273 |
% ordinary parenthesis in the roman font, x 1.2 |
| 274 |
\newdimen\bigsize@ |
| 275 |
% |
| 276 |
% Using \vcenter automatically factors the height of the math |
| 277 |
% axis into our sizing. We set \nulldelimiterspace to zero, |
| 278 |
% since we only want the delimiterspace from the \left delimiter. |
| 279 |
% |
| 280 |
\def\big@#1#2{{\hbox{$\left#2\vcenter to#1\bigsize@{}% |
| 281 |
\right.\nulldelimiterspace\z@\m@th$}}} |
| 282 |
\def\big{\big@\@ne} |
| 283 |
\def\Big{\big@{1.5}} |
| 284 |
\def\bigg{\big@\tw@} |
| 285 |
\def\Bigg{\big@{2.5}} |
| 286 |
% |
| 287 |
% Definition almost verbatim from TeXbook p. 317. This is used |
| 288 |
% in several places, currently (28-DEC-1989) including \head, |
| 289 |
% \title, \author, \dedicatory, \affil, and \topcaption. |
| 290 |
% |
| 291 |
\def\raggedcenter@{\leftskip\z@ plus.4\hsize \rightskip\leftskip |
| 292 |
\parfillskip\z@ \parindent\z@ \spaceskip.3333em \xspaceskip.5em |
| 293 |
\pretolerance9999\tolerance9999 \exhyphenpenalty\@M |
| 294 |
\hyphenpenalty\@M \let\\\linebreak} |
| 295 |
% |
| 296 |
% We now define a version of \uppercase that sidesteps any math, |
| 297 |
% to prevent uppercasing math variables. In order to be handled |
| 298 |
% properly the $..$ must be on the outer level (not enclosed in |
| 299 |
% braces) but this is the usual case in our applications of |
| 300 |
% \uppercasetext@. Also we increase inter-word space in the |
| 301 |
% uppercase text. Footnotes are not handled by |
| 302 |
% \uppercasetext@---a footnote within a \title would have to be |
| 303 |
% done by using \footnotemark within the title and \footnotetext |
| 304 |
% after. In most cases footnotes within a title are something for |
| 305 |
% which the author should use \thanks or \affil or \address |
| 306 |
% instead. |
| 307 |
% |
| 308 |
% One other little problem: uppercasing of a few special |
| 309 |
% characters like the German "ss" and the undotted i and j (\i |
| 310 |
% and \j), used sometimes with accents. We do some reassignments |
| 311 |
% here to handle these. We don't worry about restoring the |
| 312 |
% lowercase special characters within math embedded in the text |
| 313 |
% being uppercased---it's conceivable that someone might want to |
| 314 |
% use them there, but too unlikely to need providing for. |
| 315 |
% (Undotted i and j in math would be typed as \imath and \jmath, |
| 316 |
% not as \i and \j.) |
| 317 |
% |
| 318 |
% This is what plain.tex has for the special characters: |
| 319 |
% |
| 320 |
% \chardef\ss="19 \chardef\ae="1A \chardef\oe="1B \chardef\o="1C |
| 321 |
% \chardef\AE="1D \chardef\OE="1E \chardef\O="1F |
| 322 |
% \chardef\i="10 \chardef\j="11 % dotless letters |
| 323 |
% \def\aa{\accent23a} |
| 324 |
% \def\AA{\leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex% |
| 325 |
% \rlap{\raise.67\dimen@\hbox{\char'27}}A} |
| 326 |
% \def\l{\char32l} |
| 327 |
% \def\L{\leavevmode\setbox0\hbox{L}\hbox to\wd0{\hss\char32L}} |
| 328 |
% |
| 329 |
\def\uppercasetext@#1{% |
| 330 |
{\spaceskip1.3\fontdimen2\the\font plus1.3\fontdimen3\the\font |
| 331 |
\def\ss{SS}\let\i=I\let\j=J\let\ae\AE\let\oe\OE |
| 332 |
\let\o\O\let\aa\AA\let\l\L |
| 333 |
\skipmath@#1$\skipmath@$}} |
| 334 |
% |
| 335 |
\def\skipmath@#1$#2${\uppercase{#1}% |
| 336 |
\ifx\skipmath@#2\else$#2$\expandafter\skipmath@\fi} |
| 337 |
% |
| 338 |
% Macro to check for missing \endsomething. |
| 339 |
\def\add@missing#1{\expandafter\ifx\envir@end#1% |
| 340 |
\Err@{You seem to have a missing or misspelled |
| 341 |
\expandafter\string\envir@end ...}% |
| 342 |
% It is useful to supply the necessary missing piece, especially |
| 343 |
% in the case of \endref. |
| 344 |
\envir@end |
| 345 |
\fi} |
| 346 |
% |
| 347 |
% \revert@ and \envir@stack are for use by any environments that |
| 348 |
% don't enclose their text in a group, e.g., \proclaim, |
| 349 |
% \definition, \roster. |
| 350 |
% |
| 351 |
\newtoks\revert@ |
| 352 |
% |
| 353 |
\def\envir@stack#1{\toks@\expandafter{\envir@end}% |
| 354 |
\edef\next@{\def\noexpand\envir@end{\the\toks@}% |
| 355 |
\revert@{\the\revert@}}% |
| 356 |
\revert@\expandafter{\next@}% |
| 357 |
\def\envir@end{#1}} |
| 358 |
% |
| 359 |
% Some special trickery is necessary to get around the outerness |
| 360 |
% of \enddocument |
| 361 |
\begingroup |
| 362 |
\catcode`\ =11 |
| 363 |
\gdef\revert@envir#1{\expandafter\ifx\envir@end#1% |
| 364 |
% restore previous \envir@end: |
| 365 |
\the\revert@% |
| 366 |
% The space after \enddocument is significant: |
| 367 |
\else\ifx\envir@end\enddocument \Err@{Extra \string#1}% |
| 368 |
\else\expandafter\add@missing\envir@end\revert@envir#1% |
| 369 |
\fi\fi} |
| 370 |
% This definition can be made here because \enddocument has not |
| 371 |
% yet been declared \outer. |
| 372 |
% The space at the end of \enddocument is necessary: |
| 373 |
\xdef\enddocument {\string\enddocument}% |
| 374 |
% The space at the end of \enddocument is necessary here also: |
| 375 |
\global\let\envir@end\enddocument %%%%%% don't remove the final space! |
| 376 |
\endgroup\relax |
| 377 |
% |
| 378 |
\def\first@#1#2\end{#1} |
| 379 |
\def\true@{TT} |
| 380 |
\def\false@{TF} |
| 381 |
\def\empty@{} |
| 382 |
% |
| 383 |
% Test to see whether a given argument is empty or not. If the |
| 384 |
% argument = a single space, it will test the same as empty, |
| 385 |
% which is in fact what we want. |
| 386 |
% |
| 387 |
\begingroup \catcode`\-=3 |
| 388 |
\long\gdef\notempty#1{% |
| 389 |
% \empty@ is needed if we want the case #1 = {} to work properly: |
| 390 |
\expandafter\ifx\first@#1-\end-\empty@ \false@\else \true@\fi} |
| 391 |
\endgroup |
| 392 |
% |
| 393 |
% |
| 394 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 395 |
% -3- FONTS |
| 396 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 397 |
\message{more fonts,} |
| 398 |
% Load some fonts that are not loaded in plain.tex, or only |
| 399 |
% preloaded (which means that the font information is in TeX's |
| 400 |
% memory but a control sequence name for the font still needs to |
| 401 |
% be assigned). plain.tex only loads cmex10, because originally |
| 402 |
% that was the only size available. So we load cmex7 and later |
| 403 |
% cmex8, but we don't load any smaller sizes, in order to |
| 404 |
% conserve font memory; a need for the extension font in sizes |
| 405 |
% smaller than 7-point is most unusual. For subscript sums or |
| 406 |
% other extension symbols in eightpoint text we will use cmex7 |
| 407 |
% rather than cmex6, to allow us to get away without loading |
| 408 |
% cmex6. |
| 409 |
% |
| 410 |
% We use \font@, not simply \font, so that these fonts will be |
| 411 |
% handled properly by AMS-TeX's syntax check. |
| 412 |
% |
| 413 |
\font@\tensmc=cmcsc10 \relax |
| 414 |
% |
| 415 |
% \sevenex, and \eightex below, must be able to be interpreted |
| 416 |
% as math fonts for certain initialization (e.g. establishing |
| 417 |
% the height of the strut in \eightpoint) that may be requested |
| 418 |
% before \topmatter is invoked, and the fonts are actually loaded. |
| 419 |
% |
| 420 |
\let\sevenex=\tenex % needs special handling in \PSAMSFonts |
| 421 |
% |
| 422 |
% We need cmti7 in case \italic is used in a subscript or |
| 423 |
% superscript. Once again we will conserve font space by not |
| 424 |
% loading cmti6 or cmti5, and declare the \scriptfont in |
| 425 |
% \eightpoint to be cmti7 rather than cmti6. At least until we |
| 426 |
% know that users actually are using \italic in sub-subscript |
| 427 |
% size. |
| 428 |
% |
| 429 |
\font@\sevenit=cmti7 \relax |
| 430 |
% |
| 431 |
% We have to load a lot of other fonts for eight-point text |
| 432 |
% (footnotes, abstracts, bibliography). Note that cmti and cmsl |
| 433 |
% in sizes 5, 6 don't get loaded, since they may not exist (cmti7 |
| 434 |
% is one of the standard 75 Computer Modern fonts, but cmti5 and |
| 435 |
% cmti6 aren't, nor are any of cmsl5, cmsl6, cmsl7). AMSPPT |
| 436 |
% provides for ten-point and eight-point font sets; |
| 437 |
% |
| 438 |
\font@\eightrm=cmr8 \relax % preloaded in plain.tex |
| 439 |
\font@\sixrm=cmr6 \relax % preloaded in plain.tex |
| 440 |
\font@\eighti=cmmi8 \relax \skewchar\eighti='177 % preloaded |
| 441 |
\font@\sixi=cmmi6 \relax \skewchar\sixi='177 % preloaded |
| 442 |
\font@\eightsy=cmsy8 \relax \skewchar\eightsy='60 % preloaded |
| 443 |
\font@\sixsy=cmsy6 \relax \skewchar\sixsy='60 % preloaded |
| 444 |
\let\eightex=\tenex % needs special handling in \PSAMSFonts |
| 445 |
\font@\eightbf=cmbx8 \relax % preloaded in plain.tex |
| 446 |
\font@\sixbf=cmbx6 \relax % preloaded in plain.tex |
| 447 |
\font@\eightit=cmti8 \relax % preloaded in plain.tex |
| 448 |
\font@\eightsl=cmsl8 \relax % preloaded in plain.tex |
| 449 |
\font@\eighttt=cmtt8 \relax % preloaded in plain.tex |
| 450 |
\let\eightsmc=\nullfont % needs special handling in \PSAMSFonts |
| 451 |
% |
| 452 |
% Now we define \tenpoint and \eightpoint for regular text and |
| 453 |
% footnotes, similarly to the TeXbook, p. 414. We not only |
| 454 |
% change the \baselineskip, but also change the glue above and |
| 455 |
% below displayed formulas, in case an abstract or footnote |
| 456 |
% happens to have them. We also need to set not only \strutbox, |
| 457 |
% but also \strutbox@. The height of \strutbox@ is the height of |
| 458 |
% \strutbox, minus the value of \normallineskiplimit. And we |
| 459 |
% will set \ex@ in each case (for \tenpoint it is supposed to be |
| 460 |
% equivalent to 1pt, while for \eightpoint it will then |
| 461 |
% presumably be equivalent to .8pt). |
| 462 |
% |
| 463 |
% When \ifsyntax@ is true, so that we are checking syntax, then |
| 464 |
% we won't bother specifying fonts (since we would only change |
| 465 |
% them all to \dummyft@ anyway), and we simply let \big and its |
| 466 |
% variants gobble up things with the proper syntax, instead of |
| 467 |
% worrying about getting the right sizes. |
| 468 |
% |
| 469 |
% \tenpoint@ is a hook where new material can be added. |
| 470 |
% \topmatter makes use of this. Note that to change the |
| 471 |
% baselineskip to say 14pt, one should say |
| 472 |
% |
| 473 |
% \addto\tenpoint{\normalbaselineskip14pt\normalbaselines} |
| 474 |
% |
| 475 |
% rather than just \addto\tenpoint{\baselineskip14pt} |
| 476 |
% |
| 477 |
\newtoks\tenpoint@ |
| 478 |
% |
| 479 |
\def\tenpoint{\normalbaselineskip12\p@ |
| 480 |
\abovedisplayskip12\p@ plus3\p@ minus9\p@ |
| 481 |
\belowdisplayskip\abovedisplayskip |
| 482 |
\abovedisplayshortskip\z@ plus3\p@ |
| 483 |
\belowdisplayshortskip7\p@ plus3\p@ minus4\p@ |
| 484 |
\textonlyfont@\rm\tenrm \textonlyfont@\it\tenit |
| 485 |
\textonlyfont@\sl\tensl \textonlyfont@\bf\tenbf |
| 486 |
\textonlyfont@\smc\tensmc \textonlyfont@\tt\tentt |
| 487 |
\ifsyntax@ \def\big##1{{\hbox{$\left##1\right.$}}}% |
| 488 |
\let\Big\big \let\bigg\big \let\Bigg\big |
| 489 |
\else |
| 490 |
\textfont\z@\tenrm \scriptfont\z@\sevenrm |
| 491 |
\scriptscriptfont\z@\fiverm |
| 492 |
\textfont\@ne\teni \scriptfont\@ne\seveni |
| 493 |
\scriptscriptfont\@ne\fivei |
| 494 |
\textfont\tw@\tensy \scriptfont\tw@\sevensy |
| 495 |
\scriptscriptfont\tw@\fivesy |
| 496 |
\textfont\thr@@\tenex \scriptfont\thr@@\sevenex |
| 497 |
\scriptscriptfont\thr@@\sevenex |
| 498 |
\textfont\itfam\tenit \scriptfont\itfam\sevenit |
| 499 |
\scriptscriptfont\itfam\sevenit |
| 500 |
\textfont\bffam\tenbf \scriptfont\bffam\sevenbf |
| 501 |
\scriptscriptfont\bffam\fivebf |
| 502 |
\setbox\strutbox\hbox{\vrule height8.5\p@ depth3.5\p@ width\z@}% |
| 503 |
% The height of \strutbox@ is supposed to be the height of |
| 504 |
% \strutbox minus \normallineskip. We take half from the top and |
| 505 |
% half from the bottom. |
| 506 |
\setbox\strutbox@\hbox{\lower.5\normallineskiplimit\vbox{% |
| 507 |
\kern-\normallineskiplimit\copy\strutbox}}% |
| 508 |
% We set \bigsize@ to the height of a parenthesis, times 1.2. |
| 509 |
% \bigsize@ controls the height of \big, \Big, \bigg and \Bigg |
| 510 |
% delimiters. |
| 511 |
\setbox\z@\vbox{\hbox{$($}\kern\z@}\[email protected]\ht\z@ |
| 512 |
\fi |
| 513 |
% \ex@ is supposed to come out to 1pt; multiplication factor may |
| 514 |
% need to be changed if Computer Modern is not being used. \jot, |
| 515 |
% a dimen register usually used for extra spacing between lines |
| 516 |
% of a multi-line displayed equation or similar structure, is |
| 517 |
% reset to 3\ex@ (in plain.tex it is always 3pt, but in AMSPPT it |
| 518 |
% may be reduced by \eightpoint). |
| 519 |
\normalbaselines\rm\[email protected]\[email protected]\jot3\ex@ |
| 520 |
\the\tenpoint@} |
| 521 |
% |
| 522 |
% Like \tenpoint@, \eightpoint@ is a hook where extra material |
| 523 |
% can be added to the definition of \eightpoint. |
| 524 |
% |
| 525 |
\newtoks\eightpoint@ |
| 526 |
% |
| 527 |
\def\eightpoint{\normalbaselineskip10\p@ |
| 528 |
\abovedisplayskip10\p@ plus2.4\p@ minus7.2\p@ |
| 529 |
\belowdisplayskip\abovedisplayskip |
| 530 |
\abovedisplayshortskip\z@ plus2.4\p@ |
| 531 |
\belowdisplayshortskip5.6\p@ plus2.4\p@ minus3.2\p@ |
| 532 |
\textonlyfont@\rm\eightrm \textonlyfont@\it\eightit |
| 533 |
\textonlyfont@\sl\eightsl \textonlyfont@\bf\eightbf |
| 534 |
\textonlyfont@\smc\eightsmc \textonlyfont@\tt\eighttt |
| 535 |
\ifsyntax@\def\big##1{{\hbox{$\left##1\right.$}}}% |
| 536 |
\let\Big\big \let\bigg\big \let\Bigg\big |
| 537 |
\else |
| 538 |
\textfont\z@\eightrm \scriptfont\z@\sixrm |
| 539 |
\scriptscriptfont\z@\fiverm |
| 540 |
\textfont\@ne\eighti \scriptfont\@ne\sixi |
| 541 |
\scriptscriptfont\@ne\fivei |
| 542 |
\textfont\tw@\eightsy \scriptfont\tw@\sixsy |
| 543 |
\scriptscriptfont\tw@\fivesy |
| 544 |
% The smallest size of the extension font currently available is |
| 545 |
% 7-point. |
| 546 |
\textfont\thr@@\eightex \scriptfont\thr@@\sevenex |
| 547 |
\scriptscriptfont\thr@@\sevenex |
| 548 |
\textfont\itfam\eightit \scriptfont\itfam\sevenit |
| 549 |
\scriptscriptfont\itfam\sevenit |
| 550 |
\textfont\bffam\eightbf \scriptfont\bffam\sixbf |
| 551 |
\scriptscriptfont\bffam\fivebf |
| 552 |
\setbox\strutbox\hbox{\vrule height7\p@ depth3\p@ width\z@}% |
| 553 |
% The height of \strutbox@ is supposed to be the height of |
| 554 |
% \strutbox minus \normallineskip. We take half from the top and |
| 555 |
% half from the bottom. |
| 556 |
\setbox\strutbox@\hbox{\raise.5\normallineskiplimit\vbox{% |
| 557 |
\kern-\normallineskiplimit\copy\strutbox}}% |
| 558 |
% We set \bigsize@ to the height of a parenthesis, times 1.2. |
| 559 |
% \bigsize@ controls the height of \big, \Big, \bigg and \Bigg |
| 560 |
% delimiters. |
| 561 |
\setbox\z@\vbox{\hbox{$($}\kern\z@}\[email protected]\ht\z@ |
| 562 |
\fi |
| 563 |
% \ex@ is supposed to come out to .8pt; multiplication factor may |
| 564 |
% need to be changed if Computer Modern is not being used. \jot, |
| 565 |
% a dimen register usually used for extra spacing between lines |
| 566 |
% of a multi-line displayed equation or similar structure, is |
| 567 |
% reset to 3\ex@ (in plain.tex it is 3pt). |
| 568 |
\normalbaselines\eightrm\[email protected]\[email protected]\jot3\ex@ |
| 569 |
\the\eightpoint@} |
| 570 |
% |
| 571 |
% \linespacing command to introduce a factor by which |
| 572 |
% \normalbaselineskip will be multiplied. Multiplying by the |
| 573 |
% factor will cause any stretch or shrink to be lost; normally |
| 574 |
% that's not a problem. |
| 575 |
\def\linespacing#1{% |
| 576 |
\addto\tenpoint{\normalbaselineskip=#1\normalbaselineskip |
| 577 |
\normalbaselines |
| 578 |
% Reset the strut boxes. |
| 579 |
\setbox\strutbox=\hbox{\vrule height.7\normalbaselineskip |
| 580 |
depth.3\normalbaselineskip width\z@}% |
| 581 |
\setbox\strutbox@\hbox{\raise.5\normallineskiplimit |
| 582 |
\vbox{\kern-\normallineskiplimit\copy\strutbox}}% |
| 583 |
}% |
| 584 |
\addto\eightpoint{\normalbaselineskip=#1\normalbaselineskip |
| 585 |
\normalbaselines |
| 586 |
% Reset the strut boxes. |
| 587 |
\setbox\strutbox=\hbox{\vrule height.7\normalbaselineskip |
| 588 |
depth.3\normalbaselineskip width\z@}% |
| 589 |
\setbox\strutbox@\hbox{\raise.5\normallineskiplimit |
| 590 |
\vbox{\kern-\normallineskiplimit\copy\strutbox}}% |
| 591 |
}% |
| 592 |
} |
| 593 |
% |
| 594 |
\def\extrafont@#1#2#3{\font#1=#2#3\relax} |
| 595 |
% |
| 596 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 597 |
% Postscript versions of the math fonts from the AMSFonts |
| 598 |
% package, done jointly by Blue Sky Research and Y&Y, come only |
| 599 |
% in sizes 10, 7 and 5, i.e. sizes 9, 8 and 6 are not included. |
| 600 |
% |
| 601 |
% \PSAMSFonts can be called in the initialization, or by a user |
| 602 |
% before \document and \topmatter, to specify that sizes 9,8,6 of |
| 603 |
% AMS fonts should be scaled from nearby PS sizes. |
| 604 |
% |
| 605 |
\newif\ifPSAMSFonts |
| 606 |
\def\PSAMSFonts{% |
| 607 |
\def\extrafont@##1##2##3{% |
| 608 |
\font##1=##2% |
| 609 |
% Concatenate the proper size spec to the preceding letters |
| 610 |
\ifnum##3=9 10 at9pt% |
| 611 |
\else\ifnum##3=8 10 at8pt% |
| 612 |
\else\ifnum##3=6 7 at6pt% |
| 613 |
% Sizes other than 9, 8 or 6 are not expected, so this branch might |
| 614 |
% generate an error: |
| 615 |
\else ##3\fi\fi\fi\relax}% |
| 616 |
\font@\eightsmc=cmcsc10 at 8pt |
| 617 |
\font@\eightex=cmex10 at 8pt |
| 618 |
\font@\sevenex=cmex10 at 7pt |
| 619 |
\PSAMSFontstrue |
| 620 |
} |
| 621 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 622 |
% |
| 623 |
% If the user has specified \loadeufb, \loadbold, \loadeusm, |
| 624 |
% \loadeusm, \loadeurm, \loadeurb, we need to add eightpoint |
| 625 |
% fonts. We do this in \topmatter, and the user documentation |
| 626 |
% instructs the user to include any \load... command between |
| 627 |
% \documentstyle and \topmatter. |
| 628 |
% |
| 629 |
% At the same time, if PSAMSFonts has not been specified, add the |
| 630 |
% regular versions of the three fonts that need special handling. |
| 631 |
% |
| 632 |
\def\loadextrasizes@#1#2#3#4#5#6#7{% |
| 633 |
\ifx\undefined#1% |
| 634 |
\else \extrafont@{#4}{#2}{8}\extrafont@{#6}{#2}{6}% |
| 635 |
\ifsyntax@ |
| 636 |
\else |
| 637 |
\addto\tenpoint{\textfont#1#3\scriptfont#1#5% |
| 638 |
\scriptscriptfont#1#7}% |
| 639 |
\addto\eightpoint{\textfont#1#4\scriptfont#1#6% |
| 640 |
\scriptscriptfont#1#7}% |
| 641 |
\fi |
| 642 |
\fi |
| 643 |
} |
| 644 |
% |
| 645 |
% Provide a mechanism for delaying additional font loading, which |
| 646 |
% may be necessary for some publications. |
| 647 |
% |
| 648 |
\newtoks\loadextrafonts@@ |
| 649 |
\def\loadextrafonts@{% |
| 650 |
\loadextrasizes@\msafam{msam}% |
| 651 |
\tenmsa\eightmsa\sevenmsa\sixmsa\fivemsa |
| 652 |
\loadextrasizes@\msbfam{msbm}% |
| 653 |
\tenmsb\eightmsb\sevenmsb\sixmsb\fivemsb |
| 654 |
\loadextrasizes@\eufmfam{eufm}% |
| 655 |
\teneufm\eighteufm\seveneufm\sixeufm\fiveeufm |
| 656 |
\loadextrasizes@\eufbfam{eufb}% |
| 657 |
\teneufb\eighteufb\seveneufb\sixeufb\fiveeufb |
| 658 |
\loadextrasizes@\eusmfam{eusm}% |
| 659 |
\teneusm\eighteusm\seveneusm\sixeusm\fiveeusm |
| 660 |
\loadextrasizes@\eusbfam{eusb}% |
| 661 |
\teneusb\eighteusb\seveneusb\sixeusb\fiveeusb |
| 662 |
\loadextrasizes@\eurmfam{eurm}% |
| 663 |
\teneurm\eighteurm\seveneurm\sixeurm\fiveeurm |
| 664 |
\loadextrasizes@\eurbfam{eurb}% |
| 665 |
\teneurb\eighteurb\seveneurb\sixeurb\fiveeurb |
| 666 |
\loadextrasizes@\cmmibfam{cmmib}% |
| 667 |
\tencmmib\eightcmmib\sevencmmib\sixcmmib\fivecmmib |
| 668 |
\loadextrasizes@\cmbsyfam{cmbsy}% |
| 669 |
\tencmbsy\eightcmbsy\sevencmbsy\sixcmbsy\fivecmbsy |
| 670 |
\let\loadextrafonts@\empty@ |
| 671 |
\ifPSAMSFonts |
| 672 |
\else |
| 673 |
\font@\eightsmc=cmcsc8 \relax |
| 674 |
\font@\eightex=cmex8 \relax |
| 675 |
\font@\sevenex=cmex7 \relax |
| 676 |
\fi |
| 677 |
\the\loadextrafonts@@ |
| 678 |
} |
| 679 |
% |
| 680 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 681 |
% -4- GLOBAL VARIABLE SETTINGS |
| 682 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 683 |
\message{page dimension settings,} |
| 684 |
% First we set up some basic parameters, which are different than |
| 685 |
% in plain. These values are the ones currently in use (November |
| 686 |
% 1989) in the Journal of the AMS. |
| 687 |
% |
| 688 |
\parindent1pc |
| 689 |
\newdimen\normalparindent \normalparindent\parindent |
| 690 |
\normallineskiplimit\p@ |
| 691 |
% |
| 692 |
% We use a common indent value for setting left and right margins |
| 693 |
% for abstract, table of contents, figure captions, and block |
| 694 |
% environments. The name is chosen as if we are going to have |
| 695 |
% several levels of indent, called \indenti, \indentii, ...; such |
| 696 |
% names can be constructed using \csname and \romannumeral with a |
| 697 |
% count register, which might be useful some time. |
| 698 |
% |
| 699 |
\newdimen\indenti \indenti=2pc |
| 700 |
% |
| 701 |
% Change \magnification (from plain.tex) so that it doesn't reset the |
| 702 |
% page dimensions to 6.5 x 9 true inches. |
| 703 |
\let\magnification=\mag |
| 704 |
% |
| 705 |
\topskip10pt \relax |
| 706 |
% |
| 707 |
% |
| 708 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 709 |
% -5- TOP MATTER DEFINITIONS |
| 710 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 711 |
\message{top matter,} |
| 712 |
% After it's first called, since |
| 713 |
% we do not need \topmatter any longer, we define it to be empty, |
| 714 |
% to release the memory that the definition takes up. |
| 715 |
% |
| 716 |
\def\topmatter{\loadextrafonts@ \let\topmatter\relax} |
| 717 |
% |
| 718 |
% \chapter is used within \title...\endtitle to produce something |
| 719 |
% such as "CHAPTER II", centered above the main text of the |
| 720 |
% chapter title. We do a little trickery with \afterassignment so |
| 721 |
% that the user can remove not only the word "CHAPTER" but also |
| 722 |
% the uppercasing and romannumeralizing by \nofrills. Note that |
| 723 |
% we can't use \ignorespaces after \chapter@ in the usual way |
| 724 |
% because it would get in the way of the \count@ assignment. In |
| 725 |
% fact spaces will be ignored by the assignment operation, the |
| 726 |
% only problem would be when \nofrills is used. |
| 727 |
% |
| 728 |
\def\chapterno@{\uppercase\expandafter{\romannumeral\chaptercount@}} |
| 729 |
% |
| 730 |
\newcount\chaptercount@ |
| 731 |
% |
| 732 |
% In order to avoid interfering with \topskip, we put the |
| 733 |
% \chapter material in the first line of the title, and do some |
| 734 |
% box and glue tricks to get it in position. |
| 735 |
% |
| 736 |
% Perhaps need a test to make sure #1 is a number---if the user |
| 737 |
% does \chapter{IV} instead of \chapter{4} they may not |
| 738 |
% understand the error message they get. |
| 739 |
% |
| 740 |
% \chaptercount@ assignment needs to be global because we are |
| 741 |
% working from inside the first line of \title. |
| 742 |
% |
| 743 |
\def\chapter{\let\savedef@\chapter |
| 744 |
\def\chapter##1{\let\chapter\savedef@ |
| 745 |
\leavevmode\hskip-\leftskip |
| 746 |
% Put the \chapter stuff in an \rlap so it doesn't affect |
| 747 |
% centering of the title, and in an "uplap" so it is placed above |
| 748 |
% where we want it. |
| 749 |
\rlap{\vbox to\z@{\vss\centerline{\eightpoint |
| 750 |
% We do a baselineskip of 2pc from the base of the "CHAPTER" |
| 751 |
% banner to the base of the first title line. (The baseline of |
| 752 |
% the \null will coincide with the baseline of the first title |
| 753 |
% line.) |
| 754 |
\frills@{CHAPTER\space\afterassignment\chapterno@ |
| 755 |
\global\chaptercount@=}% |
| 756 |
##1\unskip}\baselineskip2pc\null}}\hskip\leftskip}% |
| 757 |
\nofrillscheck\chapter} |
| 758 |
% |
| 759 |
% We store the title in a box using a \setbox. It could also be |
| 760 |
% done by defining \thetitle@. One advantage of \setbox is that |
| 761 |
% syntax errors within the title (say for math) are reported |
| 762 |
% immediately instead of during the processing of \endtopmatter. |
| 763 |
% The title box is always put on the page by \endtopmatter, even |
| 764 |
% if it's empty. (With other pieces of the topmatter we check |
| 765 |
% first to see whether there's any text to typeset and skip to |
| 766 |
% the next item if not.) The text of the title is stored up for |
| 767 |
% the running heads, unless \rightheadtoks is nonempty---then |
| 768 |
% presumably the user has already used \rightheadtext to set the |
| 769 |
% right-hand running head, in which case we leave it unchanged. |
| 770 |
% |
| 771 |
% The default for titles is uppercasing. From a design |
| 772 |
% standpoint it might be preferable to do titles in 14-point text |
| 773 |
% with initial caps, but since titles may potentially contain any |
| 774 |
% kind of math, doing this would require a full-fledged |
| 775 |
% \fourteenpoint analogous to \tenpoint. So to give the title |
| 776 |
% extra prominence we use uppercasing instead. The uppercasing |
| 777 |
% can be removed by \nofrills. |
| 778 |
% |
| 779 |
\newbox\titlebox@ |
| 780 |
% |
| 781 |
\def\title{\let\savedef@\title |
| 782 |
% We use a \vtop here because we want to know the height of the |
| 783 |
% first line of the title when we start typesetting the |
| 784 |
% topmatter, in order to get the correct sinkage from the top of |
| 785 |
% the page. |
| 786 |
\def\title##1\endtitle{\let\title\savedef@ |
| 787 |
\global\setbox\titlebox@\vtop{\tenpoint\bf |
| 788 |
\raggedcenter@ |
| 789 |
% Increased \baselineskip is because of the uppercasing. We do |
| 790 |
% it like this instead of putting it inside the \uppercasetext@ |
| 791 |
% macro, because it only applies where an entire paragraph is |
| 792 |
% made up of uppercase text. |
| 793 |
\baselineskip1.3\baselineskip |
| 794 |
\frills@\uppercasetext@{##1}\endgraf}% |
| 795 |
% Check to see if right and left hand running heads have been |
| 796 |
% already assigned by the user---if so, don't override. |
| 797 |
\ifmonograph@ |
| 798 |
\edef\next{\the\leftheadtoks}\ifx\next\empty@ \leftheadtext{##1}\fi |
| 799 |
\fi |
| 800 |
\edef\next{\the\rightheadtoks}\ifx\next\empty@ \rightheadtext{##1}\fi |
| 801 |
}% |
| 802 |
\nofrillscheck\title} |
| 803 |
% |
| 804 |
% Currently \author has no need for a \nofrills option, unlike |
| 805 |
% \title, since uppercasing is not done. |
| 806 |
% |
| 807 |
\newbox\authorbox@ |
| 808 |
\def\author#1\endauthor{\global\setbox\authorbox@ |
| 809 |
\vbox{\tenpoint\smc\raggedcenter@ #1\endgraf}\relaxnext@ |
| 810 |
\edef\next{\the\leftheadtoks}% |
| 811 |
\ifx\next\empty@\leftheadtext{#1}\fi} |
| 812 |
% |
| 813 |
\newbox\affilbox@ |
| 814 |
\def\affil#1\endaffil{\global\setbox\affilbox@ |
| 815 |
\vbox{\tenpoint\raggedcenter@#1\endgraf}} |
| 816 |
% |
| 817 |
% Since \address can be used any number of times, we have to |
| 818 |
% store the different addresses in control sequences that we |
| 819 |
% manufacture as needed. We use \addresscount@ to store the |
| 820 |
% number of times \address is used. |
| 821 |
% |
| 822 |
\newcount\addresscount@ |
| 823 |
\addresscount@\z@ |
| 824 |
\def\addressfont@{\eightpoint} |
| 825 |
\def\address#1\endaddress{\global\advance\addresscount@\@ne |
| 826 |
% The first address is `\address1', the next is `\address2', etc. |
| 827 |
\expandafter\gdef\csname address\number\addresscount@\endcsname |
| 828 |
% The unusually large shrinkability in the vskip before the |
| 829 |
% address is there because we don't want the addresses to fall on |
| 830 |
% a separate page at the end of a paper, and extra shrinkability |
| 831 |
% may help them to fit on the previous page in borderline cases. |
| 832 |
{\nobreak\vskip12\p@ minus6\p@\indent\addressfont@\smc#1\par}} |
| 833 |
% |
| 834 |
% \curraddr was added in version 2.1. It uses the address count |
| 835 |
% without advancing it, to add to the most recent address macro. |
| 836 |
% Ignore empty element; all optional elements are ignored if empty. |
| 837 |
% |
| 838 |
\def\curraddr{\let\savedef@\curraddr |
| 839 |
\def\curraddr##1\endcurraddr{\let\curraddr\savedef@ |
| 840 |
\if\notempty{##1}% |
| 841 |
\toks@\expandafter\expandafter\expandafter{% |
| 842 |
\csname address\number\addresscount@\endcsname}% |
| 843 |
\toks@@{##1}% |
| 844 |
\expandafter\xdef\csname address\number\addresscount@\endcsname |
| 845 |
{\the\toks@\endgraf\noexpand\nobreak |
| 846 |
\indent\noexpand\addressfont@{\noexpand\rm |
| 847 |
\frills@{{\noexpand\it Current address\noexpand\/}:\space}% |
| 848 |
\def\noexpand\usualspace{\space}\the\toks@@\unskip}}% |
| 849 |
\fi}% |
| 850 |
\nofrillscheck\curraddr} |
| 851 |
% |
| 852 |
% \email uses the same counter as \address, since they should |
| 853 |
% pair up. |
| 854 |
% |
| 855 |
% Email patch to get tt font |
| 856 |
\def\email{\let\savedef@\email |
| 857 |
\def\email##1\endemail{\let\email\savedef@ |
| 858 |
\if\notempty{##1}% |
| 859 |
\toks@{\def\usualspace{{\it\enspace}}\endgraf\indent\addressfont@}% |
| 860 |
\toks@@{{\tt##1}\par}% |
| 861 |
\expandafter\xdef\csname email\number\addresscount@\endcsname |
| 862 |
{\the\toks@\frills@{{\noexpand\it E-mail address\noexpand\/}:% |
| 863 |
\noexpand\enspace}\the\toks@@}% |
| 864 |
\fi}% |
| 865 |
\nofrillscheck\email} |
| 866 |
% |
| 867 |
% \urladdr the same as \email, with the addition that \tildechar |
| 868 |
% is provided for printing this character in a URL. |
| 869 |
\def\tildechar{{\tt\char`\~}} |
| 870 |
\def\urladdr{\let\savedef@\urladdr |
| 871 |
\def\urladdr##1\endurladdr{\let\urladdr\savedef@ |
| 872 |
\if\notempty{##1}% |
| 873 |
\toks@{\def\usualspace{{\it\enspace}}\endgraf\indent\eightpoint}% |
| 874 |
\toks@@{\tt##1\par}% |
| 875 |
\expandafter\xdef\csname urladdr\number\addresscount@\endcsname |
| 876 |
{\the\toks@\frills@{{\noexpand\it URL\noexpand\/}:% |
| 877 |
\noexpand\enspace}\the\toks@@}% |
| 878 |
\fi}% |
| 879 |
\nofrillscheck\urladdr} |
| 880 |
% |
| 881 |
\def\thedate@{} |
| 882 |
\def\date#1\enddate{\gdef\thedate@{\tenpoint#1\unskip}} |
| 883 |
% |
| 884 |
\def\thethanks@{} |
| 885 |
\def\thanks#1\endthanks{% |
| 886 |
\if\notempty{#1}% |
| 887 |
\ifx\thethanks@\empty@ \gdef\thethanks@{\eightpoint#1}% |
| 888 |
\else |
| 889 |
\expandafter\gdef\expandafter\thethanks@\expandafter{% |
| 890 |
\thethanks@\endgraf#1}% |
| 891 |
\fi |
| 892 |
\fi} |
| 893 |
% |
| 894 |
\def\thekeywords@{} |
| 895 |
\def\keywords{\let\savedef@\keywords |
| 896 |
\def\keywords##1\endkeywords{\let\keywords\savedef@ |
| 897 |
\if\notempty{##1}% |
| 898 |
\toks@{\def\usualspace{{\it\enspace}}\eightpoint}% |
| 899 |
\toks@@{##1\unskip.}% |
| 900 |
\edef\thekeywords@{\the\toks@\frills@{{\noexpand\it |
| 901 |
Key words and phrases.\noexpand\enspace}}\the\toks@@}% |
| 902 |
\fi}% |
| 903 |
\nofrillscheck\keywords} |
| 904 |
% |
| 905 |
% \subjclass is analogous to \keywords. We also need a year; only |
| 906 |
% certain years are valid, so we check and report an error if an |
| 907 |
% invalid year is entered. Default to 1991, so that archived |
| 908 |
% material will be processed correctly. |
| 909 |
% We should also check in case a LaTeX-style year change, [...], is |
| 910 |
% entered and report an error for that as well; however, that is |
| 911 |
% more complicated, and not implemented in this round. [2001/02/28] |
| 912 |
% |
| 913 |
\def\xci@{1991} |
| 914 |
\def\mm@{2000} |
| 915 |
\def\subjclassyear#1{% |
| 916 |
\def\subjyear@{#1}% |
| 917 |
\ifx\subjyear@\mm@ |
| 918 |
\else \ifx\subjyear@\xci@ |
| 919 |
\else \message{AmS-TeX warning: Unknown edition (#1) of |
| 920 |
Mathematics Subject Classification; using 1991 edition}% |
| 921 |
\def\subjyear@{1991}% |
| 922 |
\fi\fi} |
| 923 |
\subjclassyear{1991} |
| 924 |
\def\thesubjclass@{} |
| 925 |
\def\subjclass{\let\savedef@\subjclass |
| 926 |
\def\subjclass##1\endsubjclass{\let\subjclass\savedef@ |
| 927 |
\toks@{\def\usualspace{{\rm\enspace}}\eightpoint}% |
| 928 |
\toks@@{##1\unskip.}% |
| 929 |
\edef\thesubjclass@{\the\toks@ |
| 930 |
\frills@{{\noexpand\rm\noexpand\subjyear@\noexpand\space |
| 931 |
{\noexpand\it Mathematics Subject Classification}.\noexpand\enspace}}% |
| 932 |
\the\toks@@}}% |
| 933 |
\nofrillscheck\subjclass} |
| 934 |
% |
| 935 |
% Put the abstract in a box with margins at each side equal to |
| 936 |
% \indenti, obtained by reducing \hsize within a vbox centered by |
| 937 |
% $$...$$. Notice that the \noindent is not erased by \nofrills |
| 938 |
% and that's what we want. |
| 939 |
% |
| 940 |
\newbox\abstractbox@ |
| 941 |
\def\abstract{\let\savedef@\abstract |
| 942 |
\def\abstract{\let\abstract\savedef@ |
| 943 |
\setbox\abstractbox@\vbox\bgroup\noindent$$\vbox\bgroup |
| 944 |
\def\envir@end{\endabstract}\advance\hsize-2\indenti |
| 945 |
\def\usualspace{\enspace}\eightpoint \noindent |
| 946 |
\frills@{{\smc Abstract.\enspace}}}% |
| 947 |
\nofrillscheck\abstract} |
| 948 |
% |
| 949 |
% Finish the box. The \unskip is here in case the abstract ends |
| 950 |
% with something that adds vertical space, such as a \proclaim. |
| 951 |
% |
| 952 |
\def\endabstract{\par\unskip\egroup$$\egroup} |
| 953 |
% |
| 954 |
% \widestnumber used to reset hanging indention in a table of |
| 955 |
% contents or bibliography. Other applications may also be added |
| 956 |
% later. |
| 957 |
% |
| 958 |
% The outerness of the heading macros causes problems. Therefore |
| 959 |
% we process \widestnumber in two stages: first, inside a group, |
| 960 |
% removing the outerness by letting the macros = \relax. Then, |
| 961 |
% using an \expandafter\endgroup trick, we read the arguments |
| 962 |
% while the macros are still nonouter, but process the arguments |
| 963 |
% after we have exited from the group. |
| 964 |
% |
| 965 |
% Now that \no is deprecated, provide for the possibility that |
| 966 |
% \refstyle C has been set before testing for \widestnumber, |
| 967 |
% and if so, don't reset it. [bnb, 1996/12/22] |
| 968 |
% |
| 969 |
\def\widestnumber{\begingroup \let\head\relax\let\subhead\relax |
| 970 |
\let\subsubhead\relax \expandafter\endgroup\setwidest@} |
| 971 |
% |
| 972 |
\def\setwidest@#1#2{% |
| 973 |
\ifx#1\head\setbox\tocheadbox@\hbox{#2.\enspace}% |
| 974 |
\else\ifx#1\subhead\setbox\tocsubheadbox@\hbox{#2.\enspace}% |
| 975 |
\else\ifx#1\subsubhead\setbox\tocsubheadbox@\hbox{#2.\enspace}% |
| 976 |
\else\ifx#1\key |
| 977 |
\if C\refstyle@ \else\refstyle A\fi |
| 978 |
\setboxz@h{\refsfont@\keyformat{#2}}% |
| 979 |
\refindentwd\wd\z@ |
| 980 |
\else\ifx#1\no\refstyle C% |
| 981 |
\setboxz@h{\refsfont@\keyformat{#2}}% |
| 982 |
\refindentwd\wd\z@ |
| 983 |
\else\ifx#1\page\setbox\z@\hbox{\quad\bf#2}% |
| 984 |
\pagenumwd\wd\z@ |
| 985 |
% We assume the default form for \item numbers rather than trying |
| 986 |
% to handle all the variations such as "..." |
| 987 |
\else\ifx#1\item |
| 988 |
\setboxz@h{(#2)}\rosteritemwd\wdz@ |
| 989 |
\else\message{\string\widestnumber\space not defined for this |
| 990 |
option (\string#1)}% |
| 991 |
\fi\fi\fi\fi\fi\fi\fi} |
| 992 |
% |
| 993 |
% \Monograph is capitalized by analogy with \NoRunningHeads and |
| 994 |
% \UseAMSsymbols because of its global scope. We don't use |
| 995 |
% \global's because if the user puts \Monograph in the preamble |
| 996 |
% area as instructed it will automatically have global effect, |
| 997 |
% and in some special applications (e.g. documentation) it may be |
| 998 |
% nice to be able to localize the effect. \Monograph changes |
| 999 |
% paragraph indention from none to normal for certain structures |
| 1000 |
% (subhead, proclaim, definition, ...) via \varindent@; it also |
| 1001 |
% changes fonts for \head, \proclaim, \definition, \example, |
| 1002 |
% \demo, and \remark. |
| 1003 |
% |
| 1004 |
% The \ifmonograph@ test is used to decide whether to save a \toc |
| 1005 |
% in a box or typeset it immediately, as well as whether to |
| 1006 |
% typeset \thanks, \subjclass, and \keywords footnotes . |
| 1007 |
% |
| 1008 |
\newif\ifmonograph@ |
| 1009 |
% |
| 1010 |
\def\Monograph{\monograph@true \let\headmark\rightheadtext |
| 1011 |
\let\varindent@\indent \def\headfont@{\bf}\def\proclaimheadfont@{\smc}% |
| 1012 |
\def\remarkheadfont@{\smc}} |
| 1013 |
% |
| 1014 |
\let\varindent@\noindent |
| 1015 |
% |
| 1016 |
\newbox\tocheadbox@ \newbox\tocsubheadbox@ |
| 1017 |
\newbox\tocbox@ |
| 1018 |
% |
| 1019 |
% Allocate a dimen register for the width of the page number |
| 1020 |
% column in table of contents. The true value of \pagenumwd |
| 1021 |
% is not assigned until \toc is actually called, to avoid |
| 1022 |
% initialization complications. |
| 1023 |
\newdimen\pagenumwd |
| 1024 |
% |
| 1025 |
\def\toc{\toc@{Contents}} |
| 1026 |
% |
| 1027 |
% We make a separate macro that just redefines \title, \chapter, |
| 1028 |
% \specialhead, \head, \subhead, \subsubhead, to simplify the |
| 1029 |
% code of \toc. This also makes it a little easier to work |
| 1030 |
% around the outerness that most of them have. |
| 1031 |
% |
| 1032 |
\def\newtocdefs{% |
| 1033 |
% The space after "\def" in these redefinitions is a convenience |
| 1034 |
% for someone who wants to look for the main definitions---if |
| 1035 |
% they search for "\def\title" the search will pass over "\def |
| 1036 |
% \title" and find the main definition further down. |
| 1037 |
\def \title##1\endtitle |
| 1038 |
{\penaltyandskip@\z@\smallskipamount |
| 1039 |
\hangindent\wd\tocheadbox@\noindent{\bf##1}}% |
| 1040 |
\def \chapter##1{% |
| 1041 |
Chapter \uppercase\expandafter{% |
| 1042 |
\romannumeral##1.\unskip}\enspace}% |
| 1043 |
\def \specialhead##1\endspecialhead |
| 1044 |
{\par\hangindent\wd\tocheadbox@ \noindent##1\par}% |
| 1045 |
\def \head##1 ##2\endhead |
| 1046 |
{\par\hangindent\wd\tocheadbox@ \noindent |
| 1047 |
\if\notempty{##1}\hbox to\wd\tocheadbox@{\hfil##1\enspace}\fi |
| 1048 |
##2\par}% |
| 1049 |
% Since \subhead and \subsubhead change the \leftskip, we need to |
| 1050 |
% do a \par before closing the group that localizes the change. |
| 1051 |
% Unlike \head, we do not try to right-align the numbers. |
| 1052 |
% |
| 1053 |
\def \subhead##1 ##2\endsubhead |
| 1054 |
{\par\vskip-\parskip {\normalbaselines |
| 1055 |
\advance\leftskip\wd\tocheadbox@ |
| 1056 |
\hangindent\wd\tocsubheadbox@ \noindent |
| 1057 |
\if\notempty{##1}% |
| 1058 |
\hbox to\wd\tocsubheadbox@{##1\unskip\hfil}\fi |
| 1059 |
##2\par}}% |
| 1060 |
\def \subsubhead##1 ##2\endsubsubhead |
| 1061 |
{\par\vskip-\parskip {\normalbaselines |
| 1062 |
\advance\leftskip\wd\tocheadbox@ |
| 1063 |
\hangindent\wd\tocsubheadbox@ \noindent |
| 1064 |
\if\notempty{##1}% |
| 1065 |
\hbox to\wd\tocsubheadbox@{##1\unskip\hfil}\fi |
| 1066 |
##2\par}}} |
| 1067 |
% |
| 1068 |
\def\toc@#1{\relaxnext@ |
| 1069 |
\DN@{\ifx\next\nofrills\DN@\nofrills{\nextii@}% |
| 1070 |
\else\DN@{\nextii@{{#1}}}\fi |
| 1071 |
\next@}% |
| 1072 |
\DNii@##1{% |
| 1073 |
% If we're doing a book table of contents, we avoid setting the |
| 1074 |
% whole thing in a box because if it's several pages long we |
| 1075 |
% might run out of memory. |
| 1076 |
\ifmonograph@\bgroup\else\setbox\tocbox@\vbox\bgroup |
| 1077 |
\centerline{\headfont@\ignorespaces##1\unskip}\nobreak |
| 1078 |
\vskip\belowheadskip \fi |
| 1079 |
% Redefine \page (it has another definition normally, for use in |
| 1080 |
% references). The \hfilneg at the end is to cancel the |
| 1081 |
% \parfillskip; the \penalty is to keep the \hfilneg from being |
| 1082 |
% removed (normal processing at the end of a paragraph removes the |
| 1083 |
% last skip). |
| 1084 |
\def\page####1% |
| 1085 |
{\unskip\penalty\z@\null\hfil |
| 1086 |
\rlap{\hbox to\pagenumwd{\quad\hfil####1}}% |
| 1087 |
\hfilneg\penalty\@M}% |
| 1088 |
\setbox\tocheadbox@\hbox{0.\enspace}% |
| 1089 |
\setbox\tocsubheadbox@\hbox{0.0.\enspace}% |
| 1090 |
\leftskip\indenti \rightskip\leftskip |
| 1091 |
% Increase \rightskip to move in the right margin to leave room |
| 1092 |
% for page numbers (which will hang over into the "right margin"). |
| 1093 |
% The \bf is for taking into account page numbers for chapter titles, |
| 1094 |
% which are bold. A little extra width shouldn't hurt for toc's |
| 1095 |
% without chapter titles. |
| 1096 |
\setboxz@h{\bf\quad000}\pagenumwd\wd\z@ |
| 1097 |
\advance\rightskip\pagenumwd |
| 1098 |
% Redefine all the heading macros to be their table-of-contents |
| 1099 |
% versions. |
| 1100 |
\newtocdefs |
| 1101 |
}% |
| 1102 |
\FN@\next@} |
| 1103 |
% |
| 1104 |
% The \egroup closes the \vbox; or if we're in a monograph, just |
| 1105 |
% matches the beginning \bgroup. |
| 1106 |
% |
| 1107 |
\def\endtoc{\par\egroup} |
| 1108 |
% |
| 1109 |
% \pretitle, ..., \prepaper are entry points between the other |
| 1110 |
% parts of the \topmatter so that users can insert things if |
| 1111 |
% necessary. If \pretitle is used to put any kind of box on the |
| 1112 |
% page, it will throw off the sinkage of the title and everything |
| 1113 |
% will have to be recalculated. |
| 1114 |
% |
| 1115 |
\let\pretitle\relax |
| 1116 |
\let\preauthor\relax |
| 1117 |
\let\preaffil\relax |
| 1118 |
\let\predate\relax |
| 1119 |
\let\preabstract\relax |
| 1120 |
\let\prepaper\relax |
| 1121 |
% |
| 1122 |
% Now \dedicatory shows how to make use of the \pre... entry |
| 1123 |
% points defined above. |
| 1124 |
% |
| 1125 |
\def\dedicatory #1\enddedicatory{\def\preabstract{{\medskip |
| 1126 |
\eightpoint\it \raggedcenter@#1\endgraf}}} |
| 1127 |
% |
| 1128 |
% A hook is provided for a translator name, for translations. |
| 1129 |
% \eightpoint is used instead of just \eightrm, to be on the safe |
| 1130 |
% side. For instance, in transliteration some Russian names have |
| 1131 |
% a ``prime'' symbol to represent the Russian ``soft sign''. If |
| 1132 |
% we didn't use \eightpoint we'd get a 10-point prime symbol. |
| 1133 |
% |
| 1134 |
\def\thetranslator@{} |
| 1135 |
\def\translator{% |
| 1136 |
\let\savedef@\translator |
| 1137 |
\def\translator##1\endtranslator{\let\translator\savedef@ |
| 1138 |
\edef\thetranslator@{\noexpand\nobreak\noexpand\medskip |
| 1139 |
\noexpand\line{\noexpand\eightpoint\hfil |
| 1140 |
\frills@{Translated by \uppercase}{##1}\qquad\qquad}% |
| 1141 |
\noexpand\nobreak}}% |
| 1142 |
\nofrillscheck\translator} |
| 1143 |
% |
| 1144 |
% \endtopmatter now puts all of these things together on the |
| 1145 |
% page. We start by checking to see if the left-hand running head |
| 1146 |
% has been defined; if not, presumably it's because \author has |
| 1147 |
% not been used, and presumably that means we are in a book |
| 1148 |
% chapter rather than in an article. So we define it to be the |
| 1149 |
% same as the right-hand running head, which will usually be the |
| 1150 |
% text of the title. |
| 1151 |
% |
| 1152 |
% When doing chapters in a book, \subjclass, \keywords and |
| 1153 |
% \thanks should not print at the bottom of the page. |
| 1154 |
% |
| 1155 |
% The baseline of the title should always fall at a fixed |
| 1156 |
% distance from the top of the page, so we do the spacing with |
| 1157 |
% \topskip instead of \vskip. |
| 1158 |
% |
| 1159 |
% The spacing between elements of the topmatter in AMSPPT is |
| 1160 |
% intended to be the same as in the Journal of the AMS; however |
| 1161 |
% the actual spacing currently used in the latter is the rather |
| 1162 |
% idiosyncratic result of a couple of years of piecemeal changes, |
| 1163 |
% so that rather than follow it blindly we have opted to come as |
| 1164 |
% close as possible by choosing whole or half-pica amounts. The |
| 1165 |
% situation is further complicated by the fact that the |
| 1166 |
% documentstyle for the Journal of the AMS uses a different |
| 1167 |
% method for putting running heads on the page, so that we cannot |
| 1168 |
% measure distance from the top of the page in the same way; and |
| 1169 |
% the date, affiliation, and abstract are handled differently as |
| 1170 |
% well. |
| 1171 |
% |
| 1172 |
% In this diagram the first measurement is from the top of the |
| 1173 |
% type block to the baseline of the first line of the title. In |
| 1174 |
% the Journal of the AMS the value is 5.5pc rather than 4pc, |
| 1175 |
% because it's measured to the top of the running head (which |
| 1176 |
% extends above the text block). The rest of the measurements are |
| 1177 |
% approximate visual space, done in \endtopmatter by \vskip's; |
| 1178 |
% the effective base-to-base distance is approximately half a |
| 1179 |
% pica more than the amount of the \vskip. |
| 1180 |
% |
| 1181 |
% ______________________________ top of type area |
| 1182 |
% | (according to \pageheight) |
| 1183 |
% | 4pc baselineskip |
| 1184 |
% | |----------------------| |
| 1185 |
% __|___|_______ TITLE ________|__ |
| 1186 |
% | WHICH MAY BE SEVERAL | |
| 1187 |
% | LINES LONG | |
| 1188 |
% |----------------------| |
| 1189 |
% 2.5pc |
| 1190 |
% |--------| |
| 1191 |
% | AUTHOR | |
| 1192 |
% |--------| |
| 1193 |
% 1pc |
| 1194 |
% |--------| |
| 1195 |
% | AFFIL | |
| 1196 |
% |--------| |
| 1197 |
% 1pc |
| 1198 |
% |------| |
| 1199 |
% | DATE | |
| 1200 |
% |------| |
| 1201 |
% 1pc |
| 1202 |
% |------------| |
| 1203 |
% | DEDICATORY | |
| 1204 |
% |------------| |
| 1205 |
% 1.5pc |
| 1206 |
% |------------------------------| |
| 1207 |
% | ABSTRACT | |
| 1208 |
% |------------------------------| |
| 1209 |
% 1.5pc |
| 1210 |
% |------------------------------| |
| 1211 |
% | TABLE OF CONTENTS | |
| 1212 |
% |------------------------------| |
| 1213 |
% 2pc |
| 1214 |
% |-----------------------------------| |
| 1215 |
% | START OF TEXT | |
| 1216 |
% | | |
| 1217 |
% |
| 1218 |
% |
| 1219 |
% Make this \outer to catch missing or misspelled \end... in the |
| 1220 |
% topmatter. It doesn't work with \abstract though because that |
| 1221 |
% uses the \setbox\vbox\bgroup ... \egroup mechanism, so we use |
| 1222 |
% \add@missing to catch missing \endabstract's. |
| 1223 |
% |
| 1224 |
\outer\def\endtopmatter{\add@missing\endabstract |
| 1225 |
\edef\next{\the\leftheadtoks}% |
| 1226 |
\ifx\next\empty@ |
| 1227 |
\expandafter\leftheadtext\expandafter{\the\rightheadtoks}% |
| 1228 |
\fi |
| 1229 |
\ifmonograph@\else |
| 1230 |
\ifx\thesubjclass@\empty@\else \makefootnote@{}{\thesubjclass@}\fi |
| 1231 |
\ifx\thekeywords@\empty@\else \makefootnote@{}{\thekeywords@}\fi |
| 1232 |
% If \thanks given, treat it as a footnote text (with no footnote |
| 1233 |
% mark). |
| 1234 |
\ifx\thethanks@\empty@\else \makefootnote@{}{\thethanks@}\fi |
| 1235 |
\fi |
| 1236 |
\inslogo@ |
| 1237 |
% We want a sinkage of 4pc from the top of the page (= the top of |
| 1238 |
% the text area, not including the running heads) for articles, |
| 1239 |
% and 7pc for monograph chapters. |
| 1240 |
\pretitle |
| 1241 |
\begingroup % to localize variant topskip |
| 1242 |
\ifmonograph@ \topskip7pc \else \topskip4pc \fi |
| 1243 |
% We don't unvbox the titlebox because we don't expect footnotes |
| 1244 |
% to ever appear in the title, so we don't need to worry about |
| 1245 |
% allowing them to migrate to the outer level. (Some journals |
| 1246 |
% use footnotes in titles to give acknowledgments of research |
| 1247 |
% support; in AMSPPT this is an unnumbered footnote, done with |
| 1248 |
% \thanks, outside of the title.) |
| 1249 |
\box\titlebox@ |
| 1250 |
\endgroup |
| 1251 |
\preauthor |
| 1252 |
\ifvoid\authorbox@\else \vskip2.5pcplus1pc\unvbox\authorbox@\fi |
| 1253 |
\preaffil |
| 1254 |
\ifvoid\affilbox@\else \vskip1pcplus.5pc\unvbox\affilbox@\fi |
| 1255 |
\predate |
| 1256 |
\ifx\thedate@\empty@\else |
| 1257 |
\vskip1pcplus.5pc\line{\hfil\thedate@\hfil}\fi |
| 1258 |
\preabstract |
| 1259 |
\ifvoid\abstractbox@\else |
| 1260 |
\vskip1.5pcplus.5pc\unvbox\abstractbox@ \fi |
| 1261 |
\ifvoid\tocbox@\else\vskip1.5pcplus.5pc\unvbox\tocbox@\fi |
| 1262 |
\prepaper |
| 1263 |
\vskip2pcplus1pc\relax |
| 1264 |
} |
| 1265 |
% |
| 1266 |
\newif\ifdocument@ \document@false |
| 1267 |
\def\document{\document@true |
| 1268 |
% We call \loadextrafonts@ here as well as in \topmatter; this is |
| 1269 |
% to allow use of the extra sizes of the fonts in e.g. test documents |
| 1270 |
% that don't include a full topmatter section. If \topmatter was |
| 1271 |
% executed, \loadextrafonts@ will now be a harmless no-op. |
| 1272 |
\loadextrafonts@ |
| 1273 |
\let\fontlist@\relax\let\alloclist@\relax |
| 1274 |
% Start out in \tenpoint |
| 1275 |
\tenpoint} |
| 1276 |
% |
| 1277 |
% |
| 1278 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1279 |
% -6- SECTION HEADINGS |
| 1280 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1281 |
\message{section heads,} |
| 1282 |
% In accordance with conventional design principles, the space |
| 1283 |
% below headings is not given any stretchability or |
| 1284 |
% shrinkability. |
| 1285 |
% |
| 1286 |
\newskip\aboveheadskip \aboveheadskip\bigskipamount |
| 1287 |
\newdimen\belowheadskip \belowheadskip6\p@ |
| 1288 |
\def\headfont@{\smc} |
| 1289 |
% |
| 1290 |
% Since we often want to do a penalty and vskip, and since there |
| 1291 |
% are extra complications involved if there is a preceding vskip |
| 1292 |
% from something else, we define a macro to do it. Normally it |
| 1293 |
% is used while we're working on the main vertical list, so we |
| 1294 |
% have to use \removelastskip (which does a negative skip) rather |
| 1295 |
% than \unskip (which REALLY removes the last skip). If the last |
| 1296 |
% thing on the main vertical list is anything other than a vskip, |
| 1297 |
% say a penalty from \pagebreak, the value returned by \lastskip |
| 1298 |
% will be 0, but the potential complications are a whole other |
| 1299 |
% subject. This macro handles the straightforward cases. |
| 1300 |
% |
| 1301 |
% In some cases we may not want to put a penalty at all. |
| 1302 |
% We refrain from doing any penalty if the first argument of |
| 1303 |
% \penaltyandskip@ is 0; the essential effect of an explicit |
| 1304 |
% \penalty0 can be gotten by doing a penalty of 1 instead. |
| 1305 |
% |
| 1306 |
% We use \penalty@ instead of \penalty, so that we can redefine |
| 1307 |
% \penalty@ in \nobreak, to prevent page breaks between certain |
| 1308 |
% pairs such as \head \subhead or \head \proclaim or \nopagebreak |
| 1309 |
% \proclaim ---for example, in |
| 1310 |
% |
| 1311 |
% "... which leads to this theorem: |
| 1312 |
% \proclaim{Theorem 8.2} ..." |
| 1313 |
% |
| 1314 |
% a page break after the colon would be bad, and a user might |
| 1315 |
% want to be able to add a \nopagebreak. |
| 1316 |
% |
| 1317 |
% The sequence |
| 1318 |
% |
| 1319 |
% \subhead Text...\endsubhead |
| 1320 |
% \subsubhead Text...\endsubsubhead |
| 1321 |
% |
| 1322 |
% will still have the weakness of allowing a pagebreak between |
| 1323 |
% the two headings, because \endsubhead doesn't do a \nobreak |
| 1324 |
% (since it's a run-in heading. |
| 1325 |
% |
| 1326 |
\def\penaltyandskip@#1#2{\par\skip@#2\relax |
| 1327 |
\ifdim\lastskip<\skip@\relax\removelastskip |
| 1328 |
\ifnum#1=\z@\else\penalty@#1\relax\fi\vskip\skip@ |
| 1329 |
\else\ifnum#1=\z@\else\penalty@#1\relax\fi\fi} |
| 1330 |
% |
| 1331 |
% The above code contains a bug: if \lastskip=\skip@ (as it does |
| 1332 |
% between two adjacent theorems), and this point coincides with |
| 1333 |
% a page break, the \lastskip will remain at the bottom of the |
| 1334 |
% page. This could be corrected by reformulating the code, but |
| 1335 |
% page breaks would change; therefore, no change has been made, |
| 1336 |
% for reasons of backward compatibility. However, the following |
| 1337 |
% code would `do the right thing': |
| 1338 |
% |
| 1339 |
% \def\penaltyandskip@#1#2{\par\skip@#2\relax |
| 1340 |
% \ifdim\lastskip>\skip@ |
| 1341 |
% \ifnum#1=\z@\else\penalty@#1\relax\fi |
| 1342 |
% \else\relax\removelastskip |
| 1343 |
% \ifnum#1=\z@\else\penalty@#1\relax\fi\vskip\skip@ |
| 1344 |
% \fi} |
| 1345 |
% |
| 1346 |
% When a page ends with space from \lastskip, inserting \pagebreak |
| 1347 |
% at the end of the text of the last element (before \end...) will |
| 1348 |
% remove the space; \removelastskip before the beginning of the |
| 1349 |
% next element has no lasting effect, as it inserts a negative skip |
| 1350 |
% that is smaller than the new skip applied with \penaltyandskip@, |
| 1351 |
% and is therefore removed. |
| 1352 |
% |
| 1353 |
\def\nobreak{\penalty\@M |
| 1354 |
% Change the definition of \penalty@ so that the following number |
| 1355 |
% will be gobbled (by assigning it to the scratch register |
| 1356 |
% \count@@@). |
| 1357 |
\ifvmode\gdef\penalty@{\global\let\penalty@\penalty\count@@@}% |
| 1358 |
% If the next piece of the document after \nobreak is something |
| 1359 |
% like \subhead or \proclaim that calls \penaltyandskip@, then |
| 1360 |
% \penalty@ will reset itself in the way that we want. But if |
| 1361 |
% not, then we still want to reset \penalty@; so we use |
| 1362 |
% \everypar. There are probably some unusual cases that will |
| 1363 |
% still have problems, but at the moment this is the best |
| 1364 |
% solution we have. |
| 1365 |
\everypar{\global\let\penalty@\penalty\everypar{}}\fi} |
| 1366 |
% |
| 1367 |
\let\penalty@\penalty |
| 1368 |
% |
| 1369 |
% We equate the old form of the headings to the new form, for |
| 1370 |
% backward compatibility. It's easier to do this now rather than |
| 1371 |
% later because \head and \subhead are going to be outer. |
| 1372 |
% |
| 1373 |
\def\heading#1\endheading{\head#1\endhead} |
| 1374 |
\def\subheading{\DN@{\ifx\next\nofrills |
| 1375 |
\expandafter\subheading@ |
| 1376 |
\else \expandafter\subheading@\expandafter\empty@ |
| 1377 |
\fi}% |
| 1378 |
\FN@\next@ |
| 1379 |
} |
| 1380 |
\def\subheading@#1#2{\subhead#1#2\endsubhead} |
| 1381 |
% |
| 1382 |
% One more heading level, for occasional use. This is the next |
| 1383 |
% level ABOVE \head. The default style is ragged right; |
| 1384 |
% otherwise it's the same as \head. |
| 1385 |
% |
| 1386 |
\newskip\abovespecialheadskip |
| 1387 |
\abovespecialheadskip=\aboveheadskip |
| 1388 |
\def\specialheadfont@{\bf} |
| 1389 |
\outer\def\specialhead{% |
| 1390 |
\add@missing\endroster \add@missing\enddefinition |
| 1391 |
\add@missing\enddemo \add@missing\endexample |
| 1392 |
\add@missing\endproclaim |
| 1393 |
\penaltyandskip@{-200}\abovespecialheadskip |
| 1394 |
\begingroup\interlinepenalty\@M\rightskip\z@ plus\hsize |
| 1395 |
\let\\\linebreak |
| 1396 |
\specialheadfont@\noindent} |
| 1397 |
\def\endspecialhead{\par\endgroup\nobreak\vskip\belowheadskip} |
| 1398 |
% |
| 1399 |
% penalty-200 is the penalty amount used by plain.tex's |
| 1400 |
% \bigbreak. |
| 1401 |
% |
| 1402 |
\outer\def\head#1\endhead{% |
| 1403 |
\add@missing\endroster \add@missing\enddefinition |
| 1404 |
\add@missing\enddemo \add@missing\endexample |
| 1405 |
\add@missing\endproclaim |
| 1406 |
\penaltyandskip@{-200}\aboveheadskip |
| 1407 |
{\headfont@\raggedcenter@\interlinepenalty\@M |
| 1408 |
#1\endgraf}\headmark{#1}% |
| 1409 |
\nobreak |
| 1410 |
\vskip\belowheadskip} |
| 1411 |
% |
| 1412 |
% \headmark will be redefined to be \rightheadtext by \Monograph. |
| 1413 |
% |
| 1414 |
\let\headmark\eat@ |
| 1415 |
% |
| 1416 |
% The purpose of \restoredef@ is to work around problems caused |
| 1417 |
% by the outerness of things like \subhead. \relax at the |
| 1418 |
% beginning prevents the \savedef@ (which may be \outer) from |
| 1419 |
% being read prematurely in certain kinds of expansion. |
| 1420 |
% |
| 1421 |
\def\restoredef@#1{\relax\let#1\savedef@\let\savedef@\relax} |
| 1422 |
% |
| 1423 |
% \subhead and \subsubhead are simpler, though they allow |
| 1424 |
% \nofrills. (\head, being centered, does not have automatic |
| 1425 |
% punctuation put in at the end and so \nofrills doesn't have |
| 1426 |
% anything to do.) The syntax of \subhead is changed from |
| 1427 |
% \subheading{...} (version 1) to \subhead...\endsubhead (version |
| 1428 |
% 2). This was done for the following reasons: (1) to be |
| 1429 |
% consistent with \head...\endhead (we could have changed \head |
| 1430 |
% instead of \subhead, but the \x...\endx syntax is the one |
| 1431 |
% currently in use in AMS production); (2) if someone (perhaps |
| 1432 |
% us) ever wants to do something tricky with the headings, having |
| 1433 |
% the \end... may help them avoid technical complications. |
| 1434 |
% |
| 1435 |
\newskip\subheadskip \subheadskip\medskipamount |
| 1436 |
\def\subheadfont@{\bf} |
| 1437 |
\outer\def\subhead{% |
| 1438 |
\add@missing\endroster \add@missing\enddefinition |
| 1439 |
\add@missing\enddemo \add@missing\endexample |
| 1440 |
\add@missing\endproclaim |
| 1441 |
\let\savedef@\subhead \let\subhead\relax |
| 1442 |
\def\subhead##1\endsubhead{\restoredef@\subhead |
| 1443 |
\penaltyandskip@{-100}\subheadskip |
| 1444 |
% Add italic correction in \usualspace, because \subheadfont@ is |
| 1445 |
% italic, in case the substituted punctuation is something tall |
| 1446 |
% like a question mark or exclamation point. |
| 1447 |
{\def\usualspace{\/{\subheadfont@\enspace}}% |
| 1448 |
\varindent@\subheadfont@\ignorespaces##1\unskip\frills@{.\enspace}}% |
| 1449 |
\ignorespaces}% |
| 1450 |
\nofrillscheck\subhead} |
| 1451 |
% |
| 1452 |
% In version 2.0 of amsppt.sty we also add a third level of |
| 1453 |
% heading, \subsubhead. |
| 1454 |
% |
| 1455 |
\newskip\subsubheadskip \subsubheadskip\medskipamount |
| 1456 |
\def\subsubheadfont@{\it} |
| 1457 |
\outer\def\subsubhead{% |
| 1458 |
\add@missing\endroster \add@missing\enddefinition |
| 1459 |
\add@missing\enddemo |
| 1460 |
\add@missing\endexample \add@missing\endproclaim |
| 1461 |
\let\savedef@\subsubhead \let\subsubhead\relax |
| 1462 |
\def\subsubhead##1\endsubsubhead{\restoredef@\subsubhead |
| 1463 |
\penaltyandskip@{-50}\subsubheadskip |
| 1464 |
% Add italic correction in \usualspace, because \subsubheadfont@ |
| 1465 |
% is italic, in case the substituted punctuation is something tall |
| 1466 |
% like a question mark or exclamation point. |
| 1467 |
{\def\usualspace{\/{\subsubheadfont@\enspace}}% |
| 1468 |
\subsubheadfont@##1\unskip\frills@{.\enspace}}\ignorespaces}% |
| 1469 |
\nofrillscheck\subsubhead} |
| 1470 |
% |
| 1471 |
% |
| 1472 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1473 |
% -7- THEOREM ENVIRONMENTS AND SIMILAR STRUCTURES |
| 1474 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1475 |
\message{theorems/proofs/definitions/remarks,} |
| 1476 |
% |
| 1477 |
\def\proclaimheadfont@{\bf} |
| 1478 |
% Make \proclaimfont a non-private control sequence, so that |
| 1479 |
% users can change it back to \sl if desired without |
| 1480 |
% complications. |
| 1481 |
\def\proclaimfont{\it} |
| 1482 |
% |
| 1483 |
\newskip\preproclaimskip \preproclaimskip=\medskipamount |
| 1484 |
\newskip\postproclaimskip \postproclaimskip=\medskipamount |
| 1485 |
\outer\def\proclaim{% |
| 1486 |
\let\savedef@\proclaim \let\proclaim\relax |
| 1487 |
\add@missing\endroster \add@missing\enddefinition |
| 1488 |
\add@missing\endproclaim \envir@stack\endproclaim |
| 1489 |
% penalty-100 is the penalty amount used by plain.tex's |
| 1490 |
% \medbreak. |
| 1491 |
\def\proclaim##1{\restoredef@\proclaim |
| 1492 |
\penaltyandskip@{-100}\preproclaimskip |
| 1493 |
{\def\usualspace{\/{\proclaimheadfont@\enspace}}% |
| 1494 |
\varindent@\proclaimheadfont@\ignorespaces##1\unskip |
| 1495 |
\frills@{.\enspace}}% |
| 1496 |
\proclaimfont\ignorespaces}% |
| 1497 |
\nofrillscheck\proclaim} |
| 1498 |
% |
| 1499 |
% \endproclaim ends the paragraph, switches back to \rm and adds |
| 1500 |
% spacing. (This means that if, for some strange reason, a whole |
| 1501 |
% section of text happens to be in italics, then the user must |
| 1502 |
% type \it again after each \endproclaim, but that seems too |
| 1503 |
% special a case to need providing for.) Version 2.1 change: |
| 1504 |
% removed \outer prefix, to simplify some programming related |
| 1505 |
% to \add@missing and \revert@envir. |
| 1506 |
% |
| 1507 |
\def\endproclaim{\revert@envir\endproclaim \par\rm |
| 1508 |
\vskip\postproclaimskip} |
| 1509 |
% |
| 1510 |
% In \remark, we take the opportunity again to issue an error |
| 1511 |
% message if a previous \proclaim has no matching \endproclaim. |
| 1512 |
% |
| 1513 |
\def\remarkheadfont@{\it} |
| 1514 |
\def\remarkfont{\rm} |
| 1515 |
\newskip\remarkskip \remarkskip=\medskipamount |
| 1516 |
\def\remark{\let\savedef@\remark \let\remark\relax |
| 1517 |
\add@missing\endroster \add@missing\endproclaim |
| 1518 |
\envir@stack\endremark |
| 1519 |
\def\remark##1{\restoredef@\remark |
| 1520 |
\penaltyandskip@\z@\remarkskip |
| 1521 |
{\def\usualspace{\/{\remarkheadfont@\enspace}}% |
| 1522 |
\varindent@\remarkheadfont@\ignorespaces##1\unskip |
| 1523 |
\frills@{.\enspace}}% |
| 1524 |
\remarkfont\ignorespaces}% |
| 1525 |
\nofrillscheck\remark} |
| 1526 |
% |
| 1527 |
% \endremark is easy. |
| 1528 |
% |
| 1529 |
\def\endremark{\par\revert@envir\endremark} |
| 1530 |
% |
| 1531 |
% Assumption: \square is defined in initialization (normally via |
| 1532 |
% \UseAMSsymbols). |
| 1533 |
\def\qed{\ifhmode\unskip\nobreak\fi\quad |
| 1534 |
\ifmmode\square\else$\m@th\square$\fi} |
| 1535 |
% |
| 1536 |
% Proofs are the same as Remarks, except there is an additional |
| 1537 |
% \medskip after a Proof. We don't have a runaway demo or remark |
| 1538 |
% check until \enddocument because proofs within proofs (and |
| 1539 |
% perhaps remarks within remarks) are possible. |
| 1540 |
% |
| 1541 |
\newskip\postdemoskip \postdemoskip=\medskipamount |
| 1542 |
% Ensure that there is no lingering indication of a manual end-of-proof box. |
| 1543 |
\newif\if@qedhere |
| 1544 |
\def\demo{% |
| 1545 |
\@qedherefalse |
| 1546 |
\DN@{\ifx\next\nofrills |
| 1547 |
\DN@####1####2{\remark####1{####2}\envir@stack\enddemo |
| 1548 |
\ignorespaces}% |
| 1549 |
\else |
| 1550 |
\DN@####1{\remark{####1}\envir@stack\enddemo\ignorespaces}% |
| 1551 |
\fi |
| 1552 |
\next@}% |
| 1553 |
\FN@\next@} |
| 1554 |
% |
| 1555 |
\def\enddemo{\par\revert@envir\enddemo \endremark\vskip\postdemoskip} |
| 1556 |
% |
| 1557 |
% \definition uses \proclaimheadfont@ because normally the two |
| 1558 |
% use the same font for the head font, with \definition using \rm |
| 1559 |
% for the text as opposed to the \it used for \proclaim. |
| 1560 |
% |
| 1561 |
\def\definitionfont{\rm} |
| 1562 |
\newskip\predefinitionskip \predefinitionskip=\medskipamount |
| 1563 |
\newskip\postdefinitionskip \postdefinitionskip=\medskipamount |
| 1564 |
\def\definition{\let\savedef@\definition \let\definition\relax |
| 1565 |
\add@missing\endproclaim \add@missing\endroster |
| 1566 |
\add@missing\enddefinition \envir@stack\enddefinition |
| 1567 |
% \proclaimheadfont@ comes after the period here because |
| 1568 |
% sometimes we want the period to be roman rather than bold, e.g. |
| 1569 |
% when the preceding thing is a math formula or a citation, set |
| 1570 |
% in roman type. |
| 1571 |
\def\definition##1{\restoredef@\definition |
| 1572 |
\penaltyandskip@{-100}\predefinitionskip |
| 1573 |
{\def\usualspace{\/{\proclaimheadfont@\enspace}}% |
| 1574 |
\varindent@\proclaimheadfont@\ignorespaces##1\unskip |
| 1575 |
\frills@{.\proclaimheadfont@\enspace}}% |
| 1576 |
\definitionfont\ignorespaces}% |
| 1577 |
\nofrillscheck\definition} |
| 1578 |
\def\enddefinition{\revert@envir\enddefinition |
| 1579 |
\par\vskip\postdefinitionskip} |
| 1580 |
% |
| 1581 |
\def\example{% |
| 1582 |
\DN@{\ifx\next\nofrills |
| 1583 |
\DN@####1####2{\definition####1{####2}\envir@stack\endexample |
| 1584 |
\ignorespaces}% |
| 1585 |
\else |
| 1586 |
\DN@####1{\definition{####1}\envir@stack\endexample\ignorespaces}% |
| 1587 |
\fi |
| 1588 |
\next@}% |
| 1589 |
\FN@\next@} |
| 1590 |
\def\endexample{\revert@envir\endexample \enddefinition } |
| 1591 |
% |
| 1592 |
% |
| 1593 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1594 |
% -8- ROSTERS |
| 1595 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1596 |
\message{rosters,} |
| 1597 |
% In version 2 of amsppt we provide a more convenient way of |
| 1598 |
% changing the indention of roster items. |
| 1599 |
% |
| 1600 |
\newdimen\rosteritemwd |
| 1601 |
\rosteritemwd16pt % approximately the width of (iii) in 10 point text |
| 1602 |
% |
| 1603 |
% \roster uses \rostercount@ to store the \item number. The first |
| 1604 |
% item is treated specially, because of the extra space before |
| 1605 |
% it, so we need a flag \iffirstitem@ to identify it. |
| 1606 |
% |
| 1607 |
\newcount\rostercount@ |
| 1608 |
\newif\iffirstitem@ |
| 1609 |
% |
| 1610 |
% Since \item in \roster differs from in \plain, we store plain's |
| 1611 |
% \item in \plainitem@, so that we can restore the definition |
| 1612 |
% after the \roster is over. |
| 1613 |
% |
| 1614 |
\let\plainitem@\item |
| 1615 |
% |
| 1616 |
% In order for our \roster's to work, we will also have to be |
| 1617 |
% sure that \everypar is {}. Just in case \everypar already has |
| 1618 |
% a value, as it might in some format, we store those values in |
| 1619 |
% the token list \everypartoks@, so that we can restore them at |
| 1620 |
% the end. \par@ does this storing, and sets \everypar{}. |
| 1621 |
% |
| 1622 |
\newtoks\everypartoks@ |
| 1623 |
\def\par@{\everypartoks@\expandafter{\the\everypar}\everypar{}} |
| 1624 |
% |
| 1625 |
\def\leftskip@{} |
| 1626 |
% |
| 1627 |
\def\roster{% |
| 1628 |
\envir@stack\endroster |
| 1629 |
% We also have to store the \leftskip, since it will be changed. |
| 1630 |
\edef\leftskip@{\leftskip\the\leftskip}% |
| 1631 |
\relaxnext@ |
| 1632 |
\rostercount@\z@% Initialize \rostercount@ to 0. |
| 1633 |
\def\item{\FN@\rosteritem@}% \item, now redefined, has |
| 1634 |
% to look ahead for [ and ", since we allow optional and literal |
| 1635 |
% arguments. \rosteritem@ itself is defined below. The following |
| 1636 |
% \next@ (in \DN@) is the one called at the very end of this |
| 1637 |
% \def. |
| 1638 |
\DN@{\ifx\next\runinitem\let\next@\nextii@ |
| 1639 |
\else\let\next@\nextiii@ |
| 1640 |
\fi\next@}% |
| 1641 |
% First we look to see whether \roster is followed by \runinitem, |
| 1642 |
% since this requires different processing. |
| 1643 |
\DNii@\runinitem% If \runinitem occurs, \nextii@ must kill it off. |
| 1644 |
{\unskip% This unskips any space before the original \roster. |
| 1645 |
% Our definition of \nextii@\runinitem itself uses compressed |
| 1646 |
% format and a \futurelet\next\next@, because we still have to |
| 1647 |
% allow [ or " to come next. |
| 1648 |
\DN@{\ifx\next[\let\next@\nextii@ |
| 1649 |
\else\ifx\next"\let\next@\nextiii@\else\let\next@\nextiv@\fi |
| 1650 |
\fi\next@}% |
| 1651 |
% The following \nextii@ is the one created by |
| 1652 |
% \nextii@\runinitem; there is no conflict of names, since the |
| 1653 |
% first calls the second. |
| 1654 |
\DNii@[####1]{\rostercount@####1\relax |
| 1655 |
\enspace\therosteritem{\number\rostercount@}~\ignorespaces}% |
| 1656 |
% If [...] comes next, we use (...) but we explicitly do this by |
| 1657 |
% setting \rostercount@ equal to ... so that succeeding \item's |
| 1658 |
% will have the right numbers (use of something other than a |
| 1659 |
% number will give an error message). |
| 1660 |
\def\nextiii@"####1"{\enspace{\rm####1}~\ignorespaces}% |
| 1661 |
% If "..." comes next, we use ... exactly as typed. |
| 1662 |
\def\nextiv@{\enspace\therosteritem1\rostercount@\@ne~}% |
| 1663 |
% Otherwise just use (1). |
| 1664 |
\par@\firstitem@false% Before doing any of this we still change |
| 1665 |
% \everypar, if necessary, which is normally done elsewhere, and |
| 1666 |
% set \firstitem@false, since this \runinitem counts as the |
| 1667 |
% first. |
| 1668 |
\FN@\next@}% End of definition of \nextii@\runinitem. |
| 1669 |
% The following \nextiii@ will be used if we didn't have |
| 1670 |
% \runinitem. |
| 1671 |
\def\nextiii@{\par\par@% End the present paragraph, change \everypar |
| 1672 |
% if necessary, prohibit a break, add a small skip, but add |
| 1673 |
% something to offset any \parskip, if there is any, which would |
| 1674 |
% be contributed when the next paragraph is begun by the next |
| 1675 |
% \item. |
| 1676 |
\penalty\@m\smallskip\vskip-\parskip |
| 1677 |
% And set \firstitem@true for use with \item. |
| 1678 |
\firstitem@true}% |
| 1679 |
\FN@\next@} |
| 1680 |
% |
| 1681 |
% Remember that \rosteritem@ is called by |
| 1682 |
% \futurelet\next\rosteritem@. |
| 1683 |
% |
| 1684 |
\def\rosteritem@{\iffirstitem@\firstitem@false |
| 1685 |
\else\par\vskip-\parskip\fi |
| 1686 |
% Except at the first \item, we end the paragraph (consisting of |
| 1687 |
% the previous \item), and subtract any space that might be added |
| 1688 |
% by the next \item. |
| 1689 |
\leftskip\rosteritemwd \advance\leftskip\normalparindent |
| 1690 |
\advance\leftskip.5em \noindent |
| 1691 |
\DNii@[##1]{\rostercount@##1\relax\itembox@}% |
| 1692 |
% If [...] follows \item, we use ... as the number, again by |
| 1693 |
% setting \rostercount@, so that succeeding \items will have the |
| 1694 |
% right number. |
| 1695 |
\def\nextiii@"##1"{\def\therosteritem@{\rm##1}\itembox@}% |
| 1696 |
% If "..." follows \item, we use ... exactly as typed. |
| 1697 |
\def\nextiv@{\advance\rostercount@\@ne\itembox@}% |
| 1698 |
% Otherwise we print the \rostercount@ in parentheses. |
| 1699 |
\def\therosteritem@{\therosteritem{\number\rostercount@}}% |
| 1700 |
\ifx\next[\let\next@\nextii@\else\ifx\next"\let\next@\nextiii@\else |
| 1701 |
\let\next@\nextiv@\fi\fi\next@} |
| 1702 |
% |
| 1703 |
\def\itembox@{\llap{\hbox to\rosteritemwd{\hss |
| 1704 |
\kern\z@ % kern to thwart \unskip in \rom |
| 1705 |
\therosteritem@}\enspace}\ignorespaces} |
| 1706 |
% |
| 1707 |
% \therosteritem is just a convenience for the user. |
| 1708 |
% |
| 1709 |
\def\therosteritem#1{\rom{(\ignorespaces#1\unskip)}} |
| 1710 |
% |
| 1711 |
% We want to save \Runinitem for last, but it is relevant even to |
| 1712 |
% the definition of \endroster, since we have to worry whether |
| 1713 |
% \endroster is followed by another \Runinitem. We will use a |
| 1714 |
% flag \ifnextRunin@ to tell us. |
| 1715 |
% |
| 1716 |
\newif\ifnextRunin@ |
| 1717 |
% |
| 1718 |
\def\endroster{\relaxnext@ |
| 1719 |
\revert@envir\endroster % restore \envir@end |
| 1720 |
\par\leftskip@ % End the paragraph, and restore the \leftskip. |
| 1721 |
\global\rosteritemwd16\p@ % restore default value |
| 1722 |
\penalty-50 \vskip-\parskip\smallskip % Add a good break and |
| 1723 |
% subtract any space that will be started by next paragraph, but |
| 1724 |
% add a \smallskip. |
| 1725 |
\DN@{\ifx\next\Runinitem\let\next@\relax |
| 1726 |
% Don't do anything else if \Runinitem comes next. |
| 1727 |
\else\nextRunin@false\let\item\plainitem@ % Otherwise, set |
| 1728 |
% \nextRunin@false, and restore \item to its definition in plain; |
| 1729 |
\ifx\next\par % moreover, if \endroster is followed by \par, |
| 1730 |
\DN@\par{\everypar\expandafter{\the\everypartoks@}}% |
| 1731 |
% delete that instruction (since we've already put in a \par), |
| 1732 |
% and restore \everypar, |
| 1733 |
\else % but if the \endroster isn't followed by a new paragraph, |
| 1734 |
\DN@{\noindent\everypar\expandafter{\the\everypartoks@}}% |
| 1735 |
% start the next paragraph unindented, and restore \everypar. |
| 1736 |
\fi\fi\next@}% |
| 1737 |
\FN@\next@} |
| 1738 |
% |
| 1739 |
% Finally, for \Runinitem ... \roster\runinitem we have the usual |
| 1740 |
% junk for worrying about [ or " coming next, and then more |
| 1741 |
% interesting things: We have to find out how many lines of text |
| 1742 |
% we had before the \roster; we will store this in |
| 1743 |
% \rosterhangafter@. |
| 1744 |
% |
| 1745 |
\newcount\rosterhangafter@ |
| 1746 |
\def\Runinitem#1\roster\runinitem{\relaxnext@ |
| 1747 |
\envir@stack\endroster |
| 1748 |
% Initialize \rostercount@ to 0. |
| 1749 |
\rostercount@\z@ |
| 1750 |
% Define \item as before. |
| 1751 |
\def\item{\FN@\rosteritem@}% |
| 1752 |
% Store everything up to the roster in \runinitem@. |
| 1753 |
\def\runinitem@{#1}% |
| 1754 |
\DN@{\ifx\next[\let\next\nextii@\else\ifx\next"\let\next\nextiii@ |
| 1755 |
\else\let\next\nextiv@\fi\fi\next}% |
| 1756 |
\DNii@[##1]{\rostercount@##1\relax |
| 1757 |
% If [...] follows \runinitem, we proceed as before, except we |
| 1758 |
% call this first instance \item@, and we let \nextv@, defined |
| 1759 |
% below, take care of everything. |
| 1760 |
\def\item@{\therosteritem{\number\rostercount@}}\nextv@}% |
| 1761 |
% If "..." follows \runinitem, we define \item@ to use it. |
| 1762 |
\def\nextiii@"##1"{\def\item@{{\rm##1}}\nextv@}% |
| 1763 |
\def\nextiv@{\advance\rostercount@\@ne |
| 1764 |
% Otherwise, we use the proper \rostercount@. Now comes \nextv@, |
| 1765 |
% which has to properly typeset things. |
| 1766 |
\def\item@{\therosteritem{\number\rostercount@}}\nextv@}% |
| 1767 |
% First store things in \box0 . |
| 1768 |
\def\nextv@{\setbox\z@\vbox |
| 1769 |
% Start unindented if we have \ifnextRunin@true. This will |
| 1770 |
% happen only if we had \Runinitem...\endroster right before. |
| 1771 |
{\ifnextRunin@\noindent\fi |
| 1772 |
% Add the stored things in \runinitem@, and then \item@. |
| 1773 |
\runinitem@\unskip\enspace\item@~\par |
| 1774 |
% This sets \rosterhangafter@ to the number of lines in \box0 , |
| 1775 |
% i.e., of the material so far; see the TeXbook, p. 103. We need |
| 1776 |
% to say \global since this is set within \box0. Now we're done |
| 1777 |
% with \box0 ! |
| 1778 |
\global\rosterhangafter@\prevgraf}% |
| 1779 |
\firstitem@false% Set \firstitem@false for future \item's. |
| 1780 |
% End previous paragraph unless we had \Runinitem ...\endroster |
| 1781 |
% right before. Now comes the good part: we |
| 1782 |
% \hangindent3\parindent, as before, but we do it for |
| 1783 |
% \rosterhangafter@ lines, the number that already appeared in |
| 1784 |
% the material we set in \box0 . |
| 1785 |
\ifnextRunin@\else\par\fi |
| 1786 |
\hangafter\rosterhangafter@\hangindent3\normalparindent |
| 1787 |
% Start unindented if we had a \Runinitem ... \endroster right |
| 1788 |
% before. |
| 1789 |
\ifnextRunin@\noindent\fi |
| 1790 |
\runinitem@\unskip\enspace% Put in all the stored stuff |
| 1791 |
\item@~\ifnextRunin@\else\par@\fi% and the \item@, and |
| 1792 |
% end the paragraph, unless we had a \Runinitem ... \endroster |
| 1793 |
% before. |
| 1794 |
\nextRunin@true\ignorespaces}%% Here's where we set \nextRunin@true. |
| 1795 |
\FN@\next@} |
| 1796 |
% |
| 1797 |
% |
| 1798 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1799 |
% -9- FOOTNOTES |
| 1800 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1801 |
\message{footnotes,} |
| 1802 |
% \footmarkform@ tells how to treat a general type of footnote |
| 1803 |
% marker. And \thefootnotemark is for the user, analogous to |
| 1804 |
% \thetag in AMSTEX.TEX. |
| 1805 |
% |
| 1806 |
\def\footmarkform@#1{$\m@th^{#1}$} |
| 1807 |
\let\thefootnotemark\footmarkform@ |
| 1808 |
% |
| 1809 |
% \makefootnote@ takes care of the general problem of creating a |
| 1810 |
% footnote whose marker is #1 and whose text is #2, so that we |
| 1811 |
% can concentrate separately on the problem of how the marker is |
| 1812 |
% determined. It is essentially \vfootnote from the TeXbook, p. |
| 1813 |
% 363, except that we don't do fancy things to worry about |
| 1814 |
% category code changes, and instead of adding a \strut at the |
| 1815 |
% end, we will just add the lower part of the strut. |
| 1816 |
% |
| 1817 |
\def\makefootnote@#1#2{\insert\footins |
| 1818 |
{\interlinepenalty\interfootnotelinepenalty |
| 1819 |
\eightpoint\splittopskip\ht\strutbox\splitmaxdepth\dp\strutbox |
| 1820 |
\floatingpenalty\@MM\leftskip\z@skip\rightskip\z@skip |
| 1821 |
\spaceskip\z@skip\xspaceskip\z@skip |
| 1822 |
\leavevmode{#1}\footstrut\ignorespaces#2\unskip\lower\dp\strutbox |
| 1823 |
\vbox to\dp\strutbox{}}} |
| 1824 |
% |
| 1825 |
% Before version 2.0 \footmarkcount@ was declared in amstex.tex. |
| 1826 |
% |
| 1827 |
\newcount\footmarkcount@ |
| 1828 |
\footmarkcount@\z@ |
| 1829 |
% |
| 1830 |
% \footnotemark basically just advances \footmarkcount@ by 1 and |
| 1831 |
% then uses \footmarkform@{\number\footmarkcount@}---we still |
| 1832 |
% have to worry about the space factor as in the definition of |
| 1833 |
% \footnote in the TeXbook, p. 363. However, we are allowing |
| 1834 |
% both an `optional' argument [#1], where we instead use |
| 1835 |
% \footmarkform@{#1}, and a `literal' argument "#1", where we |
| 1836 |
% instead use #1 exactly as typed, so we need to use a \futurelet |
| 1837 |
% to look at the next symbol. Compressed format is used. |
| 1838 |
% |
| 1839 |
\def\footnotemark{\let\@sf\empty@\relaxnext@ |
| 1840 |
\ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi |
| 1841 |
\DN@{\ifx[\next\let\next@\nextii@\else |
| 1842 |
\ifx"\next\let\next@\nextiii@\else |
| 1843 |
\let\next@\nextiv@\fi\fi\next@}% |
| 1844 |
\DNii@[##1]{\footmarkform@{##1}\@sf}% |
| 1845 |
\def\nextiii@"##1"{{##1}\@sf}% |
| 1846 |
\def\nextiv@{\iffirstchoice@\global\advance\footmarkcount@\@ne\fi |
| 1847 |
\footmarkform@{\number\footmarkcount@}\@sf}% |
| 1848 |
\FN@\next@} |
| 1849 |
% |
| 1850 |
% \footnotetext essentially applies \makefootnote@ to the next |
| 1851 |
% group, using \footmarkcount@ for the marker that goes before |
| 1852 |
% the footnote text. However, we once again allow optional and |
| 1853 |
% literal arguments. Compressed format is used. |
| 1854 |
% |
| 1855 |
\def\footnotetext{\relaxnext@ |
| 1856 |
\DN@{\ifx[\next\let\next@\nextii@\else |
| 1857 |
\ifx"\next\let\next@\nextiii@\else |
| 1858 |
\let\next@\nextiv@\fi\fi\next@}% |
| 1859 |
\DNii@[##1]##2{\makefootnote@{\footmarkform@{##1}}{##2}}% |
| 1860 |
\def\nextiii@"##1"##2{\makefootnote@{##1}{##2}}% |
| 1861 |
\def\nextiv@##1{\makefootnote@{\footmarkform@% |
| 1862 |
{\number\footmarkcount@}}{##1}}% |
| 1863 |
\FN@\next@} |
| 1864 |
% |
| 1865 |
% Finally, \footnote is basically \footnotemark\footnote, but we |
| 1866 |
% can't write it directly that way because it, too, can take |
| 1867 |
% optional and literal arguments. Compressed format again. |
| 1868 |
% |
| 1869 |
\def\footnote{\let\@sf\empty@\relaxnext@ |
| 1870 |
\ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi |
| 1871 |
\DN@{\ifx[\next\let\next@\nextii@\else |
| 1872 |
\ifx"\next\let\next@\nextiii@\else |
| 1873 |
\let\next@\nextiv@\fi\fi\next@}% |
| 1874 |
\DNii@[##1]##2{\footnotemark[##1]\footnotetext[##1]{##2}}% |
| 1875 |
\def\nextiii@"##1"##2{\footnotemark"##1"\footnotetext"##1"{##2}}% |
| 1876 |
\def\nextiv@##1{\footnotemark\footnotetext{##1}}% |
| 1877 |
\FN@\next@} |
| 1878 |
% |
| 1879 |
% \adjustfootnotemark just allows the user to change |
| 1880 |
% \footmarkcount@. |
| 1881 |
% |
| 1882 |
\def\adjustfootnotemark#1{\advance\footmarkcount@#1\relax} |
| 1883 |
% |
| 1884 |
% We use the definition of \footnoterule provided by plain, but |
| 1885 |
% change its width from 2 truein to 5pc. |
| 1886 |
% |
| 1887 |
\def\footnoterule{\kern-4\p@ |
| 1888 |
\hrule width5pc\kern 3.6\p@}% the \hrule is .4pt high |
| 1889 |
% |
| 1890 |
% |
| 1891 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1892 |
% -10- TABLES |
| 1893 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1894 |
% |
| 1895 |
% At the present time no table macros are provided. Captions can |
| 1896 |
% be gotten using \topcaption or \botcaption. |
| 1897 |
% |
| 1898 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1899 |
% -11- FIGURE SPACES AND CAPTIONS |
| 1900 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1901 |
\message{figures and captions,} |
| 1902 |
\def\captionfont@{\smc} |
| 1903 |
% |
| 1904 |
% These captions are designed for use within \topinsert's and |
| 1905 |
% \midinsert's. \nofrills is not currently an option, though |
| 1906 |
% probably it should be added eventually. |
| 1907 |
% |
| 1908 |
\def\topcaption#1#2\endcaption{% |
| 1909 |
% The captionwidth may have been changed by the user so we don't |
| 1910 |
% make the assumption that it is equal to \hsize - 2\indenti. |
| 1911 |
{\dimen@\hsize \advance\dimen@-\captionwidth@ |
| 1912 |
% \raggedcenter@ uses the em so we set the font before calling |
| 1913 |
% it. \leftskip and \rightskip are changed by \raggedcenter so |
| 1914 |
% the modifications of \leftskip and \rightskip must come after. |
| 1915 |
\rm\raggedcenter@ \advance\leftskip.5\dimen@ \rightskip\leftskip |
| 1916 |
{\captionfont@#1}% |
| 1917 |
% Include period only if both caption number and text are present. |
| 1918 |
\if\notempty{#2}\if\notempty{#1}.\enspace\fi\ignorespaces#2\fi |
| 1919 |
\endgraf}\nobreak\bigskip} |
| 1920 |
% |
| 1921 |
% For whatever reason, the style in current AMS production has |
| 1922 |
% figure captions (= \botcaption) set in a block while table |
| 1923 |
% captions are set ragged center style. |
| 1924 |
% |
| 1925 |
\def\botcaption#1#2\endcaption{% |
| 1926 |
% The previous vskip may be blank space for a figure, so we can't |
| 1927 |
% use \penaltyandskip@ here, otherwise the \bigskip would not be |
| 1928 |
% added (assuming the preceding vskip is greater than |
| 1929 |
% \bigskipamount): |
| 1930 |
\nobreak\bigskip |
| 1931 |
% Measure how wide the caption is. Maybe it's only "Figure 1", |
| 1932 |
% or maybe it's "Figure 1. Blah blah blah ... for 10 lines." In |
| 1933 |
% the first case center it, in the second case put it in |
| 1934 |
% paragraph form. Include period only if both caption number and |
| 1935 |
% text are present. |
| 1936 |
\setboxz@h{\captionfont@#1\if\notempty{#2}\if\notempty{#1}.\enspace\fi |
| 1937 |
\rm\ignorespaces#2\fi}% |
| 1938 |
{\dimen@\hsize \advance\dimen@-\captionwidth@ |
| 1939 |
\leftskip.5\dimen@ \rightskip\leftskip |
| 1940 |
% long caption---set it in a paragraph |
| 1941 |
\noindent \ifdim\wdz@>\captionwidth@ |
| 1942 |
% short caption---add \hfil to balance with \parfillskip. |
| 1943 |
\else\hfil\fi |
| 1944 |
{\captionfont@#1}% |
| 1945 |
\if\notempty{#2}\if\notempty{#1}.\enspace\fi\rm\ignorespaces#2\fi\endgraf}} |
| 1946 |
% |
| 1947 |
% Redefine plain TeX \@ins to add definition of \vspace (locally) |
| 1948 |
% for use with caption macros. Also \captionwidth. |
| 1949 |
% |
| 1950 |
\def\@ins{\par\begingroup\def\vspace##1{\vskip##1\relax}% |
| 1951 |
\def\captionwidth##1{\captionwidth@##1\relax}% |
| 1952 |
\setbox\z@\vbox\bgroup} % start a \vbox |
| 1953 |
% |
| 1954 |
% CASE 1: \topcaption plus a table typed by the author. |
| 1955 |
% |
| 1956 |
% \topinsert |
| 1957 |
% \topcaption{Table 1}This is a table caption.\endcaption |
| 1958 |
% \halign{ ... |
| 1959 |
% ... |
| 1960 |
% } |
| 1961 |
% \endinsert |
| 1962 |
% |
| 1963 |
% CASE 2: \topcaption plus some blank space. |
| 1964 |
% |
| 1965 |
% \midinsert |
| 1966 |
% \topcaption{Table 2}This is another table caption.\endcaption |
| 1967 |
% \vspace{13pc} |
| 1968 |
% \endinsert |
| 1969 |
% |
| 1970 |
% CASE 3: \botcaption plus some blank space. |
| 1971 |
% |
| 1972 |
% \topinsert |
| 1973 |
% \vspace{7pc} |
| 1974 |
% \botcaption{Figure 1}\endcaption |
| 1975 |
% \endinsert |
| 1976 |
% |
| 1977 |
% Use of \captionwidth: |
| 1978 |
% |
| 1979 |
% \topinsert |
| 1980 |
% \captionwidth{14pc} |
| 1981 |
% \topcaption{Table 1}Text ... |
| 1982 |
% \endcaption |
| 1983 |
% \endinsert |
| 1984 |
% |
| 1985 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1986 |
% -12- MISCELLANEOUS FORMATTING MACROS |
| 1987 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1988 |
\message{miscellaneous,} |
| 1989 |
% \block is intended for typing long quotes in a block, indented on |
| 1990 |
% both margins. It is set up so that it can be used in either of two |
| 1991 |
% ways: |
| 1992 |
% |
| 1993 |
% $$\block...\endblock\tag1.1$$ |
| 1994 |
% |
| 1995 |
% or |
| 1996 |
% |
| 1997 |
% Normal text. |
| 1998 |
% \block ... \endblock |
| 1999 |
% Continue with more text. |
| 2000 |
% |
| 2001 |
% In the latter case, we use a TeX display to provide spacing above |
| 2002 |
% and below the block. If we're in vertical mode when \block is |
| 2003 |
% called, we use \noindent to avoid getting an extra blank line |
| 2004 |
% before the display. But then we will get the short display skips |
| 2005 |
% instead of the full display skips, so we set \predisplaysize |
| 2006 |
% explicitly to ensure the full display skips. |
| 2007 |
% |
| 2008 |
\def\block{\RIfMIfI@\nondmatherr@\block\fi |
| 2009 |
\else\ifvmode\noindent$$\predisplaysize\hsize |
| 2010 |
\else$$\fi |
| 2011 |
\def\endblock{\par\egroup$$}\fi |
| 2012 |
\vbox\bgroup\advance\hsize-2\indenti\noindent} |
| 2013 |
\def\endblock{\par\egroup} |
| 2014 |
% |
| 2015 |
% In version 1 of amsppt \cite did some parsing to locate a comma |
| 2016 |
% in its argument and if one was found the font was switched from |
| 2017 |
% \citefont to \rm. In version 2 we no longer do this because if |
| 2018 |
% a \cite deviates too much from the expected form we run into |
| 2019 |
% problems: The expected form was either \cite{13}, or \cite{13, |
| 2020 |
% Theorem 2.2}. But if for example the user wants to cite two |
| 2021 |
% references together, \cite{13,15}, we don't want to switch off |
| 2022 |
% \citefont after the comma. And since authors tend to invent |
| 2023 |
% even more imaginative variations than this, we just did away |
| 2024 |
% with the parsing altogether. |
| 2025 |
% |
| 2026 |
% \m@th is in case the author uses subscripts in his citation |
| 2027 |
% codes. |
| 2028 |
% |
| 2029 |
\def\cite#1{\rom{[{\citefont@\m@th#1}]}} |
| 2030 |
% |
| 2031 |
% In version 1 of amsppt \citefont was \bf. |
| 2032 |
% |
| 2033 |
\def\citefont@{\rm} |
| 2034 |
% |
| 2035 |
% \rom provides a way for getting roman punctuation and numerals |
| 2036 |
% in italic text. It takes pains to handle italic corrections |
| 2037 |
% reasonably nicely. |
| 2038 |
% |
| 2039 |
\def\rom#1{\leavevmode |
| 2040 |
\edef\prevskip@{\ifdim\lastskip=\z@ \else\hskip\the\lastskip\relax\fi}% |
| 2041 |
\unskip |
| 2042 |
\edef\prevpenalty@{\ifnum\lastpenalty=\z@ \else |
| 2043 |
\penalty\the\lastpenalty\relax\fi}% |
| 2044 |
\unpenalty \/\prevpenalty@ \prevskip@ {\rm #1}} |
| 2045 |
% |
| 2046 |
% |
| 2047 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2048 |
% -13- BIBLIOGRAPHY |
| 2049 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2050 |
\message{references,} |
| 2051 |
% |
| 2052 |
\def\refsfont@{\eightpoint} |
| 2053 |
\def\refsheadfont@{\headfont@} |
| 2054 |
% |
| 2055 |
% \refindentwd controls the indention from the left margin of the |
| 2056 |
% ref item numbers or key labels. The initial setting is to 2 |
| 2057 |
% decimal digits; numbers up to 99 will be aligned on the right |
| 2058 |
% within a box the width of \refindentwd. \key labels will be |
| 2059 |
% aligned on the LEFT within a box of the same width; but when |
| 2060 |
% \key's are being used, the indention may need to be increased |
| 2061 |
% if it's required that the labels remain clear from the text. |
| 2062 |
% The \widestnumber macro can be used to do this: |
| 2063 |
% \widestnumber\key{MNOPQ} will increase \refindentwd to the |
| 2064 |
% width of a box containing "[MNOPQ]\enspace". \widestnumber can |
| 2065 |
% also be used with \no: \widestnumber\no{000} for 3-digit |
| 2066 |
% numbers, \widestnumber\no{0} for 1-digit numbers, and so on. |
| 2067 |
% However, the use of \no, with or without \widestnumber, is |
| 2068 |
% deprecated, and this use will not be documented in the user's |
| 2069 |
% guide. |
| 2070 |
% |
| 2071 |
\newdimen\refindentwd |
| 2072 |
\setboxz@h{\refsfont@ 00.\enspace} |
| 2073 |
\refindentwd\wdz@ |
| 2074 |
% |
| 2075 |
% Allow the default title for the references to be varied easily; |
| 2076 |
% users will still be instructed to change it using \nofrills. |
| 2077 |
\def\Refsname{References} |
| 2078 |
\outer\def\Refs{\add@missing\endroster \add@missing\endproclaim |
| 2079 |
\let\savedef@\Refs \let\Refs\relax % because of \outer-ness |
| 2080 |
\def\Refs##1{\restoredef@\Refs |
| 2081 |
% For a monograph where the title of the References section is |
| 2082 |
% done using \title, we want to omit the normal "References" |
| 2083 |
% heading and the vertical skips above and below. This can be |
| 2084 |
% accomplished using \Refs\nofrills{}. As long as the vskip at |
| 2085 |
% the end of \endtopmatter is not less than \aboveheadskip and |
| 2086 |
% \belowheadskip, this will be accomplished by the fact that |
| 2087 |
% \penaltyandskip@ doesn't add to a previous larger vskip, and |
| 2088 |
% the ragged center part will simply vanish if #1 is empty. |
| 2089 |
\if\notempty{##1}\penaltyandskip@{-200}\aboveheadskip |
| 2090 |
\begingroup \raggedcenter@\refsheadfont@ |
| 2091 |
\ignorespaces##1\endgraf\endgroup |
| 2092 |
\penaltyandskip@\@M\belowheadskip |
| 2093 |
\fi |
| 2094 |
\begingroup\def\envir@end{\endRefs}\refsfont@\sfcode`\.\@m |
| 2095 |
}% |
| 2096 |
% This line here is a little tricky. If a \nofrills is found when |
| 2097 |
% we look ahead, then \frills@ will become equal to \eat@ and it |
| 2098 |
% will eat "References" before \Refs is allowed to read its |
| 2099 |
% argument. Also we have to use a \csname trick to get around |
| 2100 |
% the outerness of \Refs. MJD |
| 2101 |
\nofrillscheck{\csname Refs\expandafter\endcsname |
| 2102 |
\frills@{{\Refsname}}}} |
| 2103 |
% |
| 2104 |
\def\endRefs{\par % This will check for a missing \endref, also |
| 2105 |
\endgroup} |
| 2106 |
% |
| 2107 |
% These two conditionals are used for handling the logic of |
| 2108 |
% typesetting book versus journal article versus proceedings |
| 2109 |
% article references. |
| 2110 |
\newif\ifbook@ \newif\ifprocpaper@ |
| 2111 |
% |
| 2112 |
% The \else clause here is to handle the case when \nofrills is |
| 2113 |
% used outside of the References section in an unexpected place |
| 2114 |
% (i.e., not immediately after \proclaim, \definition, \head, or |
| 2115 |
% the other things that have a \nofrills option). |
| 2116 |
% |
| 2117 |
\def\nofrills{% |
| 2118 |
% Are we inside a \ref...\endref pair? If so, OK to continue. |
| 2119 |
\expandafter\ifx\envir@end\endref |
| 2120 |
\let\do\relax |
| 2121 |
\xdef\nofrills@list{\nofrills@list\do\curbox}% |
| 2122 |
\else\errmessage{\Invalid@@ \string\nofrills}% |
| 2123 |
\fi}% |
| 2124 |
% |
| 2125 |
\def\defaultreftexts{\gdef\edtext{ed.}\gdef\pagestext{pp.}% |
| 2126 |
\gdef\voltext{vol.}\gdef\issuetext{no.}} |
| 2127 |
\defaultreftexts |
| 2128 |
% |
| 2129 |
\def\ref{\par |
| 2130 |
\begingroup \def\envir@end{\endref}% |
| 2131 |
% Start the reference. |
| 2132 |
\noindent\hangindent\refindentwd |
| 2133 |
% Change \par so that it will supply a (presumably) missing |
| 2134 |
% \endref, with an error message. |
| 2135 |
\def\par{\add@missing\endref}% |
| 2136 |
% Footnotes get lost in references on account of the extensive |
| 2137 |
% boxing; change \footnote to emit a warning message. |
| 2138 |
\let\orig@footnote\footnote |
| 2139 |
\def\footnote{\message{AmS-TeX warning: \string\footnote\space within |
| 2140 |
a reference will disappear;^^J |
| 2141 |
use \string\footnotemark\space \string\footnotetext\space instead}% |
| 2142 |
\orig@footnote}% |
| 2143 |
% \nofrills@list should always be assigned globally, to conserve |
| 2144 |
% save stack. |
| 2145 |
\global\let\nofrills@list\empty@ |
| 2146 |
% |
| 2147 |
% Change \linebreak and \mathbreak to work properly in the |
| 2148 |
% special ref environment. |
| 2149 |
\refbreaks |
| 2150 |
\procpaper@false \book@false \moreref@false |
| 2151 |
% Start an initial box, to match up properly with the first |
| 2152 |
% upcoming \makerefbox; this will be discarded. |
| 2153 |
\def\curbox{\z@}\setbox\z@\vbox\bgroup |
| 2154 |
} |
| 2155 |
% |
| 2156 |
% \keyhook@ is used for switching the style of reference labels |
| 2157 |
% automatically behind the scenes. This is for phasing in, |
| 2158 |
% without loss of backward compatibility, a \refstyle command to |
| 2159 |
% implement the various reference styles currently used in AMS |
| 2160 |
% production. [19-MAR-1991] See the definition of \refstyle. |
| 2161 |
% |
| 2162 |
\let\keyhook@\empty@ |
| 2163 |
% |
| 2164 |
\def\endref{% |
| 2165 |
% To wind up the preceding box it is convenient to call |
| 2166 |
% \makerefbox again; it will also open a new box, however, so we |
| 2167 |
% give it arguments \thr@@ and \endgraf\egroup that will cause |
| 2168 |
% the new box to be closed immediately and discarded. But we must |
| 2169 |
% first make sure box 3 is void or we'll trigger an error |
| 2170 |
% message. This is done by dumping the current contents of |
| 2171 |
% (global register) box 3 into (local register) box 2; the \box |
| 2172 |
% command always makes its argument globally void. (Because box |
| 2173 |
% 0 is used heavily in \makerefbox, it's easier to just use box 2 |
| 2174 |
% here, rather than try to verify that using box 0 would be safe |
| 2175 |
% in all cases.) |
| 2176 |
\setbox\tw@\box\thr@@ |
| 2177 |
\makerefbox?\thr@@{\endgraf\egroup}% |
| 2178 |
% Then we call \endref@ to take all the saved material and |
| 2179 |
% combine it into a paragraph, adding punctuation to separate |
| 2180 |
% pieces. |
| 2181 |
\endref@ |
| 2182 |
% The \endgraf is done here rather than in \endref@ because in |
| 2183 |
% \moreref or \transl cases \endref@ shouldn't do the \endgraf. |
| 2184 |
\endgraf |
| 2185 |
% Finally, we need to close the group that was started by \ref. |
| 2186 |
% This has the effect of killing the current definition of |
| 2187 |
% \envir@end, among other things. |
| 2188 |
\endgroup |
| 2189 |
\keyhook@ |
| 2190 |
\global\let\keyhook@\empty@ % \global to conserve save stack |
| 2191 |
} |
| 2192 |
% |
| 2193 |
\def\key{\gdef\key{\makerefbox\key\keybox@\empty@}\key} \newbox\keybox@ |
| 2194 |
% \no is deprecated in favor of \key; it remains here only for the |
| 2195 |
% purpose of compatibility with existing files. |
| 2196 |
\def\no{\gdef\no{\makerefbox\no\keybox@\empty@}% |
| 2197 |
\gdef\keyhook@{\refstyle C}\no} |
| 2198 |
\def\by{\makerefbox\by\bybox@\empty@} \newbox\bybox@ |
| 2199 |
\let\manyby\by % for backward compatibility |
| 2200 |
\def\bysame{\by\hbox to3em{\hrulefill}\thinspace\kern\z@} |
| 2201 |
\def\paper{\makerefbox\paper\paperbox@\it} \newbox\paperbox@ |
| 2202 |
\def\paperinfo{\makerefbox\paperinfo\paperinfobox@\empty@}% |
| 2203 |
\newbox\paperinfobox@ |
| 2204 |
\def\jour{\makerefbox\jour\jourbox@ |
| 2205 |
{\aftergroup\book@false \aftergroup\procpaper@false}} \newbox\jourbox@ |
| 2206 |
\def\issue{\makerefbox\issue\issuebox@\empty@} \newbox\issuebox@ |
| 2207 |
\def\yr{\makerefbox\yr\yrbox@\empty@} \newbox\yrbox@ |
| 2208 |
\def\pages{\makerefbox\pages\pagesbox@\empty@} \newbox\pagesbox@ |
| 2209 |
\def\page{\gdef\pagestext{p.}\makerefbox\page\pagesbox@\empty@} |
| 2210 |
\def\ed{\makerefbox\ed\edbox@\empty@} \newbox\edbox@ |
| 2211 |
\def\eds{\gdef\edtext{eds.}\makerefbox\eds\edbox@\empty@} |
| 2212 |
% The \aftergroup\book@true here sets the \ifbook@ switch so that |
| 2213 |
% later (in \endref@) we will know whether we are typesetting a |
| 2214 |
% book, a journal article, or a proceedings article. Could use |
| 2215 |
% \global instead of \aftergroup but avoiding \global is usually |
| 2216 |
% safer when possible. |
| 2217 |
\def\book{\makerefbox\book\bookbox@ |
| 2218 |
{\it\aftergroup\book@true \aftergroup\procpaper@false}} |
| 2219 |
\newbox\bookbox@ |
| 2220 |
\def\bookinfo{\makerefbox\bookinfo\bookinfobox@\empty@}% |
| 2221 |
\newbox\bookinfobox@ |
| 2222 |
\def\publ{\makerefbox\publ\publbox@\empty@} \newbox\publbox@ |
| 2223 |
\def\publaddr{\makerefbox\publaddr\publaddrbox@\empty@}% |
| 2224 |
\newbox\publaddrbox@ |
| 2225 |
% See the above comment for \book about the \aftergroup |
| 2226 |
\def\inbook{\makerefbox\inbook\bookbox@ |
| 2227 |
{\aftergroup\procpaper@true \aftergroup\book@false}} |
| 2228 |
\def\procinfo{\makerefbox\procinfo\procinfobox@\empty@}% |
| 2229 |
\newbox\procinfobox@ |
| 2230 |
\def\finalinfo{\makerefbox\finalinfo\finalinfobox@\empty@}% |
| 2231 |
\newbox\finalinfobox@ |
| 2232 |
\def\miscnote{\makerefbox\miscnote\miscnotebox@\empty@}% |
| 2233 |
\newbox\miscnotebox@ |
| 2234 |
\def\toappear{\miscnote to appear} |
| 2235 |
\def\lang{\makerefbox\lang\langbox@\empty@} \newbox\langbox@ |
| 2236 |
\newbox\morerefbox@ |
| 2237 |
% |
| 2238 |
% \vol is special because in AMS style it takes a different font |
| 2239 |
% depending on whether it's a journal volume or a book volume. |
| 2240 |
% |
| 2241 |
\def\vol{\makerefbox\vol\volbox@{\ifbook@ \else |
| 2242 |
\ifprocpaper@\else\bf\fi\fi}} |
| 2243 |
\newbox\volbox@ |
| 2244 |
% |
| 2245 |
% \MR has to take its argument in braces in order to pick out the |
| 2246 |
% volume number and make it bold. For consistency we do the same for |
| 2247 |
% AMSPPS. [mjd,17-Aug-1995] |
| 2248 |
% Provide an MR number for a bibliography item. |
| 2249 |
\define\MR#1{\makerefbox\MR\MRbox@\empty@ |
| 2250 |
\def\next@##1:##2:##3\next@{\ifx @##2\empty@##1\else{\bf##1:}##2\fi}% |
| 2251 |
MR \next@#1:@:\next@} |
| 2252 |
% |
| 2253 |
\newbox\MRbox@ |
| 2254 |
% |
| 2255 |
% User-comand for citing a preprint on the AMS preprint server. |
| 2256 |
% \MR and \AMSPPS are mutually exclusive (at least in normal use), so |
| 2257 |
% we can use \MRbox@ here instead of allocating another box. |
| 2258 |
% |
| 2259 |
% Without the discretionary hyphen, AMSPPS would break as AM-SPPS. |
| 2260 |
% |
| 2261 |
\define\AMSPPS#1{\makerefbox\AMSPPS\MRbox@\empty@ AMS\-PPS \##1} |
| 2262 |
% |
| 2263 |
% Assume for the moment that \CMP and \MR commands won't occur in |
| 2264 |
% the same ref. Too much heavy-duty programming required otherwise. |
| 2265 |
% [mjd,1995/09/28] |
| 2266 |
\define\CMP#1{\makerefbox\CMP\MRbox@\empty@ CMP #1} |
| 2267 |
% |
| 2268 |
\newbox\holdoverbox |
| 2269 |
% |
| 2270 |
% \makerefbox takes three arguments: the first is the name of |
| 2271 |
% the calling macro, for use in error messages; argument 2 |
| 2272 |
% is the box used for storing data (note: some boxes are shared |
| 2273 |
% by more than one calling macro); argument 3 is additional |
| 2274 |
% material (optional---may be empty) that may be used to |
| 2275 |
% affect the contents of the box. |
| 2276 |
% |
| 2277 |
\def\makerefbox#1#2#3{\endgraf |
| 2278 |
% Set box 0 to the just-completed line of text. |
| 2279 |
\setbox\z@\lastbox |
| 2280 |
% Although \holdoverbox will usually be void it still doesn't |
| 2281 |
% hurt to \unhbox it here in every case, which simplifies the |
| 2282 |
% programming. |
| 2283 |
\global\setbox\@ne\hbox{\unhbox\holdoverbox |
| 2284 |
% \ifvoid test is necessary here to prevent a \linebreak at the |
| 2285 |
% end of a field from being removed by the \unpenalty. |
| 2286 |
\ifvoid\z@\else\unhbox\z@\unskip\unskip\unpenalty\fi}% |
| 2287 |
\egroup |
| 2288 |
% If box 1 is empty (width <= 0pt) then set the current box to |
| 2289 |
% void (it might still have a baselineskip glue or something in |
| 2290 |
% it at this point, for one thing). Otherwise set it to box 1. |
| 2291 |
\setbox\curbox\box\ifdim\wd\@ne>\z@ \@ne \else\voidb@x\fi |
| 2292 |
% That finishes the previous box. Now let's start a new one |
| 2293 |
% using the box given as arg 1 of \makerefbox. But first check |
| 2294 |
% to see if it's void and if not give an error message. |
| 2295 |
\ifvoid#2\else\Err@{Redundant \string#1; duplicate use, or |
| 2296 |
mutually exclusive information already given}\fi |
| 2297 |
\def\curbox{#2}\setbox\curbox\vbox\bgroup \hsize\maxdimen \noindent |
| 2298 |
#3} |
| 2299 |
% |
| 2300 |
\def\refbreaks{% |
| 2301 |
\def\refconcat##1{\setbox\z@\lastbox \setbox\holdoverbox\hbox{% |
| 2302 |
\unhbox\holdoverbox \unhbox\z@\unskip\unskip\unpenalty##1}}% |
| 2303 |
\def\holdover##1{% |
| 2304 |
\RIfM@ |
| 2305 |
% Break the current line, adding \null to ensure proper spacing for |
| 2306 |
% a preceding mathrel or mathbin. The blank line containing the |
| 2307 |
% \null will be discarded by later processing. |
| 2308 |
\penalty-\@M\null |
| 2309 |
% Put a temporary ending of the current math formula on the next |
| 2310 |
% line, by itself. |
| 2311 |
\hfil$\clubpenalty\z@\widowpenalty\z@\interlinepenalty\z@ |
| 2312 |
\offinterlineskip\endgraf |
| 2313 |
% Now remove that unwanted extra line and the preceding \lineskip |
| 2314 |
% (of 0pt) and any penalty. There shouldn't be any penalty, |
| 2315 |
% actually, because the relevant penalties were set to 0 above; |
| 2316 |
% but the \unpenalty is harmless and perhaps there is an |
| 2317 |
% overlooked eventuality that it will catch. |
| 2318 |
\setbox\z@\lastbox\unskip \unpenalty |
| 2319 |
\refconcat{##1}% |
| 2320 |
\noindent |
| 2321 |
% Since we did a temporary end of the current math formula there |
| 2322 |
% remains some more math coming up; therefore we need to shift |
| 2323 |
% into math mode again. By breaking immediately after the |
| 2324 |
% beginning of the math formula we leave the unwanted extra |
| 2325 |
% \mathon item in a line by itself; this will be ignored because |
| 2326 |
% in the unpacking process we will only take the last line out of |
| 2327 |
% the current \vbox. |
| 2328 |
$\hfil\penalty-\@M |
| 2329 |
% No \null here because we don't need to do anything extra to |
| 2330 |
% affect the math spacing of the following item. (Line breaks |
| 2331 |
% in math formulas always occur after a \mathbin or \mathrel, |
| 2332 |
% not before, according to AMS style.) |
| 2333 |
\else |
| 2334 |
\endgraf\refconcat{##1}\noindent |
| 2335 |
\fi}% |
| 2336 |
\def\break{\holdover{\penalty-\@M}}% |
| 2337 |
\let\vadjust@\vadjust |
| 2338 |
\def\vadjust##1{\holdover{\vadjust@{##1}}}% |
| 2339 |
% It seems unlikely that \newpage will be needed inside of a |
| 2340 |
% \ref...\endref construction (more likely it will occur between |
| 2341 |
% references, if at all). So we provide only a very simple |
| 2342 |
% alternate version using \vadjust. |
| 2343 |
\def\newpage{\vadjust{\vfill\break}}% |
| 2344 |
} |
| 2345 |
% |
| 2346 |
\def\refstyle#1{\uppercase{% |
| 2347 |
\gdef\refstyle@{#1}% |
| 2348 |
\if#1A\relax \def\keyformat##1{[##1]\enspace\hfil}% |
| 2349 |
\else\if#1B\relax |
| 2350 |
\refindentwd\parindent |
| 2351 |
\def\keyformat##1{\aftergroup\kern |
| 2352 |
\aftergroup-\aftergroup\refindentwd}% |
| 2353 |
\else\if#1C\relax |
| 2354 |
\def\keyformat##1{\hfil##1.\enspace}% |
| 2355 |
\fi\fi\fi}% end of \uppercase |
| 2356 |
} |
| 2357 |
% |
| 2358 |
% Make letters the default for ref labels. This is chosen over |
| 2359 |
% refstyle C with a view to eventually phasing out \no in favor |
| 2360 |
% of always using \key, with the formatting being determined by |
| 2361 |
% the refstyle setting. |
| 2362 |
\refstyle{A} |
| 2363 |
% |
| 2364 |
% You might think that \refbreak@ shouldn't be necessary here (it |
| 2365 |
% executes a line break if the user specified \linebreak in the |
| 2366 |
% last field of the reference), but: sometimes there will be a |
| 2367 |
% language after the final period, and conceivably someone might |
| 2368 |
% need to break the line after the period and before the |
| 2369 |
% language. |
| 2370 |
\def\finalpunct{\ifnum\lastkern=\m@ne\unkern\else.\spacefactor2000 \fi |
| 2371 |
\refquotes@\refbreak@}% |
| 2372 |
\def\continuepunct#1#2#3#4{}% |
| 2373 |
% |
| 2374 |
% \endref@ is shared by \endref, \moreref, and \transl, therefore |
| 2375 |
% some of the code needs to be circumspect. |
| 2376 |
\def\endref@{% |
| 2377 |
% Change the format of the reference label, if necessary: |
| 2378 |
\keyhook@ |
| 2379 |
% This variant definition of \nofrillscheck is embedded in |
| 2380 |
% \endref@ despite the slight cost in extra execution time, in |
| 2381 |
% order to allow, e.g., subheadings within a bibliography section |
| 2382 |
% to have normal \nofrills action. |
| 2383 |
\def\nofrillscheck##1{% |
| 2384 |
\def\do####1{\ifx##1####1\let\frills@\eat@\fi}% |
| 2385 |
\let\frills@\identity@ \nofrills@list}% |
| 2386 |
% If no author name was given, but editor name was given, then |
| 2387 |
% transfer it to the author name box so that it will print at the |
| 2388 |
% beginning of the reference. This would normally happen only |
| 2389 |
% in the case of a proceedings volume or other such collection, |
| 2390 |
% cited as a whole. |
| 2391 |
\ifvoid\bybox@ |
| 2392 |
\ifvoid\edbox@ |
| 2393 |
\else\setbox\bybox@\hbox{\unhbox\edbox@\breakcheck |
| 2394 |
\nofrillscheck\edbox@\frills@{\space(\edtext)}\refbreak@}\fi |
| 2395 |
\fi |
| 2396 |
% \noindent \hangindent\refindentwd was done earlier by \ref, so |
| 2397 |
% at this point we just need to put the reference label on the |
| 2398 |
% page. |
| 2399 |
% |
| 2400 |
% Using this \ifvoid test is partly to prevent accessing \keybox@ |
| 2401 |
% in the \moreref and \transl cases: |
| 2402 |
\ifvoid\keybox@\else\hbox to\refindentwd{% |
| 2403 |
\keyformat{\unhbox\keybox@}}\fi |
| 2404 |
\ifmoreref@ |
| 2405 |
% Even though this reads ``\commaunbox@,'' a semicolon will be |
| 2406 |
% substituted for the comma by the action of \punct@ if |
| 2407 |
% \morerefbox@ is in fact not void. (And note that both \transl |
| 2408 |
% and \moreref share \morerefbox@.) |
| 2409 |
\commaunbox@\morerefbox@ |
| 2410 |
\else |
| 2411 |
% Put in some special kerns to flag the beginning of a reference, |
| 2412 |
% to avoid adding unwanted punctuation and space if \by is omitted. |
| 2413 |
\kern-\tw@ sp\kern\m@ne sp |
| 2414 |
\fi |
| 2415 |
\ppunbox@\empty@\empty@\bybox@\empty@ |
| 2416 |
\ifbook@ % Case 1: \book etc. |
| 2417 |
\commaunbox@\bookbox@ \commaunbox@\bookinfobox@ |
| 2418 |
\ppunbox@\empty@{ (}\procinfobox@)% |
| 2419 |
\ppunbox@,{ vol.~}\volbox@\empty@ |
| 2420 |
\ppunbox@\empty@{ (}\edbox@{, \edtext)}% |
| 2421 |
\commaunbox@\publbox@ \commaunbox@\publaddrbox@ |
| 2422 |
\commaunbox@\yrbox@ |
| 2423 |
\ppunbox@,{ \pagestext~}\pagesbox@\empty@ |
| 2424 |
\else |
| 2425 |
\commaunbox@\paperbox@ \commaunbox@\paperinfobox@ |
| 2426 |
\ifprocpaper@ % Case 2: \paper ... \inbook |
| 2427 |
\commaunbox@\bookbox@ |
| 2428 |
\ppunbox@\empty@{ (}\procinfobox@)% |
| 2429 |
\ppunbox@\empty@{ (}\edbox@{, \edtext)}% |
| 2430 |
\commaunbox@\bookinfobox@ |
| 2431 |
\ppunbox@,{ \voltext~}\volbox@\empty@ |
| 2432 |
\commaunbox@\publbox@ \commaunbox@\publaddrbox@ |
| 2433 |
\commaunbox@\yrbox@ |
| 2434 |
\ppunbox@,{ \pagestext~}\pagesbox@\empty@ |
| 2435 |
\else % Case 3: \paper ... \jour |
| 2436 |
\commaunbox@\jourbox@ |
| 2437 |
\ppunbox@\empty@{ }\volbox@\empty@ |
| 2438 |
\ppunbox@\empty@{ (}\yrbox@)% |
| 2439 |
\ppunbox@,{ \issuetext~}\issuebox@\empty@ |
| 2440 |
% Although \publ and \publaddr will rarely be used with a journal |
| 2441 |
% article, it doesn't really hurt to print them if provided, and |
| 2442 |
% certain rare cases may benefit. E.g.: |
| 2443 |
% |
| 2444 |
% \paper \"Uber maximale Monotonie von Operatoren des Typs |
| 2445 |
% $L^\ast \Phi\circ L$ \paperinfo Report 78-24 \publ Math. Inst., |
| 2446 |
% Univ. K\"oln \yr 1978 \moreref\jour published as Manuscripta |
| 2447 |
% Math. \vol28 \yr1979\pages 305--316 |
| 2448 |
% |
| 2449 |
\commaunbox@\publbox@ \commaunbox@\publaddrbox@ |
| 2450 |
\commaunbox@\pagesbox@ |
| 2451 |
\fi |
| 2452 |
\fi |
| 2453 |
\commaunbox@\finalinfobox@ |
| 2454 |
\ppunbox@\empty@{ (}\miscnotebox@)% |
| 2455 |
% The final punctuation (usually a period) here is not part of a |
| 2456 |
% \ppunbox@ clause because it is always inserted even if |
| 2457 |
% \langbox@ and \MRbox@ are void. |
| 2458 |
\finalpunct |
| 2459 |
% Tweak the spacefactor after langbox to suppress the comma that |
| 2460 |
% would otherwise be added between lang and MR. |
| 2461 |
\ppunbox@\empty@{ (}\langbox@{)\spacefactor1001 }% |
| 2462 |
% Print an MR or AMSPPS number |
| 2463 |
\ifnum\spacefactor>\@m \ppunbox@{}{ }\MRbox@\empty@ |
| 2464 |
\else \commaunbox@\MRbox@ |
| 2465 |
\fi |
| 2466 |
% Restore defaults "ed.", "pp.", etc. in case they were changed. |
| 2467 |
\defaultreftexts |
| 2468 |
} |
| 2469 |
% |
| 2470 |
% \punct@ is the same as \identity@, but we define it rather than |
| 2471 |
% using \let, just in case the contents of amsppt.sty ever get |
| 2472 |
% shuffled around in such a way that \identity@ is later in the |
| 2473 |
% file. |
| 2474 |
\def\punct@#1{#1} |
| 2475 |
% \ppunbox@ takes 4 arguments. #1 is punctuation that should |
| 2476 |
% precede ending quotes and/or a line breaking penalty, from the |
| 2477 |
% previous item. #2 is material (usually a word space) that |
| 2478 |
% should come after ending quotes or a penalty. #3 is the box |
| 2479 |
% containing the next part of the current reference. #4 is other |
| 2480 |
% material to follow box #3 (e.g., a closing parenthesis, in some |
| 2481 |
% cases). |
| 2482 |
% |
| 2483 |
\def\ppunbox@#1#2#3#4{\ifvoid#3\else |
| 2484 |
\let\prespace@\relax |
| 2485 |
% If nofrills was specified for the previous item, then it will |
| 2486 |
% have been ended with a kern of -1sp. If we find such a kern, |
| 2487 |
% we remove it and omit the normal punctuation (arg #1). |
| 2488 |
\ifnum\lastkern=\m@ne \unkern\let\punct@\eat@ |
| 2489 |
% A kern of -2sp here means we are at the very beginning of the |
| 2490 |
% reference, after the key or number. In that case we need to |
| 2491 |
% omit not only the punctuation, but also any following space. |
| 2492 |
\ifnum\lastkern=-\tw@ \unkern\let\prespace@\ignorespaces \fi |
| 2493 |
\fi |
| 2494 |
\nofrillscheck#3% |
| 2495 |
\punct@{#1}\refquotes@\refbreak@ |
| 2496 |
% Restore normal definition of \punct@: |
| 2497 |
\let\punct@\identity@ |
| 2498 |
\prespace@ |
| 2499 |
% If \nofrills is not in effect, the \space will be eaten; |
| 2500 |
% otherwise it will be substituted for the normal pre-item |
| 2501 |
% frills. |
| 2502 |
\frills@{#2\eat@}\space |
| 2503 |
% \refquotes@ and \refbreak@ will be emptied by \breakcheck |
| 2504 |
% (unless of course there is a new line breaking penalty present |
| 2505 |
% for next time around). |
| 2506 |
\unhbox#3\breakcheck |
| 2507 |
\frills@{#4\eat@}{\kern\m@ne sp}\fi} |
| 2508 |
% |
| 2509 |
\def\commaunbox@#1{\ppunbox@,\space{#1}\empty@} |
| 2510 |
% |
| 2511 |
% By putting the \ifnum here inside the \edef we get automatic |
| 2512 |
% initialization of \refbreak@ for the next time around, instead |
| 2513 |
% of needing an extra \let\refbreak@\empty@ step after \refbreak@ |
| 2514 |
% is used. |
| 2515 |
\def\breakcheck{\edef\refbreak@{\ifnum\lastpenalty=\z@\else |
| 2516 |
\penalty\the\lastpenalty\relax\fi}\unpenalty} |
| 2517 |
% |
| 2518 |
% For quotes, the complication is that the ending quotes must |
| 2519 |
% fall after a comma or other such punctuation that might come |
| 2520 |
% next (we don't know yet what punctuation will be used, if any). |
| 2521 |
% And in addition we have the usual possibility of a line break |
| 2522 |
% to worry about at the same time. Therefore the special control |
| 2523 |
% sequence \endquotes is provided, to be used like this, if let's |
| 2524 |
% say you want book titles to appear in quotes: |
| 2525 |
% |
| 2526 |
% \ppunbox@,{ ``}\bookbox@\endquotes |
| 2527 |
% \commaunbox@\bookinfobox@ |
| 2528 |
% |
| 2529 |
% \endquotes defines the control sequence \refquotes@ to add the |
| 2530 |
% ending quotes later, after we find out whether a comma, period, |
| 2531 |
% or no punctuation at all will be added (not to mention maybe a |
| 2532 |
% line breaking penalty that would need to be shuffled around). |
| 2533 |
% |
| 2534 |
\def\endquotes{\def\refquotes@{''\let\refquotes@\empty@}} |
| 2535 |
\let\refquotes@\empty@ |
| 2536 |
\let\refbreak@\empty@ |
| 2537 |
% |
| 2538 |
% We need a switch to handle certain complications with the moreref |
| 2539 |
% case. |
| 2540 |
% |
| 2541 |
\newif\ifmoreref@ |
| 2542 |
% |
| 2543 |
% \moreref ends the previous setbox operation, does \endref@ to |
| 2544 |
% typeset any information gathered so far, and then prepares to |
| 2545 |
% start the equivalent of a new \ref. |
| 2546 |
% |
| 2547 |
\def\moreref{% |
| 2548 |
% To wind up the preceding box it is convenient to call |
| 2549 |
% \makerefbox again; it will also open a new box, however, so we |
| 2550 |
% give it arguments \thr@@ and \endgraf\egroup that will cause the |
| 2551 |
% new box to be closed immediately and discarded. But we must first |
| 2552 |
% make sure box 3 is void or we'll trigger an error message. This |
| 2553 |
% is done by dumping the current contents of (global register) box |
| 2554 |
% 3 into (local register) box 2; the \box command always makes its |
| 2555 |
% argument globally void. (Because box 0 is used heavily in |
| 2556 |
% \makerefbox, it's easier to just use box 2 here, rather than try |
| 2557 |
% to verify that using box 0 would be safe in all cases.) |
| 2558 |
\setbox\tw@\box\thr@@ |
| 2559 |
\makerefbox?\thr@@{\endgraf\egroup}% |
| 2560 |
% This saved definition will be lost if something else in \endref@ |
| 2561 |
% uses \savedef@. Currently (14-MAR-1991) that is not the case, |
| 2562 |
% however, so doing it this way allows us to save a bit of memory. |
| 2563 |
\let\savedef@\finalpunct \let\finalpunct\empty@ |
| 2564 |
\endref@ |
| 2565 |
% The next time \punct@ is called by \ppunbox, it will change |
| 2566 |
% ",\refquotes@" into "\refquotes@;" or similarly for |
| 2567 |
% \empty@\refquotes@. Then \punct@ will be restored to its original |
| 2568 |
% definition. Note that this definition does not need to be |
| 2569 |
% global; it is local inside the \begingroup ...\endgroup of the |
| 2570 |
% current \ref. |
| 2571 |
\def\punct@##1##2{##2;}% |
| 2572 |
\global\let\nofrills@list\empty@ % global, to conserve save stack |
| 2573 |
% Now restore the normal definition of \finalpunct : |
| 2574 |
\let\finalpunct\savedef@ |
| 2575 |
\moreref@true |
| 2576 |
% Set any initial text between \moreref and the following |
| 2577 |
% control sequence in \morerefbox@. This is typically used with |
| 2578 |
% \transl to add a note such as "English transl." |
| 2579 |
\def\curbox{\morerefbox@}% |
| 2580 |
\setbox\morerefbox@\vbox\bgroup \hsize\maxdimen \noindent |
| 2581 |
} |
| 2582 |
% And \transl, for setting translation information, |
| 2583 |
% doesn't need to be any different than \moreref: |
| 2584 |
% |
| 2585 |
\def\transl{\moreref} |
| 2586 |
% |
| 2587 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2588 |
% -14- END OF DOCUMENT |
| 2589 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2590 |
\message{end of document,} |
| 2591 |
% |
| 2592 |
% Make sure that the primitive \end can be executed; \end may be redefined |
| 2593 |
% for some purposes where input errors are likely to occur. |
| 2594 |
\ifx\plainend\undefined \let\plainend\end \fi |
| 2595 |
\outer\def\enddocument{\par% \par will do a runaway check for \endref |
| 2596 |
\add@missing\endRefs |
| 2597 |
\check@missing@document |
| 2598 |
% Repeat these in case an article (or book chapter!) doesn't have |
| 2599 |
% a references section: |
| 2600 |
\add@missing\endroster \add@missing\endproclaim |
| 2601 |
\add@missing\enddefinition |
| 2602 |
\add@missing\enddemo \add@missing\endremark \add@missing\endexample |
| 2603 |
\enddocument@text |
| 2604 |
\vfill\supereject\plainend} |
| 2605 |
|
| 2606 |
% One non-ending element that can be missing is \document. |
| 2607 |
\def\check@missing@document{% |
| 2608 |
\ifdocument@ |
| 2609 |
\else |
| 2610 |
\Err@{You seem to have a missing or misspelled \string\document}% |
| 2611 |
\fi} |
| 2612 |
|
| 2613 |
\def\enddocument@text{% |
| 2614 |
% In a monograph we expect the translator name and author |
| 2615 |
% addresses to be handled in the front matter rather than at the |
| 2616 |
% end of the individual chapters: |
| 2617 |
\ifmonograph@ % do nothing |
| 2618 |
\else |
| 2619 |
% No break between the References and the final matter. |
| 2620 |
\nobreak |
| 2621 |
% The \address's get printed at the end of the paper. Also the |
| 2622 |
% translator name, if any. We don't need to do an |
| 2623 |
% \ifx\thetranslator@\empty@, as we did with \thesubjclass@ and |
| 2624 |
% other items in \endtopmatter, because we're not constructing a |
| 2625 |
% footnote, just slapping the material on the page. |
| 2626 |
\thetranslator@ |
| 2627 |
% Print all the \address's, including e-mail and url addresses if |
| 2628 |
% present. If any of the \email's are undefined the \csname will |
| 2629 |
% just evaluate to \relax. |
| 2630 |
\count@\z@ |
| 2631 |
\loop\ifnum\count@<\addresscount@\advance\count@\@ne |
| 2632 |
\csname address\number\count@\endcsname |
| 2633 |
\csname email\number\count@\endcsname |
| 2634 |
\csname urladdr\number\count@\endcsname |
| 2635 |
\repeat |
| 2636 |
\fi |
| 2637 |
} |
| 2638 |
|
| 2639 |
% |
| 2640 |
% |
| 2641 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2642 |
% -15- OUTPUT ROUTINE |
| 2643 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2644 |
\message{output routine,} |
| 2645 |
% We provide a \foliofont@ separate from \headlinefont@ because |
| 2646 |
% it is not uncommon for documentstyles to have the folios in a |
| 2647 |
% different font, although in our basic style this is not the |
| 2648 |
% case. \foliofont@ is \eightrm instead of \eightpoint merely |
| 2649 |
% for efficiency; we don't expect to need for example math family |
| 2650 |
% assignments in order to typeset the folio. On the other hand |
| 2651 |
% we need full math capability for \headlinefont@ since running |
| 2652 |
% heads may contain math (from a title or a section head). From |
| 2653 |
% a design standpoint it might be preferable to have seven-point |
| 2654 |
% running heads (compare a small caps \head that falls at the top |
| 2655 |
% of a page with the running head above it) but it is more |
| 2656 |
% convenient to use the already available \eightpoint macro, and |
| 2657 |
% this saves a bit of overhead. |
| 2658 |
% |
| 2659 |
\def\folio{\ifnum\pageno<\z@ \romannumeral-\pageno\else\number\pageno \fi} |
| 2660 |
\def\foliofont@{\eightrm} |
| 2661 |
\def\headlinefont@{\eightpoint} |
| 2662 |
% |
| 2663 |
% \leftheadline and \rightheadline use the method described in |
| 2664 |
% the TeXbook, p. 260 for selecting different pieces of the |
| 2665 |
% topmark or botmark. The necessary \else is inserted by |
| 2666 |
% \leftheadtext and \rightheadtext. \foliofont@ is applied |
| 2667 |
% within the headline (it was formerly included in \folio). |
| 2668 |
% Thus \folio comprises only the page number, making it suitable |
| 2669 |
% for compiling index terms for use with the non-AMS package |
| 2670 |
% index.tex; there is no intention to add an indexing facility |
| 2671 |
% to AMS-TeX. |
| 2672 |
% |
| 2673 |
\def\leftheadline{\rlap{\foliofont@\folio}\hfill \iftrue\topmark\fi \hfill} |
| 2674 |
\def\rightheadline{\hfill \expandafter\iffalse\botmark\fi |
| 2675 |
\hfill \llap{\foliofont@\folio}} |
| 2676 |
% |
| 2677 |
\newtoks\leftheadtoks |
| 2678 |
\newtoks\rightheadtoks |
| 2679 |
% |
| 2680 |
% \leftheadtext and \rightheadtext have a \nofrills option to |
| 2681 |
% turn off uppercasing. They also set their argument in a box, |
| 2682 |
% during a syntax check, because otherwise syntax errors in the |
| 2683 |
% argument would not be caught (because the output routine, and |
| 2684 |
% hence \headline, is never called during a syntax check). |
| 2685 |
% |
| 2686 |
\def\leftheadtext{\let\savedef@\leftheadtext |
| 2687 |
\def\leftheadtext##1{\let\leftheadtext\savedef@ |
| 2688 |
\leftheadtoks\expandafter{\frills@\uppercasetext@{##1}}% |
| 2689 |
\mark{\the\leftheadtoks\noexpand\else\the\rightheadtoks} |
| 2690 |
\ifsyntax@\setboxz@h{\def\\{\unskip\space\ignorespaces}% |
| 2691 |
\headlinefont@##1}\fi}% |
| 2692 |
\nofrillscheck\leftheadtext} |
| 2693 |
% |
| 2694 |
\def\rightheadtext{\let\savedef@\rightheadtext |
| 2695 |
\def\rightheadtext##1{\let\rightheadtext\savedef@ |
| 2696 |
\rightheadtoks\expandafter{\frills@\uppercasetext@{##1}}% |
| 2697 |
\mark{\the\leftheadtoks\noexpand\else\the\rightheadtoks}% |
| 2698 |
\ifsyntax@\setboxz@h{\def\\{\unskip\space\ignorespaces}% |
| 2699 |
\headlinefont@##1}\fi}% |
| 2700 |
\nofrillscheck\rightheadtext} |
| 2701 |
% |
| 2702 |
% In the running heads, we redefine \chapter so that it only does |
| 2703 |
% a roman numeral (via \chapterno@) rather than "CHAPTER " + |
| 2704 |
% roman numeral. In the \nofrills case, however, e.g. for |
| 2705 |
% something like "Appendix A", the given text is printed without |
| 2706 |
% modification. And we redefine \\ because if the running head |
| 2707 |
% is taken from a title or section head it might possibly contain |
| 2708 |
% a \\ from the line-breaking done in the original text. |
| 2709 |
% |
| 2710 |
\headline={\def\\{\unskip\space\ignorespaces}\headlinefont@ |
| 2711 |
\def\chapter{% |
| 2712 |
\def\chapter##1{% |
| 2713 |
\frills@{\afterassignment\chapterno@ \chaptercount@=}##1.\space}% |
| 2714 |
\nofrillscheck\chapter}% |
| 2715 |
\ifodd\pageno \rightheadline \else \leftheadline\fi} |
| 2716 |
% |
| 2717 |
% Capitalization is used to indicate global scope of |
| 2718 |
% \NoRunningHeads and \NoPageNumbers, as is done by amstex.tex |
| 2719 |
% for \TagsOnLeft, etc. |
| 2720 |
% |
| 2721 |
\def\NoRunningHeads{\global\runheads@false\global\let\headmark\eat@} |
| 2722 |
\def\NoPageNumbers{\gdef\folio{}} |
| 2723 |
% |
| 2724 |
% Finally, we are ready for the \output routine. It is based on |
| 2725 |
% the \plainoutput routine, but the first page normally has the |
| 2726 |
% `Typeset by AmS-TeX' logo attached, and we add a switch for |
| 2727 |
% running heads. The default for running heads is "true". |
| 2728 |
% |
| 2729 |
\newif\iffirstpage@ \firstpage@true |
| 2730 |
\newif\ifrunheads@ \runheads@true |
| 2731 |
% |
| 2732 |
\output={\output@} |
| 2733 |
% |
| 2734 |
\newdimen\headlineheight \newdimen\headlinespace |
| 2735 |
\newdimen\dropfoliodepth |
| 2736 |
|
| 2737 |
% Distance of drop folio below the type block |
| 2738 |
\dropfoliodepth=1pc |
| 2739 |
% Actual height of normal running head text |
| 2740 |
\headlineheight=5pt |
| 2741 |
% Base-to-base distance from running head to first text line |
| 2742 |
\headlinespace=24pt |
| 2743 |
|
| 2744 |
% Changing the page width with \pagewidth automatically adjusts the |
| 2745 |
% caption width as well. \pagewidth is in AMSTEX.TEX but it sets the |
| 2746 |
% caption width to a different value than the one we want. |
| 2747 |
\def\pagewidth#1{\hsize#1% |
| 2748 |
\captionwidth@\hsize \advance\captionwidth@-2\indenti} |
| 2749 |
% |
| 2750 |
% Constraints on type block: |
| 2751 |
% ---Total width x height (default) = 30pc x 50.5pc |
| 2752 |
% ---Distance from running-head to first text line (base-to-base) is |
| 2753 |
% 24pt. |
| 2754 |
% ---Actual height of running head is approx. 5pt (height of cap |
| 2755 |
% letters in seven-point font). |
| 2756 |
% ---Drop folio on first page drops 1pc below the type block (i.e., |
| 2757 |
% below the 50.5pc measurement given above). |
| 2758 |
|
| 2759 |
\def\pageheight#1{% |
| 2760 |
\vsize=#1 % target height |
| 2761 |
\advance\vsize -\headlineheight % subtract height of running head |
| 2762 |
\advance\vsize -\headlinespace % subtract space below running head |
| 2763 |
\advance\vsize \topskip % but the 24pt is base-to-base, so we need to |
| 2764 |
% compensate for topskip |
| 2765 |
} |
| 2766 |
|
| 2767 |
\pagewidth{30pc}\pageheight{50.5pc} |
| 2768 |
|
| 2769 |
% Copyright info at the bottom of article opening pages is done as |
| 2770 |
% an insert separate from \footins because that is the natural way |
| 2771 |
% to achieve the placement we want (below all footnotes, but inside |
| 2772 |
% the text block). |
| 2773 |
\newinsert\copyins |
| 2774 |
% Space to allow for, between copyright info and preceding text: |
| 2775 |
% *** Different from AMS-LaTeX value, which is 1.5pc fixed |
| 2776 |
% *** (\bigskipamount=12pt plus 4pt minus 4pt; plain.tex) |
| 2777 |
\skip\copyins=12\p@ |
| 2778 |
% Maximum height of copyright info: Doesn't really matter, since height |
| 2779 |
% will always be controlled explicitly, but let's make sure this |
| 2780 |
% value referred to by TeX is less than page height anyway. |
| 2781 |
\dimen\copyins=40pc |
| 2782 |
% Magnification factor (1000 = 1.000) |
| 2783 |
\count\copyins=1000 |
| 2784 |
% |
| 2785 |
% \inslogo@ is called in \endtopmatter (unlike the method of |
| 2786 |
% amsppt.sty 2.1) |
| 2787 |
\def\inslogo@{\insert\copyins{\logo@}} |
| 2788 |
% |
| 2789 |
\def\logo@{\rightline{\eightpoint Typeset by \AmSTeX}} |
| 2790 |
% \nologo to turn off the `Typeset by AmS-TeX' note. |
| 2791 |
\def\nologo{\let\logo@\empty@ \let\inslogo@\empty@} |
| 2792 |
% |
| 2793 |
% First-page left or right headline: |
| 2794 |
\let\flheadline\hfil \let\frheadline\hfil |
| 2795 |
% |
| 2796 |
% Permit pages (e.g. book frontmatter) to be without headers or footers. |
| 2797 |
\newif\ifplain@ \plain@false |
| 2798 |
% |
| 2799 |
\def\output@{% |
| 2800 |
% Cancel possible junk from \ref if page break occurs between |
| 2801 |
% \ref...\endref [mjd,17-Aug-1995] |
| 2802 |
\def\break{\penalty-\@M}\let\par\endgraf |
| 2803 |
\shipout\vbox{% |
| 2804 |
\ifplain@ |
| 2805 |
\let\makeheadline\relax \let\makefootline\relax |
| 2806 |
\else |
| 2807 |
\iffirstpage@ \global\firstpage@false |
| 2808 |
\let\rightheadline\frheadline |
| 2809 |
\let\leftheadline\flheadline |
| 2810 |
\else |
| 2811 |
\ifrunheads@ \let\makefootline\relax |
| 2812 |
\else \let\makeheadline\relax \fi |
| 2813 |
\fi |
| 2814 |
\fi |
| 2815 |
\makeheadline \pagebody \makefootline |
| 2816 |
}% |
| 2817 |
\advancepageno \ifnum\outputpenalty>-\@MM\else\dosupereject\fi |
| 2818 |
} |
| 2819 |
% |
| 2820 |
% Redefine \pagecontents to add \copyins material |
| 2821 |
% *** \skip\footins=\bigskipamount (12pt plus 4pt minus 4pt; plain.tex) |
| 2822 |
% *** In AMS-LaTeX, value = 7pt plus11pt |
| 2823 |
\def\pagecontents{% |
| 2824 |
\ifvoid\topins\else\unvbox\topins\fi |
| 2825 |
\dimen@=\dp\@cclv \unvbox\@cclv % open up \box255 |
| 2826 |
\ifvoid\footins |
| 2827 |
\else % footnote info is present |
| 2828 |
\vskip\skip\footins |
| 2829 |
\footnoterule |
| 2830 |
\unvbox\footins |
| 2831 |
\fi |
| 2832 |
\ifr@ggedbottom \kern-\dimen@ \vfil \fi |
| 2833 |
% \skip\copyins is visual space between top of copyright info and |
| 2834 |
% bottom of preceding text. |
| 2835 |
\ifvoid\copyins \else \vskip\skip\copyins \unvbox\copyins \fi |
| 2836 |
} |
| 2837 |
% |
| 2838 |
% \makeheadline is called at the top of a vbox with the page body to |
| 2839 |
% follow. Restore default \leftskip to avoid indentation when the |
| 2840 |
% page builder activates in the middle of a roster |
| 2841 |
\def\makeheadline{% |
| 2842 |
\leftskip=\z@ |
| 2843 |
\vbox{% |
| 2844 |
% We smash the running head inside a vbox of the target height, to |
| 2845 |
% ensure that the base of the running head always falls at the same |
| 2846 |
% height in relation to the type block. |
| 2847 |
\vbox to\headlineheight{\vss |
| 2848 |
% If \headline is empty, the \hskip here prevents an `Underfull hbox' |
| 2849 |
% message. If \headline contains an \hfil or \hfill, the \hskip here |
| 2850 |
% will be ignored. |
| 2851 |
\hbox to\hsize{\hskip\z@ plus\hsize\the\headline}% |
| 2852 |
\kern-\prevdepth |
| 2853 |
}% |
| 2854 |
\vskip\headlinespace |
| 2855 |
\vskip-\topskip |
| 2856 |
}% |
| 2857 |
\nointerlineskip |
| 2858 |
} |
| 2859 |
% |
| 2860 |
% Assumption: called in vmode after the box containing the page body; |
| 2861 |
% thus the depth of the preceding box = depth of last line in the |
| 2862 |
% main text (except in the raggedbottom case). |
| 2863 |
\def\makefootline{% |
| 2864 |
\relax\ifdim\prevdepth>\z@ \ifdim\prevdepth>\maxdepth \else |
| 2865 |
\vskip-\prevdepth \fi\fi |
| 2866 |
\nointerlineskip |
| 2867 |
\vbox to\z@{\hbox{}% |
| 2868 |
\baselineskip\dropfoliodepth |
| 2869 |
\hbox to\hsize{\hskip\z@ plus\hsize\the\footline}% |
| 2870 |
\vss}} |
| 2871 |
|
| 2872 |
% |
| 2873 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2874 |
% -16- HYPHENATION EXCEPTIONS |
| 2875 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2876 |
\message{hyphenation exceptions (U.S. English)} |
| 2877 |
% Add some common hyphenation exceptions, from TUGboat files, |
| 2878 |
% 20-NOV-1989. For more details see TUGboat vol 10, no 3, |
| 2879 |
% November 1989, pp. 336--341. Many words from the TUGboat list |
| 2880 |
% that seemed less likely to occur in mathematical text have been |
| 2881 |
% omitted because hyphenation exceptions use up memory (most |
| 2882 |
% versions of TeX currently have a limit of 307 on hyphenation |
| 2883 |
% exceptions; each added hyphenation exception uses up something |
| 2884 |
% like 2 extra words of main memory as well). The list of |
| 2885 |
% hyphenations for proper names could be expanded forever if room |
| 2886 |
% permitted; we restrict ourselves to a rather short, extremely |
| 2887 |
% arbitrary list. |
| 2888 |
% |
| 2889 |
% Note: The hyphenation rules of British English differ in some |
| 2890 |
% particulars from the U.S. rules. |
| 2891 |
% |
| 2892 |
\hyphenation{acad-e-my acad-e-mies af-ter-thought anom-aly anom-alies |
| 2893 |
an-ti-deriv-a-tive an-tin-o-my an-tin-o-mies apoth-e-o-ses |
| 2894 |
apoth-e-o-sis ap-pen-dix ar-che-typ-al as-sign-a-ble as-sist-ant-ship |
| 2895 |
as-ymp-tot-ic asyn-chro-nous at-trib-uted at-trib-ut-able bank-rupt |
| 2896 |
bank-rupt-cy bi-dif-fer-en-tial blue-print busier busiest |
| 2897 |
cat-a-stroph-ic cat-a-stroph-i-cally con-gress cross-hatched data-base |
| 2898 |
de-fin-i-tive de-riv-a-tive dis-trib-ute dri-ver dri-vers eco-nom-ics |
| 2899 |
econ-o-mist elit-ist equi-vari-ant ex-quis-ite ex-tra-or-di-nary |
| 2900 |
flow-chart for-mi-da-ble forth-right friv-o-lous ge-o-des-ic |
| 2901 |
ge-o-det-ic geo-met-ric griev-ance griev-ous griev-ous-ly |
| 2902 |
hexa-dec-i-mal ho-lo-no-my ho-mo-thetic ideals idio-syn-crasy |
| 2903 |
in-fin-ite-ly in-fin-i-tes-i-mal ir-rev-o-ca-ble key-stroke |
| 2904 |
lam-en-ta-ble light-weight mal-a-prop-ism man-u-script mar-gin-al |
| 2905 |
meta-bol-ic me-tab-o-lism meta-lan-guage me-trop-o-lis |
| 2906 |
met-ro-pol-i-tan mi-nut-est mol-e-cule mono-chrome mono-pole |
| 2907 |
mo-nop-oly mono-spline mo-not-o-nous mul-ti-fac-eted mul-ti-plic-able |
| 2908 |
non-euclid-ean non-iso-mor-phic non-smooth par-a-digm par-a-bol-ic |
| 2909 |
pa-rab-o-loid pa-ram-e-trize para-mount pen-ta-gon phe-nom-e-non |
| 2910 |
post-script pre-am-ble pro-ce-dur-al pro-hib-i-tive pro-hib-i-tive-ly |
| 2911 |
pseu-do-dif-fer-en-tial pseu-do-fi-nite pseu-do-nym qua-drat-ic |
| 2912 |
quad-ra-ture qua-si-smooth qua-si-sta-tion-ary qua-si-tri-an-gu-lar |
| 2913 |
quin-tes-sence quin-tes-sen-tial re-arrange-ment rec-tan-gle |
| 2914 |
ret-ri-bu-tion retro-fit retro-fit-ted right-eous right-eous-ness |
| 2915 |
ro-bot ro-bot-ics sched-ul-ing se-mes-ter semi-def-i-nite |
| 2916 |
semi-ho-mo-thet-ic set-up se-vere-ly side-step sov-er-eign spe-cious |
| 2917 |
spher-oid spher-oid-al star-tling star-tling-ly sta-tis-tics |
| 2918 |
sto-chas-tic straight-est strange-ness strat-a-gem strong-hold |
| 2919 |
sum-ma-ble symp-to-matic syn-chro-nous topo-graph-i-cal tra-vers-a-ble |
| 2920 |
tra-ver-sal tra-ver-sals treach-ery turn-around un-at-tached |
| 2921 |
un-err-ing-ly white-space wide-spread wing-spread wretch-ed |
| 2922 |
wretch-ed-ly Brown-ian Eng-lish Euler-ian Feb-ru-ary Gauss-ian |
| 2923 |
Grothen-dieck Hamil-ton-ian Her-mit-ian Jan-u-ary Japan-ese Kor-te-weg |
| 2924 |
Le-gendre Lip-schitz Lip-schitz-ian Mar-kov-ian Noe-ther-ian |
| 2925 |
No-vem-ber Rie-mann-ian Schwarz-schild Sep-tem-ber} |
| 2926 |
% |
| 2927 |
% Initializations |
| 2928 |
% |
| 2929 |
% A "style initialization" file, amsppt.sti, is loaded in, in order |
| 2930 |
% to use the same version of amsppt.sty for both production and |
| 2931 |
% distribution. |
| 2932 |
% |
| 2933 |
\input amsppt.sti |
| 2934 |
% |
| 2935 |
% Write an empty line on screen to tidy up: |
| 2936 |
\W@{} |
| 2937 |
% |
| 2938 |
% Now we restore the catcode for @ that was in effect before this |
| 2939 |
% file. Note that we do not use \filename here, even though we did |
| 2940 |
% at the beginning of this file, because in the absence of a proper |
| 2941 |
% filename stack mechanism, we cannot be sure (taking into account |
| 2942 |
% possible future changes in the contents of amsppt.sty) that an |
| 2943 |
% intervening input file did not change \filename to another value. |
| 2944 |
% |
| 2945 |
\csname amsppt.sty\endcsname |
| 2946 |
% |
| 2947 |
% And that's it. |
| 2948 |
\endinput |
| 2949 |
% |
| 2950 |
% |
| 2951 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2952 |
% -17- NOTES |
| 2953 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2954 |
|
| 2955 |
Abbreviations used in this file: |
| 2956 |
|
| 2957 |
From plain.tex: |
| 2958 |
|
| 2959 |
\p@ 1pt, dimen register |
| 2960 |
\z@ 0pt, dimen register, can be used also as a number |
| 2961 |
\m@ne -1, count register |
| 2962 |
|
| 2963 |
Chardefs and mathchardefs (these control sequences can be used as |
| 2964 |
numbers): |
| 2965 |
|
| 2966 |
\@ne 1 |
| 2967 |
\tw@ 2 |
| 2968 |
\thr@@ 3 |
| 2969 |
\active 13 |
| 2970 |
\sixt@@n 16 |
| 2971 |
\@cclv 255 |
| 2972 |
\@cclvi 256 |
| 2973 |
\@m 1000 |
| 2974 |
\@M 10000 |
| 2975 |
\@MM 20000 |
| 2976 |
|
| 2977 |
Scratch registers: |
| 2978 |
|
| 2979 |
\countdef\count@=255 |
| 2980 |
\dimendef\dimen@=0 |
| 2981 |
\dimendef\dimen@i=1 global only |
| 2982 |
\dimendef\dimen@ii=2 |
| 2983 |
\skipdef\skip@=0 |
| 2984 |
\toksdef\toks@=0 |
| 2985 |
|
| 2986 |
Other: |
| 2987 |
|
| 2988 |
\m@th sets \mathsurround=0pt |
| 2989 |
\z@skip 0pt plus 0pt minus 0pt, skip register |
| 2990 |
\hideskip -1000pt plus 1fill, skip register |
| 2991 |
\centering 0pt plus 1000pt minus 1000pt, skip register |
| 2992 |
\voidb@x permanently void box register |
| 2993 |
\endgraf same as \par, but will be accepted in arguments where |
| 2994 |
\par would cause an error. |
| 2995 |
|
| 2996 |
\space a macro whose expansion is a space token |
| 2997 |
\empty@ a defined macro with a null expansion |
| 2998 |
\null an \hbox with null contents |
| 2999 |
|
| 3000 |
From amstex.tex: |
| 3001 |
|
| 3002 |
\W@ \immediate\write16 |
| 3003 |
\eat@ gobbles next token or group in braces |
| 3004 |
\strip@ gets rid of trailing space from given argument |
| 3005 |
\hashtoks@ token register, containing # |
| 3006 |
\centering@ skip register, 0pt plus 1000pt |
| 3007 |
\rightappend@ ... \to ... Append to a token list. |
| 3008 |
\space@ a space token (\let equal, not a macro like \space) |
| 3009 |
\relaxnext@ \let\next=\relax |
| 3010 |
\ex@ dimen, related to x-height, roughly equal to 1pt |
| 3011 |
\hexnumber@ convert hex digit from decimal form to hex equivalent |
| 3012 |
\font@ font assignment, like \font but modified to make |
| 3013 |
syntax check work |
| 3014 |
\macro@@ used for stripping off the first part of the result |
| 3015 |
of a \meaning command. |
| 3016 |
|
| 3017 |
\def\FN@{\futurelet\next} |
| 3018 |
\def\DN@{\def\next@} |
| 3019 |
\def\DNii@{\def\nextii@} |
| 3020 |
\def\RIfM@{\relax\ifmmode} |
| 3021 |
\def\RIfMIfI@{\relax\ifmmode\ifinner} |
| 3022 |
\def\setboxz@h{\setbox\z@\hbox} |
| 3023 |
\def\wdz@{\wd\z@} |
| 3024 |
\def\boxz@{\box\z@} |
| 3025 |
\def\setbox@ne{\setbox\@ne} |
| 3026 |
\def\wd@ne{\wd\@ne} |
| 3027 |
|
| 3028 |
More scratch registers: |
| 3029 |
|
| 3030 |
\toks@@ |
| 3031 |
\count@@ |
| 3032 |
\count@@@ |
| 3033 |
% |
| 3034 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3035 |
% -18- APPENDIX: NOTES ON VERSION 2.1 |
| 3036 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3037 |
|
| 3038 |
---\curraddr was added, for giving the current address of an author, |
| 3039 |
if different from the address given in \address. |
| 3040 |
|
| 3041 |
---\rom was added, for preventing unwanted italicization of certain |
| 3042 |
things such as parentheses or numbers, in theorems and other italic |
| 3043 |
passages. \rom automatically inserts italic corrections. |
| 3044 |
|
| 3045 |
---The implementation of \nofrills was completely changed, to provide |
| 3046 |
better error messages for a missing or misspelled \endkeywords or |
| 3047 |
similar end command, when reading a delimited argument. The error |
| 3048 |
message is now one of |
| 3049 |
|
| 3050 |
! Forbidden control sequence found while scanning use of \keywords. |
| 3051 |
! Paragraph ended before \keywords was complete. |
| 3052 |
|
| 3053 |
Previously the message would have had the same form, but would have |
| 3054 |
referred to a mysterious control sequence ``\next@'' instead of |
| 3055 |
\keywords. |
| 3056 |
|
| 3057 |
This change also eliminates a longstanding, very minor bug |
| 3058 |
(\usualspace@ didn't work if it was stored in something such as |
| 3059 |
\keywords@ for later use, because of its dependence on the |
| 3060 |
\ifnofrills@ switch). |
| 3061 |
|
| 3062 |
---Multiple \thanks commands in the top matter will now produce |
| 3063 |
multiple acknowledgment footnotes instead of discarding all but the |
| 3064 |
last one. A period is no longer added automatically at the end of a |
| 3065 |
\thanks. |
| 3066 |
|
| 3067 |
---\subjclass was updated to use the date (1991) of the current |
| 3068 |
Mathematics Subject Classification scheme. |
| 3069 |
|
| 3070 |
---\widestnumber\item now works as claimed in the User's Guide. |
| 3071 |
|
| 3072 |
---The missing \par in \penaltyandskip@ was added. |
| 3073 |
|
| 3074 |
---Additional checks were added for runaway \proclaim, \definition, |
| 3075 |
\ref, \roster, etc. The internal macro \runaway@ was changed to make |
| 3076 |
its usage more consistent and robust; in the process its name was |
| 3077 |
changed to \add@missing (and as the name suggests, it now tries to |
| 3078 |
recover by adding the missing \end... command). |
| 3079 |
|
| 3080 |
---The bibliography macros were substantially modified to correct |
| 3081 |
another longstanding bug: line breaks after explicit hyphens, |
| 3082 |
mathbins, and mathrels were inhibited. This also involved changing the |
| 3083 |
\ref-specific version of \nofrills. Backward compatibility (with |
| 3084 |
version 2.0) is not complete with respect to \nofrills in the |
| 3085 |
bibliography macros. This seems best, however, not only to avoid |
| 3086 |
extra implementation difficulties, but also because the user syntax in |
| 3087 |
version 2.0 was inferior. \nofrills now should always follow |
| 3088 |
immediately after the name of the field to which it applies, e.g., |
| 3089 |
\transl\nofrills, or \paper\nofrills. Note that this is more |
| 3090 |
consistent with the usage of \nofrills outside of the references |
| 3091 |
section. \nofrills will cause all the "frills" such as the parentheses |
| 3092 |
around years in journal article citations, or words like "eds." or |
| 3093 |
"vol." that are supplied automatically, to be omitted for the given |
| 3094 |
field. In addition, it will suppress the automatic punctuation at the |
| 3095 |
end of the field, if any. |
| 3096 |
|
| 3097 |
The macro \refdef@ is gone; instead, to define a new reference |
| 3098 |
element, you need a definition of the form |
| 3099 |
|
| 3100 |
\newbox\jourbox@ |
| 3101 |
\def\jour{\makerefbox\jour\jourbox@{\it}} |
| 3102 |
|
| 3103 |
where \makerefbox is a macro with three arguments: #1 is the name of |
| 3104 |
the calling macro (for use in error messages, if need be), #2 is the |
| 3105 |
box in which the contents of the \jour field should be stored, and #3 |
| 3106 |
is formatting information (primarily font changes) to be inserted at |
| 3107 |
the beginning of the box. However, as before, punctuation and words |
| 3108 |
such as "pp.", "eds.", or "vol." that are to be inserted automatically |
| 3109 |
are handled by \endref@. |
| 3110 |
|
| 3111 |
Therefore, to change such frills, or the ordering of the parts of a |
| 3112 |
reference, you need to modify \endref@. The macros \ppunbox@ and |
| 3113 |
\commaunbox@ should normally be used to unpack a box, because they |
| 3114 |
automatically take care of complications like \nofrills, closing |
| 3115 |
quotes, or line breaks. \ppunbox@ takes four arguments: |
| 3116 |
|
| 3117 |
#1: punctuation that should come before a line break or |
| 3118 |
closing quotes of a previous field |
| 3119 |
#2: other material such as "(" or "vol." that should be added |
| 3120 |
at the beginning of the current field |
| 3121 |
#3: the name of the box to be unpacked |
| 3122 |
#4: other material such as ")" that should be added |
| 3123 |
at the end of the current field |
| 3124 |
|
| 3125 |
For example, the command to unpack the \yr field is: |
| 3126 |
|
| 3127 |
\ppunbox@\empty@{ (}\yrbox@)% |
| 3128 |
|
| 3129 |
Note the use of \empty@ to specify no preceding comma or other |
| 3130 |
punctuation. |
| 3131 |
|
| 3132 |
\commaunbox@ is merely an abbreviation for |
| 3133 |
|
| 3134 |
\ppunbox@,\space\xxxbox@\empty@ |
| 3135 |
|
| 3136 |
The switches \ifpaperquotes@ and \ifbookquotes@ are gone. If quotes |
| 3137 |
are to be added around a particular part of a reference, it should be |
| 3138 |
done in \endref@ using \ppunbox@ and \endquotes as follows: |
| 3139 |
|
| 3140 |
\ppunbox@,{ ``}\xxxbox@\endquotes |
| 3141 |
|
| 3142 |
\endquotes does not typeset the ending quotes immediately (because we |
| 3143 |
don't know yet whether to insert a comma or other punctuation before |
| 3144 |
the ending quotes). Instead, it sets a flag to be used in subsequent |
| 3145 |
processing. |
| 3146 |
|
| 3147 |
---A \refstyle command was added to allow users to specify one of the |
| 3148 |
three different reference styles most commonly used in AMS |
| 3149 |
publications: letter labels in square brackets; unnumbered; and |
| 3150 |
numbered (denoted A, B, and C, respectively). The syntax is |
| 3151 |
"\refstyle{A}". Style C, numbered with arabic numerals, is the default |
| 3152 |
selected by amsppt.sty. Eventually, phasing in the \refstyle command |
| 3153 |
will allow the formatting for cites in the main text to be |
| 3154 |
automatically linked with the corresponding references in the |
| 3155 |
bibliography. (Since the bibliography style could also affect the |
| 3156 |
style of cites, the \refstyle command should be placed in the preamble |
| 3157 |
of a document.) Also, eventually \key could be used for all reference |
| 3158 |
labels, and the \no command will be unnecessary, because its current |
| 3159 |
use is merely to indicate different formatting for the reference |
| 3160 |
number. |
| 3161 |
|
| 3162 |
---\miscnote was added, and used in the implementation of \toappear, |
| 3163 |
so that \toappear and \finalinfo would not be mutually exclusive. |
| 3164 |
\miscnote might also be used for things like "preprint" or |
| 3165 |
"submitted". Unlike \finalinfo, \miscnote automatically adds |
| 3166 |
parentheses. |
| 3167 |
|
| 3168 |
---\procinfo was added, to give place and date where the meeting |
| 3169 |
took place, for proceedings volumes. |
| 3170 |
|
| 3171 |
---\eds or \ed information will now be used in place of an author's |
| 3172 |
name, if \by is absent. This would be for collections or proceedings |
| 3173 |
volumes that are cited as a whole, instead of citing a single paper |
| 3174 |
within the volume. |
| 3175 |
% |
| 3176 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3177 |
% -19- APPENDIX: NOTES ON VERSIONS 2.1a, 2.1b, ... |
| 3178 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3179 |
|
| 3180 |
Users that have amsppt.sty built into their amstex format file will |
| 3181 |
need to rebuild their format file if they get a newer version of |
| 3182 |
amsppt.sty. |
| 3183 |
|
| 3184 |
Version 2.1a: |
| 3185 |
|
| 3186 |
---Added a test so that amsppt.sty will give an error message if it's |
| 3187 |
about to be loaded and a different version of amsppt.sty was preloaded |
| 3188 |
in the format file. |
| 3189 |
|
| 3190 |
---Added code to compensate for a bug in version 2.1 that left |
| 3191 |
\amsppt.sty = \endinput. Probably not necessary---unless the error |
| 3192 |
message described above is changed in the future to just a warning |
| 3193 |
message. |
| 3194 |
|
| 3195 |
---Added \loadmsam and \loadmsbm before the call to \UseAMSsymbols, |
| 3196 |
so that amsppt.sty 2.1 will work even with an AMSTeX 2.0 format file. |
| 3197 |
|
| 3198 |
---Changed the definition of \magnification (from plain.tex) so that |
| 3199 |
it won't reset the page dimensions to 6.5 by 9 true inches if |
| 3200 |
it is used but will behave in a way that's more appropriate |
| 3201 |
for the amsppt page dimensions. |
| 3202 |
|
| 3203 |
---Switched to using box 0 instead of \keybox@ for measuring a \key |
| 3204 |
given with the \widestnumber command. This prevents a misnumbering |
| 3205 |
problem that occurred in rare cases (e.g., an unnumbered reference |
| 3206 |
following numbered references). |
| 3207 |
|
| 3208 |
---Changed erroneous \proclaimfont@ to \proclaimheadfont@ and |
| 3209 |
\demofont@ to \remarkheadfont@ in the definition of \Monograph. Note: |
| 3210 |
This means that fonts used for \remark, \demo, \proclaim \definition, |
| 3211 |
\example, were wrong for any document that used \Monograph with amsppt |
| 3212 |
2.1; switching to amsppt version 2.1a will make the fonts correct |
| 3213 |
according to AMS standard monograph style, but with a slight chance of |
| 3214 |
changing line breaks. |
| 3215 |
|
| 3216 |
---Added \pagenumwd and put the table-of-contents definition of |
| 3217 |
\page inside the \toc group so that it will not conflict with |
| 3218 |
the normal definition of \page if a single document contains |
| 3219 |
both \toc (with \widestnumber\page used) and \Refs. |
| 3220 |
|
| 3221 |
---Added default definition for \leftskip@ to handle rare cases. |
| 3222 |
Added \envir@stack\endroster in \Runinitem to prevent spurious |
| 3223 |
"missing \endroster" error every time it's used. |
| 3224 |
|
| 3225 |
---Change handling of \key and \no to better handle the complications |
| 3226 |
related to \refstyle and the need to maintain backward compatibility. |
| 3227 |
(I.e., \refstyle should automatically be reset to C if \no is used.) |
| 3228 |
|
| 3229 |
---Added \procpaper@false and \book@false where appropriate in \book, |
| 3230 |
\jour, \inbook to handle (rare?) \moreref cases where the additional |
| 3231 |
ref is not the same type as the first ref. Switched around \moreref |
| 3232 |
and \transl, a cosmetic change but makes the code easier to |
| 3233 |
understand. (It seems reasonable for \transl to be based on \moreref, |
| 3234 |
but rather odd for \moreref to be based on \transl, as in version |
| 3235 |
2.1.) |
| 3236 |
|
| 3237 |
---Added \ifvoid test in \makerefbox to give an error message |
| 3238 |
if the same tag is used twice or mutually exclusive tags (e.g., |
| 3239 |
\book and \inbook) are used. |
| 3240 |
|
| 3241 |
---Added some code to print out editors and pages information |
| 3242 |
if given even when according to AMS style it should normally |
| 3243 |
be omitted. |
| 3244 |
|
| 3245 |
Version 2.1b: |
| 3246 |
|
| 3247 |
---Restored the old \nologo command by popular demand. |
| 3248 |
|
| 3249 |
---Added \linespacing command to facilitate changing line spacing |
| 3250 |
globally: \linespacing{2.0} increases line spacing by a factor of 2, |
| 3251 |
similarly \linespacing{1.5} or \linespacing{2.3} for arbitrary |
| 3252 |
factors. |
| 3253 |
|
| 3254 |
---Italic font is now used instead of slanted throughout (for e.g. |
| 3255 |
\proclaim). |
| 3256 |
|
| 3257 |
---Omitting \by in a \ref is now possible without getting unwanted |
| 3258 |
punctuation at the very beginning after the key. |
| 3259 |
|
| 3260 |
---\rom now handles preceding ~, not just preceding space. |
| 3261 |
|
| 3262 |
---\subsubheadfont@ added to facilitate font switching. |
| 3263 |
|
| 3264 |
---\document does some font setup if \topmatter is omitted. |
| 3265 |
|
| 3266 |
---Fixed a problem with running heads and \chapter\nofrills. |
| 3267 |
|
| 3268 |
---Eliminated spurious error message from \roster \widestnumber inside |
| 3269 |
a \proclaim. |
| 3270 |
|
| 3271 |
Version 2.1c: |
| 3272 |
|
| 3273 |
---Fixed a bug introduced in version 2.1b: lost punctuation and space |
| 3274 |
at the beginning of a \moreref. |
| 3275 |
|
| 3276 |
|
| 3277 |
Version 2.1d: |
| 3278 |
|
| 3279 |
---Minor corrections to \PSAMSFonts, documentation |
| 3280 |
|
| 3281 |
---Fixed \linespacing bug: the vrule inside \strutbox did not have |
| 3282 |
zero width. |
| 3283 |
|
| 3284 |
Version 2.1e: |
| 3285 |
|
| 3286 |
---Added \MR, \AMSPPS commands |
| 3287 |
|
| 3288 |
---Added some code to \output@ to reset \break, \par in case output |
| 3289 |
routine is invoked inside \ref ... \endref *and* something added by the |
| 3290 |
output routine (e.g., journal logo on first page) uses them. |
| 3291 |
|
| 3292 |
Version 2.1f: |
| 3293 |
|
| 3294 |
---Moved MR and AMSPPS numbers after final period. |
| 3295 |
|
| 3296 |
---Split part of \enddocument into separate \enddocument@text for easier |
| 3297 |
customization. |
| 3298 |
|
| 3299 |
Version 2.1g (January 1997 distribution): |
| 3300 |
|
| 3301 |
---Added code to initialize PSAMSFonts-sensitive fonts correctly regardless |
| 3302 |
of which fonts are being used. |
| 3303 |
|
| 3304 |
---Moved loading of AMSFonts and symbol names to initialization block at |
| 3305 |
end of file. |
| 3306 |
|
| 3307 |
---In \makeheadline, added \leftskip=\z@ to avoid indentation of journal |
| 3308 |
logo when end of page 1/beginning of page 2 contains a roster. |
| 3309 |
|
| 3310 |
---Added \urladdr to other author addresses. |
| 3311 |
|
| 3312 |
---Added \refsheadfont@ to permit font change without redefinition. |
| 3313 |
|
| 3314 |
---Added \refstyle@ to permit correct initialization of indent with |
| 3315 |
\widestnumber when \refstyle C is used. |
| 3316 |
|
| 3317 |
---Added \inslogo@ to \endtopmatter to drop in insert with AMS-TeX logo or |
| 3318 |
copyright notice. |
| 3319 |
|
| 3320 |
---Added \preproclaimskip, \postproclaimskip, \remarkskip, \postdemoskip, |
| 3321 |
\predefinitionskip, \postdefinitionskip to permit spacing variations without |
| 3322 |
redefinitions. |
| 3323 |
|
| 3324 |
---Revamped calculation of \pageheight to derive \vsize from known dimensions. |
| 3325 |
|
| 3326 |
---Revamped output routine for simplicity, and to accept AMS-TeX logo / |
| 3327 |
copyright block as a bottom insertion rather than as an element between the |
| 3328 |
page body and the footline; this makes it possible to use a single \pageheight |
| 3329 |
on all pages. |
| 3330 |
|
| 3331 |
---Redefined \pagecontents to include logo/copyright insert, \copyins. |
| 3332 |
|
| 3333 |
---Redefined \makeheadline to reset formatting parameters (\leftskip, etc.) |
| 3334 |
to avoid problems if page makeup occurs in the middle of (say) a \roster, |
| 3335 |
and to ensure that the running head is always the same height, regardless |
| 3336 |
of the presence of accents or math. |
| 3337 |
|
| 3338 |
---Redefined \makefootline for similar reasons of consistency. |
| 3339 |
|
| 3340 |
---Moved initialization of AMSFonts to end of file. |
| 3341 |
|
| 3342 |
---Adjusted indentation of code to clarify structure and nesting. |
| 3343 |
|
| 3344 |
---Added test for the presence of a local initialization file (amsppt.sti); |
| 3345 |
if present, input it, and if not, carry out initialization suitable for the |
| 3346 |
use of this style by general users. |
| 3347 |
|
| 3348 |
Version 2.1h (January 1997 distribution): |
| 3349 |
|
| 3350 |
---Added a link for an initialization file, amsppt.sti; this permits easier |
| 3351 |
tailoring of certain features (e.g. use of PSAMSFONTS, documented in the |
| 3352 |
AMS-TeX User's Guide), as well as use in AMS production of publication-time |
| 3353 |
local features, without requiring a separate version of amsppt.sty. |
| 3354 |
|
| 3355 |
---Added \Refsname to permit publication-specific initialization of variant |
| 3356 |
references title without requiring full redefinition of \Refs. |
| 3357 |
|
| 3358 |
---Added \remarkfont and \definitionfont instead of \rm to allow flexibility. |
| 3359 |
|
| 3360 |
---Removed ninepoint; if this were to be needed, it's likely that enough |
| 3361 |
other changes would also be needed that the result would be a different style. |
| 3362 |
% |
| 3363 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3364 |
% -20- APPENDIX: NOTES ON VERSIONS 2.2 |
| 3365 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3366 |
|
| 3367 |
Version 2.2 (August 2001 distribution): |
| 3368 |
|
| 3369 |
---Added @ to the plain list of \dospecials, to make it behave better in |
| 3370 |
verbatim, e-mail addresses, and URL's. |
| 3371 |
|
| 3372 |
---Added commands \savecat and \restorecat to make it easy to save and |
| 3373 |
restore the catcode value of any character, most commonly @. |
| 3374 |
|
| 3375 |
---Replaced explicit font for addresses by \addressfont@. |
| 3376 |
|
| 3377 |
---Check address fields, thanks and subject classification for presence of |
| 3378 |
data, and omit if empty. |
| 3379 |
|
| 3380 |
---Added \subjclassyear to identify version of classification scheme; check |
| 3381 |
for valid years (1991, 2000), default to 1991 for backward compatibility |
| 3382 |
|
| 3383 |
---Added a check for the presence of \document line; report at \enddocument |
| 3384 |
if missing. |
| 3385 |
|
| 3386 |
---Documented a bug in the application of space between two adjacent theorems; |
| 3387 |
didn't fix it (compatibility: would change page breaks). |
| 3388 |
|
| 3389 |
---Added \if@qedhere to support feature in AMS document styles that permits |
| 3390 |
location of end-of-proof box to be varied. |
| 3391 |
|
| 3392 |
---Removed period at end of caption if it is not followed by text. |
| 3393 |
|
| 3394 |
---Added a warning to \footnote inside references; footnotes inside references |
| 3395 |
disappear, taking with them the reference element to which they are attached. |
| 3396 |
|
| 3397 |
---Removed \foliofont@ from definition of \folio and added it instead to the |
| 3398 |
running heads, permitting "clean" page numbers to be output with indexing |
| 3399 |
terms when an auxiliary package such as index.tex (from texsis) is used. |