2 %% This is file `amsgen.sty',
3 %% generated with the docstrip utility.
5 %% The original source files were:
9 %%% ====================================================================
11 %%% filename = "amsgen.dtx",
13 %%% date = "1999/11/30",
14 %%% time = "12:33:33 EST",
15 %%% author = "American Mathematical Society",
16 %%% copyright = "Copyright 1995, 1999 American Mathematical Society,
17 %%% all rights reserved. Copying of this file is
18 %%% authorized only if either:
19 %%% (1) you make absolutely no changes to your copy,
20 %%% including name; OR
21 %%% (2) if you do make changes, you first rename it
22 %%% to some other name.",
23 %%% address = "American Mathematical Society,
24 %%% Technical Support,
25 %%% Electronic Products and Services,
27 %%% Providence, RI 02940,
29 %%% telephone = "401-455-4080 or (in the USA and Canada)
30 %%% 800-321-4AMS (321-4267)",
31 %%% FAX = "401-331-3842",
32 %%% checksum = "07569 396 1613 14368",
33 %%% email = "tech-support@ams.org (Internet)",
34 %%% codetable = "ISO/ASCII",
35 %%% keywords = "latex, amslatex, ams-latex",
36 %%% supported = "yes",
37 %%% abstract = "This is part of the AMS-\LaTeX{} distribution.
38 %%% It contains some general internal macros shared
39 %%% by several different files in AMS-\LaTeX{}.",
40 %%% docstring = "The checksum field above contains a CRC-16
41 %%% checksum as the first value, followed by the
42 %%% equivalent of the standard UNIX wc (word
43 %%% count) utility output of lines, words, and
44 %%% characters. This is produced by Robert
45 %%% Solovay's checksum utility.",
47 %%% ====================================================================
48 \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
49 [1994/12/01]% LaTeX date must December 1994 or later
50 \ProvidesFile{amsgen.sty}[1999/11/30 v2.0]
51 \providecommand{\@saveprimitive}[2]{\begingroup\escapechar`\\\relax
52 \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
53 \ifx\@tempa\@tempb \global\let#2#1%
55 \edef\@tempb{\meaning#2}%
58 \@latex@error{Unable to properly define \string#2; primitive
59 \noexpand#1no longer primitive}\@eha
66 \def\@oparg#1[#2]{\@ifnextchar[{#1}{#1[#2]}}
67 \long\def\@ifempty#1{\@xifempty#1@@..\@nil}
68 \long\def\@xifempty#1#2@#3#4#5\@nil{%
69 \ifx#3#4\@xp\@firstoftwo\else\@xp\@secondoftwo\fi}
70 \long\def\@ifnotempty#1{\@ifempty{#1}{}}
71 \def\FN@{\futurelet\@let@token}
73 \def\RIfM@{\relax\ifmmode}
74 \def\setboxz@h{\setbox\z@\hbox}
77 \def\relaxnext@{\let\@let@token\relax}
78 \long\def\new@ifnextchar#1#2#3{%
80 \def\reserved@a{#2}\def\reserved@b{#3}%
81 \futurelet\@let@token\new@ifnch
84 \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi
87 \def\@ifstar#1#2{\new@ifnextchar *{\def\reserved@a*{#1}\reserved@a}{#2}}
88 \@ifundefined{every@math@size}{%
89 \let\every@math@size=\every@size
91 \expandafter\ifx\csname S@\f@size\endcsname\relax
94 \csname S@\f@size\endcsname
98 \csname mv@\math@version \endcsname
100 \let \glb@currsize \f@size
107 \def\set@fontsize#1#2#3{%
108 \@defaultunits\@tempdimb#2pt\relax\@nnil
109 \edef\f@size{\strip@pt\@tempdimb}%
110 \@defaultunits\@tempskipa#3pt\relax\@nnil
111 \edef\f@baselineskip{\the\@tempskipa}%
112 \edef\f@linespread{#1}%
113 \let\baselinestretch\f@linespread
115 \baselineskip\f@baselineskip\relax
116 \baselineskip\f@linespread\baselineskip
117 \normalbaselineskip\baselineskip
118 \setbox\strutbox\hbox{%
119 \vrule\@height.7\baselineskip
120 \@depth.3\baselineskip
123 \let\size@update\relax}%
125 }{}% end \@ifundefined test
127 \addto@hook\every@math@size{\compute@ex@}
134 \advance\dimen@10\p@ \multiply\dimen@\tw@
135 \edef\@tempa{\ifdim\dimen@>\z@ -\fi}%
136 \dimen@ \ifdim\dimen@<\z@ -\fi \dimen@
137 \advance\dimen@-\@m sp % fudge factor
139 \def\do{\ifdim\dimen@>\z@
144 \dimen@\p@ \advance\dimen@-\vfuzz
146 \global\advance\ex@ \@tempa\dimen@
150 \def\@addpunct#1{\ifnum\spacefactor>\@m \else#1\fi}
151 \def\frenchspacing{\sfcode`\.1006\sfcode`\?1005\sfcode`\!1004%
152 \sfcode`\:1003\sfcode`\;1002\sfcode`\,1001 }
153 \def\nomath@env{\@amsmath@err{%
154 \string\begin{\@currenvir} allowed only in paragraph mode%
155 }\@ehb% "You've lost some text"
157 \def\Invalid@@{Invalid use of \string}
160 %% End of file `amsgen.sty'.