summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xymtex/chemist/chemtimes.sty
blob: 514cefa750425d0c4fba24b8f70e16d6639b106b (plain)
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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
%%
%% This is file `chemtimes.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% chemtimes.dtx  (with options: `chemtimes')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2009, 2010 by Shinsaku Fujita all rights reserved.
%% 
%% This file is part of the ChemSci system.
%% =======================================
%% Version 1.00 Released on October 20, 2009
%% Released on November 21, 2010 (v5.00a)
%% 
%% Copying of this file is authorized only if either
%% 
%%  (1) you make absolutely no changes to your copy, including name and
%%      directory name
%%  (2) if you do make changes,
%%      (a) you name it something other than the names included in the
%%          ``macro-sahou-pac'' directory and
%%      (b) you acknowledge the original name.
%%  This restriction ensures that all standard styles are identical.
%% 
%% =======================================
%% 
%% This file contains several codes modified from latex.tex (LaTeX2.09)
%% and from latex.ltx (a LaTeX2e), the reused parts of which are subject to
%% Copyright 1994 the LaTeX3 project and the individual authors (For further
%% copyright information see the file legal.txt of the LaTeX2e standard
%% distribution, and any other copyright indicated in this file.)
%% 
%% File: chemtimes.dtx
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\typeout{Package `chemtimes' (v. 5.00a) Shinsaku Fujita 2010/11/21}
\@ifundefined{chemcorr}{}{%
  \PackageError{chemtimes}
    {The ``chemist'' or ``chmst-ps'' package is not permitted here}
    {The ``chemist'' or ``chmst-ps'' package will be automatically loaded \MessageBreak
    when the ``chemtimes'' package is loaded.}
}
\newif\ifchemtimes%%
\newif\if@chemtimes%%for chemist package
\newif\if@@@chemtimes%%for chmst-ps package
\newif\if@@chemtimes%%for chmst-ps package
\DeclareOption{chemist}{\chemtimestrue}
\chemtimesfalse
\ProcessOptions
\ifchemtimes
\RequirePackage[chemtimes]{chemist}%
\else
\@@chemtimestrue
\RequirePackage[chemtimes]{chmst-ps}%
\fi
\renewcommand{\rmdefault}{ptm}
\def\Hv@scale{0.90}%scalable font
\renewcommand{\sfdefault}{phv}
%% change the defalt values (\thinmuskip 3mu to 2mu etc.)
\thinmuskip=2mu
\medmuskip=2.5mu plus 1mu minus 1mu
\thickmuskip=4mu plus 1.5mu minus 1mu
\DeclareSymbolFont{letters}     {OML}{ztmcm}{m}{it}
\DeclareSymbolFont{operators}   {OT1}{ztmcm}{m}{n}
\DeclareSymbolFont{symbols}     {OMS}{ztmcm}{m}{n}
\DeclareSymbolFont{largesymbols}{OMX}{ztmcm}{m}{n}
\DeclareSymbolFont{bold}        {OT1}{ptm}{bx}{n}
\DeclareSymbolFont{italic}      {OT1}{ptm}{m}{it}
\DeclareMathAlphabet{\mathbf}{OT1}{ptm}{bx}{n}
\DeclareMathAlphabet{\mathit}{OT1}{ptm}{m}{it}
\DeclareMathAlphabet{\mathbfit}{OT1}{ptm}{b}{it}%2009/11/22
\DeclareMathAlphabet{\mathsf}{OT1}{phv}{m}{n}
\DeclareMathAlphabet{\mathtt}{OT1}{cmtt}{m}{n}
  \DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0}
  \DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1}
  \DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2}
  \DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3}
  \DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4}
  \DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5}
  \DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6}
  \DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7}
  \DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8}
  \DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9}
  \DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10}
\SetSymbolFont{letters}     {bold}{OT1}{ptm}{b}{it}%
\SetSymbolFont{operators}   {bold}{OT1}{ptm}{b}{n}%
\SetSymbolFont{symbols}     {bold}{OMS}{ptm}{b}{n}%
\SetSymbolFont{largesymbols}{bold}{OMX}{ztmcm}{m}{n}%
\def\defaultscriptratio{.74}
\def\defaultscriptscriptratio{.6}
\DeclareMathSizes{5}{5}{5}{5}
\DeclareMathSizes{6}{6}{5}{5}
\DeclareMathSizes{7}{7}{5}{5}
\DeclareMathSizes{8}{8}{6}{5}
\DeclareMathSizes{9}{9}{7}{5}
\DeclareMathSizes{10}{10}{7.4}{6}
\DeclareMathSizes{10.95}{10.95}{8}{6}
\DeclareMathSizes{12}{12}{9}{7}
\DeclareMathSizes{14.4}{14.4}{10.95}{8}
\DeclareMathSizes{17.28}{17.28}{12}{10}
\DeclareMathSizes{20.74}{20.74}{14.4}{12}
\DeclareMathSizes{24.88}{24.88}{17.28}{14.4}
\newif\ifnewl@tex \newl@textrue
\@ifundefined{DeclareMathVersion}%
 {\global\newl@texfalse}{\global\newl@textrue}%
\def\math@chem{chem}
\def\math@boldchem{boldchem}
\def\math@bold{bold}
\def\math@normal{normal}
%%added 2005/09/02
\let\oldalpha=\alpha
\let\oldbeta=\beta
\let\oldgamma=\gamma
\let\olddelta=\delta
\let\oldepsilon=\epsilon
\let\oldzeta=\zeta
\let\oldeta=\eta
\let\oldtheta=\theta
\let\oldiota=\iota
\let\oldkappa=\kappa
\let\oldlambda=\lambda
\let\oldmu=\mu
\let\oldnu=\nu
\let\oldxi=\xi
\let\oldpi=\pi
\let\oldrho=\rho
\let\oldsigma=\sigma
\let\oldtau=\tau
\let\oldupsilon=\upsilon
\let\oldphi=\phi
\let\oldchi=\chi
\let\oldpsi=\psi
\let\oldomega=\omega
\let\oldvarepsilon=\varepsilon
\let\oldvartheta=\vartheta
\let\oldvarpi=\varpi
\let\oldvarrho=\varrho
\let\oldvarsigma=\varsigma
\let\oldvarphi=\varphi
\let\oldGamma=\Gamma
\let\oldDelta=\Delta
\let\oldTheta=\Theta
\let\oldLamda=\Lambda
\let\oldXi=\Xi
\let\oldPi=\Pi
\let\oldSigma=\Sigma
\let\oldUpsilon=\Upsilon
\let\oldPhi=\Phi
\let\oldPsi=\Psi
\let\oldOmega=\Omega
\def\chemGreekpalette#1#2#3{%
\mathchoice%
{\mathord{\hbox{\usefont{OML}{#1}{#3}{it}\char"#2}}}%
{\mathord{\hbox{\usefont{OML}{#1}{#3}{it}\char"#2}}}%
{\mathord{\hbox{\scriptsize\usefont{OML}{#1}{#3}{it}\char"#2}}}%
{\mathord{\hbox{\tiny\usefont{OML}{#1}{#3}{it}\char"#2}}}}%
\def\chemGreekletter#1#2{%
\expandafter\def\csname #1\endcsname{\bgroup%added 2010/11/21 by S. Fujita
\ifx\math@version\math@chem
\chemGreekpalette{ztmcm}{#2}{m}%
\else
\ifx\math@version\math@boldchem
\chemGreekpalette{cmm}{#2}{b}%
\else
\ifx\math@version\math@bold
\chemGreekpalette{cmm}{#2}{b}%
\else
\csname old#1\endcsname
\fi\fi\fi\egroup}}%added 2010/11/21 by S. Fujita
\def\ChemAccent#1#2#3{%
\expandafter\def\csname #1\endcsname{%
\ifx\math@version\math@chem
#2{\hbox{\kern-0.15em\usefont{OML}{cmm}{m}{it}\char"#3}}\else
\ifx\math@version\math@boldchem
#2{\hbox{\kern-0.2em\usefont{OML}{cmm}{b}{it}\char"#3}}\else
\ifx\math@version\math@bold
\ifupgreekrm
#2{\hbox{\usefont{OML}{cmm}{b}{it}\char"#3}}%
\upgreekrmfalse
\else
#2{\hbox{\usefont{OML}{cmm}{b}{it}\char"#3}}%
\fi
\else
#2{\hbox{\usefont{OML}{cmm}{m}{it}\char"#3}}%
\fi\fi\fi}}
\newif\ifupgreekrm \upgreekrmfalse
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm\upgreekrmtrue}
\DeclareOldFontCommand{\bfit}{\normalfont\itshape\bfseries}{\mathbfit}%2009/11/22
\let\oldmathrm=\mathrm
\def\mathrm#1{\oldmathrm{\upgreekrmtrue #1}}
\newif\ifm@thnorm@l
\def\chemUpGreekletter#1#2{%
\expandafter\def\csname #1\endcsname{\bgroup%2010/11/21 by S. Fujita
\ensuremath{%
\ifx\math@version\math@chem
\ifm@thnorm@l
\mathord{\hbox{\usefont{OML}{cmm}{m}{it}\char"#2}}%
\else
\mathord{\hbox{\usefont{OT1}{cmr}{m}{n}\char"#2}}%
\fi
\else
\ifx\math@version\math@boldchem
\ifm@thnorm@l
\mathord{\hbox{\usefont{OML}{cmm}{b}{it}\char"#2}}%
\else
\mathord{\hbox{\usefont{OT1}{cmr}{b}{n}\char"#2}}%
\fi
\else
\ifx\math@version\math@bold
\ifupgreekrm
\ifm@thnorm@l
\mathord{\hbox{\usefont{OML}{cmm}{b}{it}\char"#2}}%
\else
\mathord{\hbox{\usefont{OT1}{cmr}{b}{n}\char"#2}}%
\fi
%%%\upgreekrmfalse
\else
\mathord{\hbox{\usefont{OML}{cmm}{b}{it}\char"#2}}%
\fi
\else
\csname old#1\endcsname
\fi\fi\fi}\egroup}}%added 2010/11/21 by S. Fujita
\def\ctSFOpalette#1#2#3{%
\mathchoice
{#2{\hbox{\usefont{OML}{cmm}{#1}{it}\char"#3}}}%
{#2{\hbox{\usefont{OML}{cmm}{#1}{it}\char"#3}}}%
{#2{\hbox{\scriptsize\usefont{OML}{cmm}{#1}{it}\char"#3}}}%
{#2{\hbox{\tiny\usefont{OML}{cmm}{#1}{it}\char"#3}}}%
}
\def\chemtimesSubFontOrd#1#2#3{%
\expandafter\def\csname #1\endcsname{\bgroup%added 2010/11/21 by S. Fujita
 \PackageWarning{chemtimes}
  {The symbol \expandafter\string\csname #1\endcsname\space
  is not available with this package.
  This font will be substituted by an appropriate commputer modern font}%
\ifx\math@version\math@chem
\ctSFOpalette{m}{#2}{#3}%
\else\ifx\math@version\math@boldchem
\ctSFOpalette{b}{#2}{#3}%
\else\ifx\math@version\math@bold
\ctSFOpalette{b}{#2}{#3}%
\else\ifx\math@version\math@normal
\ctSFOpalette{m}{#2}{#3}%
\else
\ctSFOpalette{m}{#2}{#3}%
\fi\fi\fi\fi\egroup}}%added 2010/11/21 by S. Fujita
\def\ctSFBpalette#1#2#3{%
\mathchoice
{#2{\hbox{\usefont{OMS}{cmsy}{#1}{n}\char"#3}}}%
{#2{\hbox{\usefont{OMS}{cmsy}{#1}{n}\char"#3}}}%
{#2{\hbox{\scriptsize\usefont{OMS}{cmsy}{#1}{n}\char"#3}}}%
{#2{\hbox{\tiny\usefont{OMS}{cmsy}{#1}{n}\char"#3}}}%
}
\def\ctSFBBpalette#1#2#3{%
\mathchoice
{#2{\hbox{\usefont{OMS}{cmm}{#1}{n}\char"#3}}}%
{#2{\hbox{\usefont{OMS}{cmm}{#1}{n}\char"#3}}}%
{#2{\hbox{\scriptsize\usefont{OMS}{cmm}{#1}{n}\char"#3}}}%
{#2{\hbox{\tiny\usefont{OMS}{cmm}{#1}{n}\char"#3}}}%
}
\def\chemtimesSubFontBin#1#2#3{%
\expandafter\def\csname #1\endcsname{\bgroup%added 2010/11/21 by S. Fujita
 \PackageWarning{chemtimes}
  {The symbol \expandafter\string\csname #1\endcsname\space
  is not available with this package.
  This font will be substituted by an appropriate commputer modern font}%
\ifx\math@version\math@chem
\ctSFBpalette{m}{#2}{#3}%
\else\ifx\math@version\math@boldchem
\ctSFBpalette{b}{#2}{#3}%
\else\ifx\math@version\math@bold
\ctSFBpalette{b}{#2}{#3}%
\else\ifx\math@version\math@normal
\ctSFBpalette{m}{#2}{#3}%
\else
\ctSFBBpalette{m}{#2}{#3}%
\fi\fi\fi\fi\egroup}}%added 2010/11/21 by S. Fujita
\def\chemtimesSubFontLOp#1#2#3{%
\expandafter\def\csname #1\endcsname{\bgroup%%added 2010/11/21 by S. Fujita
 \PackageWarning{chemtimes}
  {The symbol \expandafter\string\csname #1\endcsname\space
  is not available with this package.
  This font will be substituted by an appropriate commputer modern font}%
\ifx\math@version\math@chem
\mathop{\mathchoice%
{\raise2.2ex\hbox{\usefont{OMX}{cmex}{m}{n}\char"#3}}%
{\raise1.8ex\hbox{\usefont{OMX}{cmex}{m}{n}\char"#2}}{}{}%
}%
\else\ifx\math@version\math@boldchem
\mathop{\mathchoice%
{\raise2.2ex\hbox{\usefont{OMX}{cmex}{b}{n}\char"#3}}%
{\raise1.8ex\hbox{\usefont{OMX}{cmex}{b}{n}\char"#2}}{}{}%
}%
\else\ifx\math@version\math@bold
\mathop{\mathchoice%
{\raise2.2ex\hbox{\usefont{OMX}{cmex}{b}{n}\char"#3}}%
{\raise1.8ex\hbox{\usefont{OMX}{cmex}{b}{n}\char"#2}}{}{}%
}%
\else\ifx\math@version\math@normal
\mathop{\mathchoice%
{\raise2.2ex\hbox{\usefont{OMX}{cmex}{m}{n}\char"#3}}%
{\raise1.8ex\hbox{\usefont{OMX}{cmex}{m}{n}\char"#2}}{}{}%
}%
\else
\mathop{\mathchoice%
{\raise2.2ex\hbox{\usefont{OMX}{cmex}{m}{n}\char"#3}}%
{\raise1.8ex\hbox{\usefont{OMX}{cmex}{m}{n}\char"#2}}{}{}%
}%
\fi\fi\fi\fi\egroup}}%%added 2010/11/21 by S. Fujita
\def\SetChemSymbol{%
\chemGreekletter{alpha}{0B}%
\chemGreekletter{beta}{0C}%
\chemGreekletter{gamma}{0D}%
\chemGreekletter{delta}{0E}%
\chemGreekletter{epsilon}{0F}%
\chemGreekletter{zeta}{10}%
\chemGreekletter{eta}{11}%
\chemGreekletter{theta}{12}%
\chemGreekletter{iota}{13}%
\chemGreekletter{kappa}{14}%
\chemGreekletter{lambda}{15}%
\chemGreekletter{mu}{16}%
\chemGreekletter{nu}{17}%
\chemGreekletter{xi}{18}%
\chemGreekletter{pi}{19}%
\chemGreekletter{rho}{1A}%
\chemGreekletter{sigma}{1B}%
\chemGreekletter{tau}{1C}%
\chemGreekletter{upsilon}{1D}%
\chemGreekletter{phi}{1E}%
\chemGreekletter{chi}{1F}%
\chemGreekletter{psi}{20}%
\chemGreekletter{omega}{21}%
\chemGreekletter{varepsilon}{22}%
\chemGreekletter{vartheta}{23}%
\chemGreekletter{varpi}{24}%
\chemGreekletter{varrho}{25}%
\chemGreekletter{varsigma}{26}%
\chemGreekletter{varphi}{27}%
\chemUpGreekletter{Gamma}{00}%
\chemUpGreekletter{Delta}{01}%
\chemUpGreekletter{Theta}{02}%
\chemUpGreekletter{Lambda}{03}%
\chemUpGreekletter{Xi}{04}%
\chemUpGreekletter{Pi}{05}%
\chemUpGreekletter{Sigma}{06}%
\chemUpGreekletter{Upsilon}{07}%
\chemUpGreekletter{Phi}{08}%
\chemUpGreekletter{Psi}{09}%
\chemUpGreekletter{Omega}{0A}%
\chemtimesSubFontOrd{imath}{\mathord}{7B}%
\chemtimesSubFontOrd{jmath}{\mathord}{7C}%
\chemtimesSubFontBin{amalg}{\mathbin}{71}%
\chemtimesSubFontLOp{coprod}{60}{61}%
\chemtimesSubFontOrd{mathless}{\mathrel}{3C}%
\chemtimesSubFontOrd{mathgreater}{\mathrel}{3E}%
\chemtimesSubFontOrd{leftharpoonup}{\mathrel}{28}%
\chemtimesSubFontOrd{leftharpoondown}{\mathrel}{29}%
\chemtimesSubFontOrd{rightharpoonup}{\mathrel}{2A}%
\chemtimesSubFontOrd{rightharpoondown}{\mathrel}{2B}%
\chemtimesSubFontOrd{ell}{\mathord}{60}%
\chemtimesSubFontOrd{wp}{\mathord}{7D}%
\chemtimesSubFontOrd{partial}{\mathord}{40}%
\chemtimesSubFontOrd{flat}{\mathord}{5B}%
\chemtimesSubFontOrd{natural}{\mathord}{5C}%
\chemtimesSubFontOrd{sharp}{\mathord}{5D}%
\chemtimesSubFontOrd{triangleleft}{\mathbin}{2F}%
\chemtimesSubFontOrd{triangleright}{\mathbin}{2E}%
\chemtimesSubFontOrd{smile}{\mathrel}{5E}%
\chemtimesSubFontOrd{frown}{\mathrel}{5F}%
\chemtimesSubFontOrd{star}{\mathbin}{3F}%
\ChemAccent{vec}{\rlap}{7E}%
}
\DeclareRobustCommand\mathversion[1]
         {\@nomath\mathversion
          \expandafter\ifx\csname mv@#1\endcsname\relax
          \@latex@error{Math version `#1' is not defined}\@eha\else
          \edef\math@version{#1}%
          \gdef\glb@currsize{}%
%%%%%%2002/5/30 and 2004/11/17
\ifx\math@version\math@chem
 \mathcode`\.="012E
 \mathcode`\,="612C
 \mathcode`\/="012F
 \SetChemSymbol
\else\ifx\math@version\math@boldchem
 \mathcode`\.="012E
 \mathcode`\,="612C
 \mathcode`\/="012F
 \SetChemSymbol
\else\ifx\math@version\math@bold
 \mathcode`\.="012E
 \mathcode`\,="612C
 \mathcode`\/="012F
 \SetChemSymbol%
\else
 \mathcode`\.="013A
 \mathcode`\,="613B
 \mathcode`\/="013D
 \SetChemSymbol%
\fi\fi\fi
%%%%%%
          \aftergroup\glb@settings
          \fi}
\ifnewl@tex
\@ifundefined{mv@chem}{%
\DeclareMathVersion{chem}%
\SetSymbolFont{letters}{chem}     {OT1}{ptm}{m}{n}%
\SetSymbolFont{operators}{chem}   {OT1}{ztmcm} {m}{n}%
\SetSymbolFont{symbols}  {chem}   {OMS}{ztmcm}{m}{n}%
\SetSymbolFont{largesymbols}{chem}{OMX}{ztmcm}{b}{n}%
\DeclareMathVersion{boldchem}%2009/10/23<--2002/5/30
\SetSymbolFont{letters}{boldchem}     {OT1}{ptm}{b}{n}%
\SetSymbolFont{operators}{boldchem}   {OT1}{ptm}{b}{n}%
\SetSymbolFont{symbols}{boldchem}     {OMS}{ptm}{b}{n}%
\SetSymbolFont{largesymbols}{boldchem}{OMX}{ztmcm}{b}{n}%
}{%
   \PackageWarning%
   {chemtimes}%
   {The mathversion "chem" or "boldchem" has been already defined. ^^J%
   The old mathversion remains effective unless it is removed. }%
}
\else
   \PackageWarning%
   {chemtimes}%
   {Mathversions cannot be defined. Use LaTeX2e or a later version.}%
\fi
\DeclareRobustCommand\hbar{{%from mathptmx package
\dimen@.06em \dimen@ii.06em%
\def\@tempa##1##2{%
   \lower##1\dimen@\rlap{\kern##1\dimen@ii\the##2 0\char22}}%
 \mathchoice{\@tempa{\@ne}{\textfont}}%
            {\@tempa{\@ne}{\textfont}}%
            {\@tempa{\defaultscriptratio}{\scriptfont}}%
            {\@tempa{\defaultscriptscriptratio}{\scriptscriptfont}}%
  h}}
\let\oldmathnormal=\mathnormal
\def\mathnormal#1{%
\ifx\math@version\math@chem
\m@thnorm@ltrue
\ensuremath{\it \usefont{OML}{cmm}{m}{it}#1}%
\else\ifx\math@version\math@boldchem
\m@thnorm@ltrue
\ensuremath{\bfit \usefont{OML}{cmm}{b}{it}#1}%
\else\ifx\math@version\math@bold
\ifupgreekrm
\m@thnorm@ltrue
\ensuremath{\bfit \usefont{OML}{cmm}{b}{it}#1}%
\else
\ensuremath{\usefont{OML}{cmm}{b}{it}#1}%
\fi
\else
\oldmathnormal{#1}%
\fi\fi\fi%
\m@thnorm@lfalse
}%
\def\oldstyle{\egroup%
\ifx\math@version\math@chem
\hbox\bgroup\usefont{OML}{cmm}{m}{it}%
\else\ifx\math@version\math@boldchem
\hbox\bgroup\usefont{OML}{cmm}{b}{it}%
\else\ifx\math@version\math@bold
\ifupgreekrm
\oldmathnormal\bgroup%
\upgreekrmfalse
\else
\hbox\bgroup\usefont{OML}{cmm}{b}{it}%
\fi
\else
\oldmathnormal\bgroup%
\fi\fi\fi}%
\let\oldmathcal=\mathcal
\def\mathcal#1{%
\ifx\math@version\math@chem
\mathgroup\tw@{\usefont{OMS}{cmsy}{m}{n}#1}%
\else\ifx\math@version\math@boldchem
\mathgroup\tw@{\usefont{OMS}{cmsy}{b}{n}#1}%
\else\ifx\math@version\math@bold
\ifupgreekrm \oldmathcal{#1}%\upgreekrmfalse
\else \oldmathcal{#1}\fi
\else
\oldmathcal{#1}%
\fi\fi\fi}%
\let\oldcal=\cal
\def\cal{%
\ifx\math@version\math@chem
\mathgroup\tw@\usefont{OMS}{cmsy}{m}{n}%
\else\ifx\math@version\math@boldchem
\mathgroup\tw@\usefont{OMS}{cmsy}{b}{n}%
\else\ifx\math@version\math@bold
\ifupgreekrm \oldcal\upgreekrmfalse
\else\oldcal\fi
\else
\oldcal%
\fi\fi\fi}%
\mathversion{normal}%default setting
\endinput
%%
%% End of file `chemtimes.sty'.