-
Notifications
You must be signed in to change notification settings - Fork 52
/
siammathtime.sty
342 lines (340 loc) · 14.1 KB
/
siammathtime.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
%%
%% This is file `mathtime.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% mathtime.dtx (with options: `package,mathtime')
%%
%% Copyright 1996 1997 Frank Mittelbach and David Carlisle.
%%
%% Development of this package was commissioned by Y&Y Inc.
%% http://www.yandy.com
\NeedsTeXFormat{LaTeX2e}[1995/01/01]
\ProvidesPackage{mathtime}
[1997/09/01 v1.0d %
mathtime
font support (FMi/DPC)]
\newcommand\greekshape{}
\DeclareOption{slantedgreek}{\renewcommand\greekshape{it}}
\DeclareOption{uprightgreek}{\renewcommand\greekshape{n}}
\DeclareOption{nobold}{\let\boldmath=u}
\DeclareOption{cmbold}{\let\boldmath=c}
\DeclareOption{mtbold}{\let\boldmath=m}
\DeclareOption{heavybold}{\let\boldmath=h}
\newcommand\enablesubscriptcorrection {\catcode`\_=12\relax}
\newcommand\disablesubscriptcorrection{\catcode`\_=8\relax}
\DeclareOption{nosubscriptcorrection}{\disablesubscriptcorrection}
\DeclareOption{subscriptcorrection} {\enablesubscriptcorrection}
\DeclareOption{cmcal} {\let\mathcal=c}
\DeclareOption{lucidacal}{\let\mathcal=l}
\DeclareOption{mtplusscr}{\let\mathscr=s}
\DeclareOption{mtpluscal}{\let\mathcal=s}
\DeclareOption{lucidascr}{\let\mathscr=l}
\DeclareOption{noTS1} {\let\symtextcomp\relax}
\let\operator@encoding\encodingdefault
\DeclareOption{OT1}{\def\operator@encoding{OT1}}
\DeclareOption{T1}{\def\operator@encoding{T1}}
\DeclareOption{LY1}{\def\operator@encoding{LY1}\ExecuteOptions{noTS1}}
\DeclareOption{errorshow}{%
\def\@font@info#1{%
\GenericInfo{(Font)\@spaces\@spaces\@spaces\space\space}%
{LaTeX Font Info: \space\space\space#1}}%
\def\@font@warning#1{%
\GenericInfo{(Font)\@spaces\@spaces\@spaces\space\space}%
{LaTeX Font Warning: #1}}}
\DeclareOption{warningshow}{%
\def\@font@info#1{%
\GenericInfo{(Font)\@spaces\@spaces\@spaces\space\space}%
{LaTeX Font Info: \space\space\space#1}}%
\def\@font@warning#1{%
\GenericWarning{(Font)\@spaces\@spaces\@spaces\space\space}%
{LaTeX Font Warning: #1}}}
\DeclareOption{nofontinfo}{%
\let\@font@info\@gobble
\let\@font@warning\@gobble}
\ExecuteOptions{%
slantedgreek,nobold,nosubscriptcorrection,cmcal,errorshow}
\ProcessOptions
\edef\@tempa{\rmdefault}
\def\@tempb {cmr}
\ifx\@tempa\@tempb
\renewcommand*\sfdefault{poptima}
\renewcommand*\rmdefault{ptm}
\renewcommand*\ttdefault{pcr}
\renewcommand*\bfdefault{b}
\fi
\DeclareFontEncoding{MY1}{}{}
\DeclareFontEncoding{MY2}{}{}
\DeclareFontEncoding{MY3}{}{}
\DeclareFontSubstitution{MY1}{mtt}{m}{it}
\DeclareFontSubstitution{MY2}{mtt}{m}{n}
\DeclareFontSubstitution{MY3}{mtt}{m}{n}
\SetSymbolFont{operators} {normal}{\operator@encoding}{ptm}{m}{n}
\SetSymbolFont{letters} {normal}{MY1}{mtt}{m}{it}
\SetSymbolFont{symbols} {normal}{MY2}{mtt}{m}{n}
\SetSymbolFont{largesymbols}{normal}{MY3}{mtt}{m}{n}
\ifx\boldmath c
\SetSymbolFont{operators} {bold}{\operator@encoding}{cmr}{bx}{n}
\SetSymbolFont{letters} {bold}{OML}{cmm}{b}{it}
\SetSymbolFont{symbols} {bold}{OMS}{cmsy}{b}{n}
\SetSymbolFont{largesymbols}{bold}{MY3}{mtt}{m}{n}
\PackageWarningNoLine{mathtime}
{The use of the `cmbold' option will result\MessageBreak
in incorrect characters in some circumstances\MessageBreak
without any warning as the Math Time fonts and the\MessageBreak
Computer Modern fonts have incompatible encodings.\MessageBreak
Please use this option with care!\@gobble}
\renewcommand\boldmath{\@nomath\boldmath\mathversion{bold}}
\let\heavymath\boldmath
\fi
\ifx\boldmath u
\let\@tempa\version@elt
\def\version@elt#1{%
\ifx\mv@bold#1\else\noexpand\version@elt\noexpand#1\fi}
\edef\version@list{\version@list}
\let\version@elt\@tempa
\let\mv@bold\@undefined
\renewcommand\boldmath{\PackageError{mathtime}%
{Bold math is not supported}%
{Use cmbold or mtbold options}}
\let\heavymath\boldmath
\fi
\ifx\boldmath m
\SetSymbolFont{operators}{bold}{\operator@encoding}{\rmdefault}{b}{n}
\SetSymbolFont{letters} {bold}{MY1}{mtt}{b}{\greekshape}
\SetSymbolFont{symbols} {bold}{MY2}{mtt}{b}{n}
\SetSymbolFont{largesymbols}{bold}{MY3}{mtt}{b}{n}
\DeclareMathVersion{heavy}
\SetSymbolFont{operators}{heavy}{\operator@encoding}{\rmdefault}{b}{n}
\SetSymbolFont{letters} {heavy}{MY1}{mtt}{ub}{\greekshape}
\SetSymbolFont{symbols} {heavy}{MY2}{mtt}{ub}{n}
\SetSymbolFont{largesymbols}{heavy}{MY3}{mtt}{ub}{n}
\DeclareMathSymbol{:}{\mathrel}{symbols}{86}
\DeclareMathSymbol{!}{\mathclose}{symbols}{87}
\DeclareMathSymbol{[}{\mathopen}{symbols}{84}
\DeclareMathSymbol{]}{\mathclose}{symbols}{85}
\renewcommand\boldmath{\@nomath\boldmath\mathversion{bold}}
\newcommand\heavymath{\@nomath\heavymath\mathversion{heavy}}
\fi
\ifx\boldmath h
\SetSymbolFont{operators}{bold}{\operator@encoding}{\rmdefault}{b}{n}
\SetSymbolFont{letters} {bold}{MY1}{mtt}{ub}{\greekshape}
\SetSymbolFont{symbols} {bold}{MY2}{mtt}{ub}{n}
\SetSymbolFont{largesymbols}{bold}{MY3}{mtt}{ub}{n}
\DeclareMathSymbol{:}{\mathrel}{symbols}{86}
\DeclareMathSymbol{!}{\mathclose}{symbols}{87}
\DeclareMathSymbol{[}{\mathopen}{symbols}{84}
\DeclareMathSymbol{]}{\mathclose}{symbols}{85}
\renewcommand\boldmath{\@nomath\boldmath\mathversion{bold}}
\let\heavymath\boldmath
\fi
\SetMathAlphabet{\mathrm}{normal}{\encodingdefault}{\rmdefault}{m}{n}
\SetMathAlphabet{\mathbf}{normal}{\encodingdefault}{\rmdefault}{b}{n}
\SetMathAlphabet{\mathit}{normal}{\encodingdefault}{\rmdefault}{m}{it}
\SetMathAlphabet{\mathsf}{normal}{\encodingdefault}{\sfdefault}{m}{n}
\SetMathAlphabet{\mathtt}{normal}{\encodingdefault}{\ttdefault}{m}{n}
\ifx\mv@bold\@undefined
\else
\SetMathAlphabet{\mathrm}{bold} {\encodingdefault}{\rmdefault}{b}{n}
\SetMathAlphabet{\mathbf}{bold} {\encodingdefault}{\rmdefault}{b}{n}
\SetMathAlphabet{\mathit}{bold} {\encodingdefault}{\rmdefault}{b}{it}
\SetMathAlphabet{\mathsf}{bold} {\encodingdefault}{\sfdefault}{b}{n}
\SetMathAlphabet{\mathtt}{bold} {\encodingdefault}{\ttdefault}{b}{n}
\fi
\ifx\mv@heavy\@undefined
\else
\SetMathAlphabet{\mathrm}{heavy}{\encodingdefault}{\rmdefault}{b}{n}
\SetMathAlphabet{\mathbf}{heavy}{\encodingdefault}{\rmdefault}{b}{n}
\SetMathAlphabet{\mathit}{heavy}{\encodingdefault}{\rmdefault}{b}{it}
\SetMathAlphabet{\mathsf}{heavy}{\encodingdefault}{\sfdefault}{b}{n}
\SetMathAlphabet{\mathtt}{heavy}{\encodingdefault}{\ttdefault}{b}{n}
\fi
\ifx\mathscr s
\let\mathscr\relax
\DeclareMathAlphabet\mathscr{U} {mtms}{b}{n}
\SetMathAlphabet \mathscr{normal}{U}{mtms}{m}{n}
\DeclareMathAlphabet\mathbscr{U}{mtms}{b}{n}
\fi
\ifx\mathscr l
\let\mathscr\relax
\DeclareMathAlphabet{\mathscr} {OMS}{lby}{b}{n}
\SetMathAlphabet {\mathscr}{normal} {OMS}{lby}{m}{n}
\DeclareMathAlphabet{\mathbscr} {OMS}{lby}{b}{n}
\fi
\ifx\mathcal l
\let\mathcal\relax
\DeclareMathAlphabet{\mathcal} {OMS}{lby}{b}{n}
\SetMathAlphabet {\mathcal}{normal} {OMS}{lby}{m}{n}
\DeclareMathAlphabet{\mathbcal} {OMS}{lby}{b}{n}
\fi
\ifx\mathcal s
\let\mathcal\relax
\DeclareMathAlphabet\mathcal{U} {mtms}{b}{n}
\SetMathAlphabet \mathcal{normal}{U}{mtms}{m}{n}
\DeclareMathAlphabet\mathbcal{U}{mtms}{b}{n}
\fi
\ifx\mathcal c
\let\mathcal\relax
\DeclareMathAlphabet\mathcal{OMS} {cmsy}{b}{n}
\SetMathAlphabet \mathcal{normal}{OMS}{cmsy}{m}{n}
\DeclareMathAlphabet\mathbcal{OMS} {cmsy}{b}{n}
\fi
\DeclareMathSymbol\Gamma {\mathord}{letters}{48}
\DeclareMathSymbol\Delta {\mathord}{letters}{49}
\DeclareMathSymbol\Theta {\mathord}{letters}{50}
\DeclareMathSymbol\Lambda {\mathord}{letters}{51}
\DeclareMathSymbol\Xi {\mathord}{letters}{52}
\DeclareMathSymbol\Pi {\mathord}{letters}{53}
\DeclareMathSymbol\Sigma {\mathord}{letters}{54}
\DeclareMathSymbol\Upsilon{\mathord}{letters}{55}
\DeclareMathSymbol\Phi {\mathord}{letters}{56}
\DeclareMathSymbol\Psi {\mathord}{letters}{57}
\DeclareMathSymbol\Omega {\mathord}{letters}{127}
\DeclareMathSymbol\varGamma {\mathord}{letters}{0}
\DeclareMathSymbol\varDelta {\mathord}{letters}{1}
\DeclareMathSymbol\varTheta {\mathord}{letters}{2}
\DeclareMathSymbol\varLambda {\mathord}{letters}{3}
\DeclareMathSymbol\varXi {\mathord}{letters}{4}
\DeclareMathSymbol\varPi {\mathord}{letters}{5}
\DeclareMathSymbol\varSigma {\mathord}{letters}{6}
\DeclareMathSymbol\varUpsilon {\mathord}{letters}{7}
\DeclareMathSymbol\varPhi {\mathord}{letters}{8}
\DeclareMathSymbol\varPsi {\mathord}{letters}{9}
\DeclareMathSymbol\varOmega {\mathord}{letters}{10}
\DeclareMathSymbol{(}{\mathopen}{letters}{46} % was 028
\DeclareMathSymbol{)}{\mathclose}{letters}{47} % was 029
\DeclareMathDelimiter{(}{letters}{46}{largesymbols}{0}
\DeclareMathDelimiter{)}{letters}{47}{largesymbols}{1}
\DeclareMathSymbol{\triangleleft}{\mathbin}{symbols}{71} % was 12F
\DeclareMathSymbol{\triangleright}{\mathbin}{symbols}{70} % was 12E
\DeclareMathSymbol{\comp}{\mathbin}{symbols}{66} % new?
\DeclareMathSymbol{\setdif}{\mathbin}{symbols}{88} % new
\DeclareMathSymbol{\cupprod}{\mathbin}{symbols}{89} % new
\DeclareMathSymbol{\capprod}{\mathbin}{symbols}{90} % new
\DeclareMathSymbol{+}{\mathbin}{symbols}{67} % was 02B
\DeclareMathSymbol{=}{\mathrel}{symbols}{68} % was 03D
\let\Relbar\@undefined
\DeclareMathSymbol{\Relbar}{\mathrel}{symbols}{72} % was a macro
\DeclareMathSymbol{;}{\mathpunct}{symbols}{73} % was 13B
\DeclareMathSymbol{\varkappa}{\mathord}{letters}{126} % new (AMS)
\DeclareMathAccent{\vec}{\mathord}{symbols}{69}
\DeclareMathAccent{\grave}{\mathord}{symbols}{74}
\DeclareMathAccent{\acute}{\mathord}{symbols}{75}
\DeclareMathAccent{\check}{\mathord}{symbols}{76}
\DeclareMathAccent{\breve}{\mathord}{symbols}{77}
\DeclareMathAccent{\bar}{\mathord}{symbols}{78}
\DeclareMathAccent{\hat}{\mathord}{symbols}{79}
\DeclareMathAccent{\dot}{\mathord}{symbols}{80}
\DeclareMathAccent{\tilde}{\mathord}{symbols}{81}
\DeclareMathAccent{\ddot}{\mathord}{symbols}{82}
\DeclareMathAccent{\widebar}{\mathord}{symbols}{83} % new
\def\defaultscriptratio{.7}
\def\defaultscriptscriptratio{.5}
\newcommand\hb@xmdot{\hbox{$\m@th.$}}
\def\vdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@
\kern6\p@\hb@xmdot\hb@xmdot\hb@xmdot}}
\def\ddots{\mathinner{\mkern1mu\raise7\p@\vbox{\kern7\p@
\hb@xmdot}\mkern2mu
\raise4\p@\hb@xmdot\mkern2mu\raise\p@\hb@xmdot\mkern1mu}}
\def\angle{{\vbox{\ialign{$\m@th\scriptstyle##$\crcr
\not\mathrel{\mkern14mu}\crcr
\noalign{\nointerlineskip}%
\mkern2.5mu%
\leaders\hrule\@height.48\p@\hfill\mkern2.5mu\crcr}}}}
\def\hbar{{%
\dimen@.12em%
\dimen@ii.1em%
\def\@tempa##1##2{{%
\lower##1\dimen@\rlap{\kern##1\dimen@ii\the##2\tw@\char78}}}%
\mathchoice\@tempa\@ne\textfont
\@tempa\@ne\textfont
\@tempa\defaultscriptratio\scriptfont
\@tempa\defaultscriptscriptratio\scriptscriptfont
h}}
\def\@fnsymbol#1{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
\mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
\or \ddagger\ddagger \else\@ctrerr\fi}}
\ifx\symtextcomp\relax
\def\@tempa{LY1}
\ifx\operator@encoding\@tempa
\DeclareMathSymbol\dagger {\mathbin}{operators}{134}
\DeclareMathSymbol\ddagger{\mathbin}{operators}{135}
\DeclareMathSymbol\mathsection{\mathord}{operators}{'247}
\DeclareMathSymbol\mathparagraph{\mathord}{operators}{'266}
\DeclareMathSymbol\mathsterling{\mathord}{operators}{163}
\let\mathunderscore\@undefined
\DeclareMathSymbol\mathunderscore{\mathord}{operators}{95}
\fi
\def\@tempa{T1}
\ifx\operator@encoding\@tempa
\DeclareMathSymbol\mathsterling{\mathord}{operators}{191}
\let\mathunderscore\@undefined
\DeclareMathSymbol\mathunderscore{\mathord}{operators}{95}
\fi
\else
\DeclareFontEncoding{TS1}{}{}
\DeclareSymbolFont{textcomp}{TS1}{ptm}{m}{n}
\ifx\mv@bold\@undefined
\else
\SetSymbolFont {textcomp}{bold}{TS1}{ptm}{b}{n}
\fi
\ifx\mv@heavy\@undefined
\else
\SetSymbolFont {textcomp}{heavy}{TS1}{ptm}{b}{n}
\fi
\DeclareMathSymbol\dagger {\mathbin}{textcomp}{'204}
\DeclareMathSymbol\ddagger{\mathbin}{textcomp}{'205}
\DeclareMathSymbol\mathsection{\mathord}{textcomp}{'247}
\DeclareMathSymbol\mathparagraph{\mathord}{textcomp}{'266}
\fi
\DeclareTextSymbolDefault{\textless}{MY1}
\DeclareTextSymbolDefault{\textgreater}{MY1}
\DeclareTextAccentDefault{\t}{MY2}
\DeclareTextSymbol{\textless}{MY1}{`\<}
\DeclareTextSymbol{\textgreater}{MY1}{`\>}
\DeclareTextAccent{\t}{MY2}{65}
\DeclareTextSymbolDefault{\textasteriskcentered}{MY2}
\DeclareTextSymbolDefault{\textbackslash}{MY2}
\DeclareTextSymbolDefault{\textbar}{MY2}
\DeclareTextSymbolDefault{\textbraceleft}{MY2}
\DeclareTextSymbolDefault{\textbraceright}{MY2}
\DeclareTextSymbolDefault{\textbullet}{MY2}
\DeclareTextSymbolDefault{\textperiodcentered}{MY2}
\DeclareTextAccentDefault{\textcircled}{MY2}
\DeclareTextSymbol{\textasteriskcentered}{MY2}{3}
\DeclareTextSymbol{\textbackslash}{MY2}{110}
\DeclareTextSymbol{\textbar}{MY2}{106}
\DeclareTextSymbol{\textbraceleft}{MY2}{102}
\DeclareTextSymbol{\textbraceright}{MY2}{103}
\DeclareTextSymbol{\textbullet}{MY2}{15}
\DeclareTextSymbol{\textperiodcentered}{MY2}{1}
\DeclareTextCommand{\textcircled}{MY2}[1]{{%
\ooalign{%
\hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
\char13}}}
\ifx\symtextcomp\relax
\else
\DeclareTextSymbolDefault{\textsection}{TS1}
\DeclareTextSymbolDefault{\textparagraph}{TS1}
\DeclareTextSymbol{\textsection}{TS1}{'247}
\DeclareTextSymbol{\textparagraph}{TS1}{'266}
\fi
\begingroup
\catcode`\_=13
\gdef_#1{\sb{\test@sb#1}}
\endgroup
\def\test@sb{%
\@ifnextchar p%
{\mkern\m@ne mu}%
{\ifx\@let@token j%
\mkern-\tw@ mu%
\else
\ifx\@let@token f%
\mkern-\tw@ mu%
\fi
\fi}}
\mathcode`\_=\string"8000
\endinput
%%
%% End of file `mathtime.sty'.