Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-tensor.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `tensor')
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{tensor}[2004/12/20]
20 \begin{warpMathJax}
21 \CustomizeMathJax{\def\LWRtensorindicesthreesub#1#2{{_{#2}}\LWRtensorindicesthree}}
22 \CustomizeMathJax{\def\LWRtensorindicesthreesup#1#2{{^{#2}}\LWRtensorindicesthree}}
23 \CustomizeMathJax{\newcommand{\LWRtensorindicesthreenotsup}{}}
24 \CustomizeMathJax{\newcommand{\LWRtensorindicesthreenotsub}{
25 \ifnextchar ^ \LWRtensorindicesthreesup \LWRtensorindicesthreenotsup
26 }}
27
28 \CustomizeMathJax{\newcommand{\LWRtensorindicesthree}{
29 \ifnextchar _ \LWRtensorindicesthreesub \LWRtensorindicesthreenotsub
30 }}
31 \CustomizeMathJax{\newcommand{\LWRtensorindicestwo}{
32 \ifstar\LWRtensorindicesthree\LWRtensorindicesthree
33 }}
34 \CustomizeMathJax{\newcommand{\indices}[1]{\LWRtensorindicestwo#1}}
35 \CustomizeMathJax{\newcommand{\LWRtensortwo}[3][]{{}\indices{#1}{#2}\indices{#3}}}
36 \CustomizeMathJax{\newcommand{\tensor}{\ifstar\LWRtensortwo\LWRtensortwo}}
37 \CustomizeMathJax{%
38 \newcommand{\LWRnuclidetwo}[2][]{%
39 {%
40 \vphantom{\mathrm{#2}}%
41 {}^{\LWRtensornucleonnumber}_{#1}%
42 \mathrm{#2}%
43 }%
44 }%
45 }
46 \CustomizeMathJax{%
47 \newcommand{\nuclide}[1][]{%
48 \def\LWRtensornucleonnumber{#1}%
49 \LWRnuclidetwo%
50 }%
51 }
52 \end{warpMathJax}
53 \endinput
54 %%
55 %% End of file `lwarp-tensor.sty'.