blob: 45c6a573da158742d6975f0d58905dab4c2d4bbe (
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
|
%%
%% This is file `lwarp-isotope.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `isotope')
%% This is a generated file.
%% Copyright 2016-2020 Brian Dunn
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{isotope}[2011/08/26]
\newcommand{\LWR@HTML@isotope@two}[2][]{%
\renewcommand{\isotope@atomicnumber}{#1}%
\edef\LWR@isotope@alttag{%
\textbackslash(
\textbackslash{}isotope
[\isotope@nucleonnumber]%
[\isotope@atomicnumber]%
\{#2\}
\textbackslash)%
}%
\ifbool{mathjax}%
{\LWR@isotope@alttag}%
{% SVG
\m@th%
\LWR@subsingledollar*%
{% alt tag
\LWR@isotope@alttag%
}%
{isotope}% add'l hashing
{% contents
\settowidth\@tempdimb{%
\ensuremath{\scriptstyle\isotope@nucleonnumber}%
}%
\settowidth\@tempdimc{%
\ensuremath{\scriptstyle\isotope@atomicnumber}%
}%
\ifdim\@tempdimb<\@tempdimc\@tempdimb=\@tempdimc\fi%
\ensuremath{
{}%
^{\makebox[\@tempdimb][r]{%
\ensuremath{%
\scriptstyle\isotope@nucleonnumber%
}% ensuremath
}}%
_{\makebox[\@tempdimb][r]{%
\ensuremath{%
\scriptstyle\isotope@atomicnumber%
}% ensuremath
}}%
\isotopestyle{#2}%
}% ensuremath
}% contents
}% SVG
\endgroup%
}%
\LWR@formatted{isotope@two}
\begin{warpMathJax}
\CustomizeMathJax{%
\newcommand{\LWRisotopetwo}[2][]{%
{%
\vphantom{\mathrm{#2}}%
{}^{\LWRisotopenucleonnumber}_{#1}%
\mathrm{#2}%
}%
}%
}
\CustomizeMathJax{%
\newcommand{\isotope}[1][]{%
\def\LWRisotopenucleonnumber{#1}%
\LWRisotopetwo%
}%
}
\end{warpMathJax}
\endinput
%%
%% End of file `lwarp-isotope.sty'.
|