| 1 |
%% filename: amssym.def |
| 2 |
%% version: 2.2b |
| 3 |
%% date: 2001/07/03 |
| 4 |
%% |
| 5 |
%% American Mathematical Society |
| 6 |
%% Technical Support |
| 7 |
%% Publications Technical Group |
| 8 |
%% 201 Charles Street |
| 9 |
%% Providence, RI 02904 |
| 10 |
%% USA |
| 11 |
%% tel: (401) 455-4080 |
| 12 |
%% (800) 321-4267 (USA and Canada only) |
| 13 |
%% fax: (401) 331-3842 |
| 14 |
%% email: [email protected] |
| 15 |
%% |
| 16 |
%% Copyright 1994, 2001, 2009 American Mathematical Society. |
| 17 |
%% |
| 18 |
%% Unlimited copying and redistribution of this file are permitted as |
| 19 |
%% long as this file is not modified. Modifications, and distribution |
| 20 |
%% of modified versions, are permitted, but only if the resulting file |
| 21 |
%% is renamed. |
| 22 |
%% |
| 23 |
%% ==================================================================== |
| 24 |
\expandafter\ifx\csname amssym.def\endcsname\relax \else\endinput\fi |
| 25 |
% |
| 26 |
% Store the catcode of the @ in the csname so that it can be restored later. |
| 27 |
\expandafter\edef\csname amssym.def\endcsname{% |
| 28 |
\catcode`\noexpand\@=\the\catcode`\@\space} |
| 29 |
% Set the catcode to 11 for use in private control sequence names. |
| 30 |
\catcode`\@=11 |
| 31 |
% |
| 32 |
% Include all definitions related to the fonts msam, msbm and eufm, so that |
| 33 |
% when this file is used by itself, the results with respect to those fonts |
| 34 |
% are equivalent to what they would have been using AMS-TeX. |
| 35 |
% Most symbols in fonts msam and msbm are defined using \newsymbol; |
| 36 |
% however, a few symbols that replace composites defined in plain must be |
| 37 |
% defined with \mathchardef. |
| 38 |
|
| 39 |
\def\undefine#1{\let#1\undefined} |
| 40 |
\def\newsymbol#1#2#3#4#5{\let\next@\relax |
| 41 |
\ifnum#2=\@ne\let\next@\msafam@\else |
| 42 |
\ifnum#2=\tw@\let\next@\msbfam@\fi\fi |
| 43 |
\mathchardef#1="#3\next@#4#5} |
| 44 |
\def\mathhexbox@#1#2#3{\relax |
| 45 |
\ifmmode\mathpalette{}{\m@th\mathchar"#1#2#3}% |
| 46 |
\else\leavevmode\hbox{$\m@th\mathchar"#1#2#3$}\fi} |
| 47 |
\def\hexnumber@#1{\ifcase#1 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 8\or |
| 48 |
9\or A\or B\or C\or D\or E\or F\fi} |
| 49 |
|
| 50 |
\font\tenmsa=msam10 |
| 51 |
\font\sevenmsa=msam7 |
| 52 |
\font\fivemsa=msam5 |
| 53 |
\newfam\msafam |
| 54 |
\textfont\msafam=\tenmsa |
| 55 |
\scriptfont\msafam=\sevenmsa |
| 56 |
\scriptscriptfont\msafam=\fivemsa |
| 57 |
\edef\msafam@{\hexnumber@\msafam} |
| 58 |
\mathchardef\dabar@"0\msafam@39 |
| 59 |
\def\dashrightarrow{\mathrel{\dabar@\dabar@\mathchar"0\msafam@4B}} |
| 60 |
\def\dashleftarrow{\mathrel{\mathchar"0\msafam@4C\dabar@\dabar@}} |
| 61 |
\let\dasharrow\dashrightarrow |
| 62 |
\def\ulcorner{\delimiter"4\msafam@70\msafam@70 } |
| 63 |
\def\urcorner{\delimiter"5\msafam@71\msafam@71 } |
| 64 |
\def\llcorner{\delimiter"4\msafam@78\msafam@78 } |
| 65 |
\def\lrcorner{\delimiter"5\msafam@79\msafam@79 } |
| 66 |
% Note that there should not be a final space after the digits for a |
| 67 |
% \mathhexbox@. |
| 68 |
\def\yen{{\mathhexbox@\msafam@55}} |
| 69 |
\def\checkmark{{\mathhexbox@\msafam@58}} |
| 70 |
\def\circledR{{\mathhexbox@\msafam@72}} |
| 71 |
\def\maltese{{\mathhexbox@\msafam@7A}} |
| 72 |
|
| 73 |
\font\tenmsb=msbm10 |
| 74 |
\font\sevenmsb=msbm7 |
| 75 |
\font\fivemsb=msbm5 |
| 76 |
\newfam\msbfam |
| 77 |
\textfont\msbfam=\tenmsb |
| 78 |
\scriptfont\msbfam=\sevenmsb |
| 79 |
\scriptscriptfont\msbfam=\fivemsb |
| 80 |
\edef\msbfam@{\hexnumber@\msbfam} |
| 81 |
\def\Bbb#1{{\fam\msbfam\relax#1}} |
| 82 |
\def\widehat#1{\setbox\z@\hbox{$\m@th#1$}% |
| 83 |
\ifdim\wd\z@>\tw@ em\mathaccent"0\msbfam@5B{#1}% |
| 84 |
\else\mathaccent"0362{#1}\fi} |
| 85 |
\def\widetilde#1{\setbox\z@\hbox{$\m@th#1$}% |
| 86 |
\ifdim\wd\z@>\tw@ em\mathaccent"0\msbfam@5D{#1}% |
| 87 |
\else\mathaccent"0365{#1}\fi} |
| 88 |
\font\teneufm=eufm10 |
| 89 |
\font\seveneufm=eufm7 |
| 90 |
\font\fiveeufm=eufm5 |
| 91 |
\newfam\eufmfam |
| 92 |
\textfont\eufmfam=\teneufm |
| 93 |
\scriptfont\eufmfam=\seveneufm |
| 94 |
\scriptscriptfont\eufmfam=\fiveeufm |
| 95 |
\def\frak#1{{\fam\eufmfam\relax#1}} |
| 96 |
\let\goth\frak |
| 97 |
|
| 98 |
% Restore the catcode value for @ that was previously saved. |
| 99 |
\csname amssym.def\endcsname |
| 100 |
|
| 101 |
\endinput |