Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-subsupscripts.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `subsupscripts')
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
19 \LWR@ProvidesPackagePass{subsupscripts}[2009/10/27]
20 \begin{warpMathJax}
21 \CustomizeMathJax{%
22 \newcommand{\fourscriptsC}[7]{%
23 {}^{#2}_{#3}\hspace{#6}#1\hspace{#7}{}^{#4}_{#5}%
24 }
25 }
26 \CustomizeMathJax{%
27 \newcommand{\lrsubscriptsC}[5]{%
28 \fourscriptsC{#1}{}{#2}{}{#3}{#4}{#5}%
29 }
30 }
31 \CustomizeMathJax{%
32 \newcommand{\lrsuperscriptsC}[5]{%
33 \fourscriptsC{#1}{#2}{}{#3}{}{#4}{#5}%
34 }
35 }
36 \CustomizeMathJax{%
37 \newcommand{\fourscripts}[5]{%
38 \fourscriptsC{#1}{#2}{#3}{#4}{#5}{0ex}{0ex}%
39 }
40 }
41 \CustomizeMathJax{%
42 \newcommand{\lrsubscripts}[3]{\fourscripts{#1}{}{#2}{}{#3}}
43 }
44 \CustomizeMathJax{%
45 \newcommand{\lrsuperscripts}[3]{\fourscripts{#1}{#2}{}{#3}{}}
46 }
47 \CustomizeMathJax{%
48 \newcommand{\twolscripts}[4][-.16ex]{{}^{#3}_{#4}\hspace{#1}#2}
49 }
50 \CustomizeMathJax{%
51 \newcommand{\tworscripts}[4][-.07ex]{#2\hspace{#1}{}^{#3}_{#4}}
52 }
53 \CustomizeMathJax{%
54 \newcommand{\lsubscript}[3][-.16ex]{\twolscripts[#1]{#2}{}{#3}}
55 }
56 \CustomizeMathJax{%
57 \newcommand{\lsuperscript}[3][-.16ex]{\twolscripts[#1]{#2}{#3}{}}
58 }
59 \CustomizeMathJax{%
60 \newcommand{\rsubscript}[3][-.07ex]{\tworscripts[#1]{#2}{}{#3}}
61 }
62 \CustomizeMathJax{%
63 \newcommand{\rsuperscript}[3][-.07ex]{\tworscripts[#1]{#2}{#3}{}}
64 }
65 \end{warpMathJax}
66 \endinput
67 %%
68 %% End of file `lwarp-subsupscripts.sty'.