Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-isotope.sty

raw
1 %%
2 %% This is file `lwarp-isotope.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `isotope')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackagePass{isotope}[2011/08/26]
19 \newcommand{\LWR@HTML@isotope@two}[2][]{%
20 \renewcommand{\isotope@atomicnumber}{#1}%
21 \edef\LWR@isotope@alttag{%
22 \textbackslash(
23 \textbackslash{}isotope
24 [\isotope@nucleonnumber]%
25 [\isotope@atomicnumber]%
26 \{#2\}
27 \textbackslash)%
28 }%
29 \ifbool{mathjax}%
30 {\LWR@isotope@alttag}%
31 {% SVG
32 \m@th%
33 \LWR@subsingledollar*%
34 {% alt tag
35 \LWR@isotope@alttag%
36 }%
37 {isotope}% add'l hashing
38 {% contents
39 \settowidth\@tempdimb{%
40 \ensuremath{\scriptstyle\isotope@nucleonnumber}%
41 }%
42 \settowidth\@tempdimc{%
43 \ensuremath{\scriptstyle\isotope@atomicnumber}%
44 }%
45 \ifdim\@tempdimb<\@tempdimc\@tempdimb=\@tempdimc\fi%
46 \ensuremath{
47 {}%
48 ^{\makebox[\@tempdimb][r]{%
49 \ensuremath{%
50 \scriptstyle\isotope@nucleonnumber%
51 }% ensuremath
52 }}%
53 _{\makebox[\@tempdimb][r]{%
54 \ensuremath{%
55 \scriptstyle\isotope@atomicnumber%
56 }% ensuremath
57 }}%
58 \isotopestyle{#2}%
59 }% ensuremath
60 }% contents
61 }% SVG
62 \endgroup%
63 }%
64 \LWR@formatted{isotope@two}
65
66 \begin{warpMathJax}
67 \CustomizeMathJax{%
68 \newcommand{\LWRisotopetwo}[2][]{%
69 {%
70 \vphantom{\mathrm{#2}}%
71 {}^{\LWRisotopenucleonnumber}_{#1}%
72 \mathrm{#2}%
73 }%
74 }%
75 }
76
77 \CustomizeMathJax{%
78 \newcommand{\isotope}[1][]{%
79 \def\LWRisotopenucleonnumber{#1}%
80 \LWRisotopetwo%
81 }%
82 }
83 \end{warpMathJax}
84
85 \endinput
86 %%
87 %% End of file `lwarp-isotope.sty'.