-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAMSfonts.sty
180 lines (180 loc) · 7.11 KB
/
AMSfonts.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
%%
%% This is file `amsfonts.sty', generated
%% on <1995/2/1> with the docstrip utility (2.2i).
%%
%% The original source files were:
%%
%% amsfonts.dtx
%%% ====================================================================
%%% @LaTeX-file{
%%% filename = "amsfonts.dtx",
%%% version = "2.2b",
%%% date = "1995/02/01",
%%% time = "11:12:55 EST",
%%% author = "American Mathematical Society",
%%% copyright = "Copyright (C) 1995 American Mathematical Society,
%%% all rights reserved. Copying of this file is
%%% authorized only if either:
%%% (1) you make absolutely no changes to your copy,
%%% including name; OR
%%% (2) if you do make changes, you first rename it
%%% to some other name.",
%%% address = "American Mathematical Society,
%%% Technical Support,
%%% Electronic Products and Services,
%%% P. O. Box 6248,
%%% Providence, RI 02940,
%%% USA",
%%% telephone = "401-455-4080 or (in the USA and Canada)
%%% 800-321-4AMS (321-4267)",
%%% FAX = "401-331-3842",
%%% checksum = "60492 437 2050 17848",
%%% email = "[email protected] (Internet)",
%%% codetable = "ISO/ASCII",
%%% keywords = "latex, amslatex, ams-latex, amsfonts, msam,
%%% msbm, eufm, blackboard bold",
%%% supported = "yes",
%%% abstract = "This is part of the AMSFonts distribution,
%%% It provides easy access to certain math fonts
%%% for extra math symbols, fraktur letters, and
%%% blackboard bold letters."
%%% docstring = "The checksum field above contains a CRC-16
%%% checksum as the first value, followed by the
%%% equivalent of the standard UNIX wc (word
%%% count) utility output of lines, words, and
%%% characters. This is produced by Robert
%%% Solovay's checksum utility.",
%%% }
%%% ====================================================================
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{amsfonts}[1995/02/01 v2.2b]
\DeclareOption{psamsfonts}{%
\ifnum\cmex@opt=7 \def\cmex@opt{10}%
\else \def\cmex@opt{0}\fi
\input{Umsa57.fd}\input{Umsb57.fd}\input{Ueuf57.fd}}
\@ifundefined{cmex@opt}{\def\cmex@opt{1}}{}
\ProcessOptions\relax
\ifnum\cmex@opt=1 \relax
\catcode`\ =9
\DeclareFontShape{OMX}{cmex}{m}{n}{%
<-8> cmex7%
<8> cmex8%
<9> cmex9%
<10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>cmex10%
}{}%
\expandafter\let\csname OMX/cmex/m/n/10\endcsname\relax
\catcode`\ =10
\else
\ifnum\cmex@opt=10 % need to override cmex7 fontdef from amsmath
\input{OMXcmex.fd}%
\expandafter\let\csname OMX/cmex/m/n/10\endcsname\relax
\def\cmex@opt{0}%
\fi
\fi
\@ifundefined{@mathmeasure}{%
\def\@mathmeasure#1#2#3{\setbox#1\hbox{\frozen@everymath\@emptytoks
\m@th$#2#3$}}
}{}
\@ifundefined{@emptytoks}{% \newtoks is still outer in LaTeX2e---why?
\csname newtoks\endcsname\@emptytoks
}{}
\DeclareSymbolFont{AMSa}{U}{msa}{m}{n}
\DeclareSymbolFont{AMSb}{U}{msb}{m}{n}
\@ifundefined{yen}{%
\edef\yen{\noexpand\mathhexbox{\hexnumber@\symAMSa}55}
}{}
\@ifundefined{checkmark}{%
\edef\checkmark{\noexpand\mathhexbox{\hexnumber@\symAMSa}58}
}{}
\@ifundefined{circledR}{%
\edef\circledR{\noexpand\mathhexbox{\hexnumber@\symAMSa}72}
}{}
\@ifundefined{maltese}{%
\edef\maltese{\noexpand\mathhexbox{\hexnumber@\symAMSa}7A}
}{}
\begingroup \catcode`\"=12
\DeclareMathDelimiter\ulcorner{\mathopen} {AMSa}{"70}{AMSa}{"70}
\DeclareMathDelimiter\urcorner{\mathclose}{AMSa}{"71}{AMSa}{"71}
\DeclareMathDelimiter\llcorner{\mathopen} {AMSa}{"78}{AMSa}{"78}
\DeclareMathDelimiter\lrcorner{\mathclose}{AMSa}{"79}{AMSa}{"79}
\xdef\widehat#1{\noexpand\@mathmeasure\z@\textstyle{#1}%
\noexpand\ifdim\noexpand\wd\z@>\tw@ em%
\mathaccent"0\hexnumber@\symAMSb 5B{#1}%
\noexpand\else\mathaccent"0362{#1}\noexpand\fi}
\xdef\widetilde#1{\noexpand\@mathmeasure\z@\textstyle{#1}%
\noexpand\ifdim\noexpand\wd\z@>\tw@ em%
\mathaccent"0\hexnumber@\symAMSb 5D{#1}%
\noexpand\else\mathaccent"0365{#1}\noexpand\fi}
\DeclareMathSymbol\dabar@{\mathord}{AMSa}{"39}
\xdef\dashrightarrow{\mathrel{\dabar@\dabar@
\mathchar"0\hexnumber@\symAMSa 4B}}%
\xdef\dashleftarrow{\mathrel{\mathchar"0\hexnumber@\symAMSa 4C\dabar@
\dabar@}}%
\global\let\dasharrow\dashrightarrow
\global\let\rightleftharpoons\undefined
\DeclareMathSymbol\rightleftharpoons{\mathrel}{AMSa}{"0A}
\global\let\angle\undefined
\DeclareMathSymbol\angle {\mathord}{AMSa}{"5C}
\global\let\hbar\undefined
\DeclareMathSymbol\hbar {\mathord}{AMSb}{"7E}
\global\let\sqsubset\undefined
\DeclareMathSymbol\sqsubset {\mathrel}{AMSa}{"40}
\global\let\sqsupset\undefined
\DeclareMathSymbol\sqsupset {\mathrel}{AMSa}{"41}
\global\let\mho\undefined
\DeclareMathSymbol\mho {\mathord}{AMSb}{"66}
\endgroup
\DeclareMathAlphabet\mathfrak{U}{euf}{m}{n}
\SetMathAlphabet\mathfrak{bold}{U}{euf}{b}{n}
\DeclareSymbolFontAlphabet{\mathbb}{AMSb}
\DeclareFontEncodingDefaults{\relax}{\def\accentclass@{7}}
\def\frak{\@subst@obsolete{amsfonts}\frak\mathfrak}
\def\Bbb{\@subst@obsolete{amsfonts}\Bbb\mathbb}
\def\bold{\@subst@obsolete{amsfonts}\bold\mathbf}
\begingroup \catcode`\"=12 \relax
\gdef\newsymbol#1#2#3#4#5{%
\@obsolete{amsfonts}\newsymbol\DeclareMathSymbol
\@ifdefinable#1{%
\edef\next@
{\ifcase #2 \or
\hexnumber@\symAMSa\or
\hexnumber@\symAMSb\fi}%
\ifx\next@\@empty
\PackageError{amsfonts}{\Invalid@@\newsymbol}\@ehd%
\else
\global\mathchardef#1"#3\next@#4#5
\fi}}
\endgroup
\long\def\@gobblethree#1#2#3{}
\if@compatibility
\let\@obsolete\@gobblethree
\else
\def\@obsolete#1#2#3{\PackageWarning{#1}{%
Obsolete command \protect#2; \protect#3 should be used instead}}%
\fi
\def\@subst@obsolete#1#2#3{\@obsolete{#1}#2#3\gdef#2{#3}#2}
\if@compatibility \else \endinput \fi
\begingroup \catcode`\"=12
\DeclareMathSymbol\square {\mathord}{AMSa}{"03}
\DeclareMathSymbol\lozenge {\mathord}{AMSa}{"06}
\DeclareMathSymbol\vartriangleright {\mathrel}{AMSa}{"42}
\DeclareMathSymbol\vartriangleleft {\mathrel}{AMSa}{"43}
\DeclareMathSymbol\trianglerighteq {\mathrel}{AMSa}{"44}
\DeclareMathSymbol\trianglelefteq {\mathrel}{AMSa}{"45}
\DeclareMathSymbol\rightsquigarrow {\mathrel}{AMSa}{"20}
\def\@tempa{\not@base\lhd}
\ifx\lhd\@tempa
\global\let\lhd\vartriangleleft
\global\let\unlhd\trianglelefteq
\global\let\rhd\vartriangleright
\global\let\unrhd\trianglerighteq
\global\let\Box\square
\global\let\Diamond\lozenge
\global\let\leadsto\rightsquigarrow
\xdef\Join{\mathrel{\mathchar"0\hexnumber@\symAMSb 6F\mkern-13.8mu%
\mathchar"0\hexnumber@\symAMSb 6E}}
\fi
\endgroup
\endinput
%%
%% End of file `amsfonts.sty'.