summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-tensor.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-tensor.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-tensor.sty54
1 files changed, 54 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-tensor.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-tensor.sty
new file mode 100644
index 00000000000..5519c0b7fda
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-tensor.sty
@@ -0,0 +1,54 @@
+%%
+%% This is file `lwarp-tensor.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% lwarp.dtx (with options: `tensor')
+%% 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{tensor}[2004/12/20]
+\begin{warpMathJax}
+\CustomizeMathJax{\def\LWRtensorindicesthreesub#1#2{{_{#2}}\LWRtensorindicesthree}}
+\CustomizeMathJax{\def\LWRtensorindicesthreesup#1#2{{^{#2}}\LWRtensorindicesthree}}
+\CustomizeMathJax{\newcommand{\LWRtensorindicesthreenotsup}{}}
+\CustomizeMathJax{\newcommand{\LWRtensorindicesthreenotsub}{
+ \ifnextchar ^ \LWRtensorindicesthreesup \LWRtensorindicesthreenotsup
+}}
+
+\CustomizeMathJax{\newcommand{\LWRtensorindicesthree}{
+ \ifnextchar _ \LWRtensorindicesthreesub \LWRtensorindicesthreenotsub
+}}
+\CustomizeMathJax{\newcommand{\LWRtensorindicestwo}{
+ \ifstar\LWRtensorindicesthree\LWRtensorindicesthree
+}}
+\CustomizeMathJax{\newcommand{\indices}[1]{\LWRtensorindicestwo#1}}
+\CustomizeMathJax{\newcommand{\LWRtensortwo}[3][]{{}\indices{#1}{#2}\indices{#3}}}
+\CustomizeMathJax{\newcommand{\tensor}{\ifstar\LWRtensortwo\LWRtensortwo}}
+\CustomizeMathJax{%
+ \newcommand{\LWRnuclidetwo}[2][]{%
+ {%
+ \vphantom{\mathrm{#2}}%
+ {}^{\LWRtensornucleonnumber}_{#1}%
+ \mathrm{#2}%
+ }%
+ }%
+}
+\CustomizeMathJax{%
+ \newcommand{\nuclide}[1][]{%
+ \def\LWRtensornucleonnumber{#1}%
+ \LWRnuclidetwo%
+ }%
+}
+\end{warpMathJax}
+\endinput
+%%
+%% End of file `lwarp-tensor.sty'.