summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty29
1 files changed, 17 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty
index 520b2d5329f..630f4ebe68c 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty
@@ -68,10 +68,10 @@
\CustomizeMathJax{\Newextarrow\xleftharpoonup{10,10}{0x21bc}}
\CustomizeMathJax{\Newextarrow\xleftrightharpoons{10,10}{0x21cb}}
-\CustomizeMathJax{\newcommand{\LWRdounderbracket}[1]{\underline{#1}}}
+\CustomizeMathJax{\newcommand{\LWRdounderbracket}[3]{\underset{#3}{\underline{#1}}}}
\CustomizeMathJax{\newcommand{\LWRunderbracket}[2][]{\LWRdounderbracket{#2}}}
\CustomizeMathJax{\newcommand{\underbracket}[1][]{\LWRunderbracket}}
-\CustomizeMathJax{\newcommand{\LWRdooverbracket}[1]{\overline{#1}}}
+\CustomizeMathJax{\newcommand{\LWRdooverbracket}[3]{\overset{#3}{\overline{#1}}}}
\CustomizeMathJax{\newcommand{\LWRoverbracket}[2][]{\LWRdooverbracket{#2}}}
\CustomizeMathJax{\newcommand{\overbracket}[1][]{\LWRoverbracket}}
@@ -120,7 +120,7 @@
}
\CustomizeMathJax{
\newcommand{\LWRABLines}[1][\Updownarrow]{#1 \notag \\}% star/nostar the same
- \DeclareIfstar{\ArrowBetweenLines}{\LWRABLines}{\LWRABLines}
+ \newcommand{\ArrowBetweenLines}{\ifstar\LWRABLines\LWRABLines}
}
\CustomizeMathJax{\newcommand{\shortintertext}[1]{\text{#1}\notag \\}}
@@ -128,9 +128,8 @@
\CustomizeMathJax{\newcommand{\LWRshortvdotswithinstar}[1]{\vdots \hspace{.5em} & \\}}
\CustomizeMathJax{\newcommand{\LWRshortvdotswithinnostar}[1]{& \hspace{.5em}\vdots \\}}
\CustomizeMathJax{%
- \DeclareIfstar{\shortvdotswithin}%
- {\LWRshortvdotswithinstar}%
- {\LWRshortvdotswithinnostar}%
+ \newcommand{\shortvdotswithin}%
+ {\ifstar\LWRshortvdotswithinstar\LWRshortvdotswithinnostar}%
}
\CustomizeMathJax{\newcommand{\MTFlushSpaceAbove}{}}
@@ -159,9 +158,11 @@
\appto\LWR@customizedMathJax{\LWRbackslash)\par}%
\appto\LWR@customizedMathJax{\LWRbackslash(}
\appto\LWR@customizedMathJax{%
- \LWRbackslash{}DeclareIfstar\{\LWRbackslash{}\macrotocsname{#1}\}%
- \{\LWRbackslash{}\macrotocsname{#1}LWRsubstar\}%
- \{\LWRbackslash{}\macrotocsname{#1}LWRsubnostar\}%
+ \LWRbackslash{}newcommand\{\LWRbackslash{}\macrotocsname{#1}\}%
+ \{\LWRbackslash{}ifstar%
+ \LWRbackslash{}\macrotocsname{#1}LWRsubstar%
+ \LWRbackslash{}\macrotocsname{#1}LWRsubnostar%
+ \}%
}%
\appto\LWR@customizedMathJax{\LWRbackslash)\par}%
}
@@ -217,9 +218,13 @@
\appto\LWR@customizedMathJax{\LWRbackslash)\par}%
\appto\LWR@customizedMathJax{\LWRbackslash(}
\appto\LWR@customizedMathJax{%
- \LWRbackslash{}DeclareIfstar\{\LWRbackslash{}\macrotocsname{#1}\}%
- \{\LWRbackslash{}\macrotocsname{#1}LWRsubstar\}%
- \{\LWRbackslash{}\macrotocsname{#1}LWRsubnostar\}%
+ \LWRbackslash{}newcommand\{%
+ \LWRbackslash{}\macrotocsname{#1}%
+ \}%
+ \{\LWRbackslash{}ifstar%
+ \LWRbackslash{}\macrotocsname{#1}LWRsubstar%
+ \LWRbackslash{}\macrotocsname{#1}LWRsubnostar%
+ \}%
}%
\appto\LWR@customizedMathJax{\LWRbackslash)\par}%
}