| 1 |
%% @texfile{ |
| 2 |
%% filename = "amsppt1.tex", |
| 3 |
%% version = "2.2", |
| 4 |
%% date = "2001/08/07", |
| 5 |
%% time = "13:17:37 EDT", |
| 6 |
%% checksum = "11263 141 693 5811", |
| 7 |
%% filetype = "AMS-TeX: option", |
| 8 |
%% author = "American Mathematical Society", |
| 9 |
%% copyright = "Copyright 1991, 2001 American Mathematical Society, |
| 10 |
%% all rights reserved. Copying of this file is |
| 11 |
%% authorized only if either: |
| 12 |
%% (1) you make absolutely no changes to your copy |
| 13 |
%% including name; OR |
| 14 |
%% (2) if you do make changes, you first rename it |
| 15 |
%% to some other name.", |
| 16 |
%% address = "American Mathematical Society, |
| 17 |
%% Technical Support, |
| 18 |
%% Publications Technical Group, |
| 19 |
%% P. O. Box 6248, |
| 20 |
%% Providence, RI 02940, |
| 21 |
%% USA", |
| 22 |
%% telephone = "401-455-4080 or (in the USA and Canada) |
| 23 |
%% 800-321-4AMS (321-4267)", |
| 24 |
%% FAX = "401-331-3842", |
| 25 |
%% email = "[email protected] (Internet)", |
| 26 |
%% codetable = "ISO/ASCII", |
| 27 |
%% keywords = "amstex, ams-tex, tex", |
| 28 |
%% abstract = "This is a a conversion file that makes documents |
| 29 |
%% prepared for AMSPPT version 1 compatible with AMSPPT |
| 30 |
%% version 2.0+. The statement |
| 31 |
%% \input amsppt1 |
| 32 |
%% needs to be added after the \documentstyle line in each |
| 33 |
%% document to be converted.", |
| 34 |
%% docstring = "The checksum field above contains a CRC-16 checksum |
| 35 |
%% as the first value, followed by the equivalent of |
| 36 |
%% the standard UNIX wc (word count) utility output of |
| 37 |
%% lines, words, and characters. This is produced by |
| 38 |
%% Robert Solovay's checksum utility.", |
| 39 |
%% } |
| 40 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 41 |
% |
| 42 |
% We start by testing the control sequence \amsppt1.tex so that we |
| 43 |
% can prevent accidentally loading this file twice. |
| 44 |
\expandafter\ifx\csname amsppt1.tex\endcsname\relax |
| 45 |
\else\endinput\fi |
| 46 |
% Now we define \amsppt1.tex to handle catcoding of the @ sign. |
| 47 |
\expandafter\edef\csname amsppt1.tex\endcsname{% |
| 48 |
\catcode`\noexpand\@=\the\catcode`\@\space} |
| 49 |
\catcode`\@=11 |
| 50 |
% |
| 51 |
|
| 52 |
\let\ad@\address \def\address#1{\ad@#1\endaddress} |
| 53 |
\let\da@\date \def\date#1{\da@#1\enddate} |
| 54 |
\let\tk@\thanks \def\thanks#1{\tk@#1\endthanks} |
| 55 |
\let\kw@\keywords \def\keywords#1{\kw@#1\endkeywords} |
| 56 |
\let\su@\subjclass \def\subjclass#1{\su@#1\endsubjclass} |
| 57 |
\let\ab@\abstract \long\def\abstract#1{\ab@#1\endabstract} |
| 58 |
% |
| 59 |
% If we assume that documents that use amsppt1.tex will not be |
| 60 |
% intended for submission to the AMS, then it's better to revert to |
| 61 |
% the old page dimensions: |
| 62 |
% |
| 63 |
\parindent10\p@ \hsize26pc \vsize42pc |
| 64 |
\captionwidth@\hsize \advance\[email protected] |
| 65 |
% |
| 66 |
\def\nologo{\let\logo@\empty} |
| 67 |
% |
| 68 |
% Backward compatibility for \subheading and \heading are already |
| 69 |
% provided in AMSPPT 2.0 because (unlike the topmatter items) there |
| 70 |
% is no name conflict. |
| 71 |
% |
| 72 |
% In AMSPPT version 2.0+ \endRefs is expected at the end of the |
| 73 |
% References section. We install a test in \enddocument |
| 74 |
% to let us know if \endRefs needs to be added. |
| 75 |
% Just in case someone has amsppt1.tex but not amsppt.sty vers. 2.2 |
| 76 |
% we first make the change in the older version of \enddocument |
| 77 |
% and then use a test to prevent the newer version from being |
| 78 |
% read. |
| 79 |
\outer\def\enddocument{% |
| 80 |
\runaway@{proclaim}% |
| 81 |
% To test whether we are inside a \Refs section, we check |
| 82 |
% the \sfcode of the period. Just in case someone has |
| 83 |
% used \frenchspacing, we also check the \sfcode of the |
| 84 |
% comma as well. |
| 85 |
\ifnum\sfcode`\.=\@m % if sfcode of period = 1000, we must be in \Refs ... |
| 86 |
\ifnum\sfcode`\,=\@m\else % unless comma also has sfcode 1000, which |
| 87 |
% means \frenchspacing was used. |
| 88 |
\message{Note: For \styname\space version 2 compatibility, add |
| 89 |
\string\endRefs\space at end of |
| 90 |
\expandafter\eat@\string\\Refs section}% |
| 91 |
\endRefs |
| 92 |
\fi\fi |
| 93 |
\ifmonograph@ % do nothing |
| 94 |
\else |
| 95 |
\nobreak |
| 96 |
\thetranslator@ |
| 97 |
\count@\z@ \loop\ifnum\count@<\addresscount@\advance\count@\@ne |
| 98 |
\csname address\number\count@\endcsname |
| 99 |
\csname email\number\count@\endcsname |
| 100 |
\repeat |
| 101 |
\fi |
| 102 |
\vfill\supereject\end} |
| 103 |
|
| 104 |
% If \add@missing is undefined, let's quit here. |
| 105 |
\expandafter\ifx\csname add@missing\endcsname\relax |
| 106 |
% Restore the old catcode of the @ character: |
| 107 |
\csname amsppt1.tex\endcsname |
| 108 |
\endinput\fi |
| 109 |
|
| 110 |
\outer\def\enddocument{\par % \par will do a runaway check for \endref |
| 111 |
\expandafter\ifx\envir@end\endRefs |
| 112 |
\message{Note: For \styname\space version 2 compatibility, add |
| 113 |
\string\endRefs\space at end of |
| 114 |
\expandafter\eat@\string\\Refs section}% |
| 115 |
\endRefs |
| 116 |
\fi |
| 117 |
% Repeat these in case an article (or book chapter!) doesn't |
| 118 |
% have a references section: |
| 119 |
\add@missing\endroster \add@missing\endproclaim \add@missing\enddefinition |
| 120 |
\add@missing\enddemo \add@missing\endremark \add@missing\endexample |
| 121 |
% In a monograph we expect the translator name and author addresses |
| 122 |
% to be handled in the front matter rather than at the end of the |
| 123 |
% individual chapters: |
| 124 |
\ifmonograph@ % do nothing |
| 125 |
\else |
| 126 |
% No break between the References and the final matter. |
| 127 |
\nobreak |
| 128 |
\thetranslator@ |
| 129 |
% Print all the \address's, including e-mail addresses if present. |
| 130 |
% If any of the \email's are undefined the \csname will just evaluate |
| 131 |
% to \relax. |
| 132 |
\count@\z@ \loop\ifnum\count@<\addresscount@\advance\count@\@ne |
| 133 |
\csname address\number\count@\endcsname |
| 134 |
\csname email\number\count@\endcsname |
| 135 |
\repeat |
| 136 |
\fi |
| 137 |
\vfill\supereject\end} |
| 138 |
% |
| 139 |
% Restore the old catcode of the @ character: |
| 140 |
\csname amsppt1.tex\endcsname |
| 141 |
\endinput |