diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty | 74 |
1 files changed, 67 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty index 75541a2b778..520b2d5329f 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty @@ -118,21 +118,52 @@ \def\LWRAboxed#1!|!{\fbox{\(#1\)}&\fbox{\(#2\)}} \newcommand{\Aboxed}[1]{\LWRAboxed#1&&!|!} } - \CustomizeMathJax{ - \newcommand{\ArrowBetweenLines}[1][\Updownarrow]{#1}% no starred + \newcommand{\LWRABLines}[1][\Updownarrow]{#1 \notag \\}% star/nostar the same + \DeclareIfstar{\ArrowBetweenLines}{\LWRABLines}{\LWRABLines} } \CustomizeMathJax{\newcommand{\shortintertext}[1]{\text{#1}\notag \\}} \CustomizeMathJax{\newcommand{\vdotswithin}[1]{\hspace{.5em}\vdots}} -\CustomizeMathJax{\newcommand{\shortvdotswithin}[1]{ & \hspace{.5em}\vdots \\}} +\CustomizeMathJax{\newcommand{\LWRshortvdotswithinstar}[1]{\vdots \hspace{.5em} & \\}} +\CustomizeMathJax{\newcommand{\LWRshortvdotswithinnostar}[1]{& \hspace{.5em}\vdots \\}} +\CustomizeMathJax{% + \DeclareIfstar{\shortvdotswithin}% + {\LWRshortvdotswithinstar}% + {\LWRshortvdotswithinnostar}% +} + \CustomizeMathJax{\newcommand{\MTFlushSpaceAbove}{}} \CustomizeMathJax{\newcommand{\MTFlushSpaceBelow}{\\}} \LetLtxMacro\LWR@mathtools@orig@DeclarePairedDelimiter\DeclarePairedDelimiter \renewcommand{\DeclarePairedDelimiter}[3]{ \LWR@mathtools@orig@DeclarePairedDelimiter{#1}{#2}{#3} - \CustomizeMathJax{\newcommand{#1}[2][]{{##1#2##2##1#3}}} + \appto\LWR@customizedMathJax{\LWRbackslash(} + \appto\LWR@customizedMathJax{% + \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubstar\}% + }% + \appto\LWR@customizedMathJax{[2][]}% + \appto\LWR@customizedMathJax{\{\{}% + \LWR@subcustomizedmathjax{##1\left#2##2##1\right#3}% + \appto\LWR@customizedMathJax{\}\}}% + \appto\LWR@customizedMathJax{\LWRbackslash)\par}% + \appto\LWR@customizedMathJax{\LWRbackslash(} + \appto\LWR@customizedMathJax{% + \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubnostar\}% + }% + \appto\LWR@customizedMathJax{[2][]}% + \appto\LWR@customizedMathJax{\{\{}% + \LWR@subcustomizedmathjax{##1#2##2##1#3}% + \appto\LWR@customizedMathJax{\}\}}% + \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\}% + }% + \appto\LWR@customizedMathJax{\LWRbackslash)\par}% } \@onlypreamble\DeclareParedDelimiter @@ -142,7 +173,29 @@ \LWR@mathtools@orig@DeclarePairedDelimiterXPP{#1}[#2]{#3}{#4}{#5}{#6}{#7} \appto\LWR@customizedMathJax{\LWRbackslash(}% \appto\LWR@customizedMathJax{% - \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsub\}% + \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubsubstar\}% + }% + \appto\LWR@customizedMathJax{[#2]}% + \appto\LWR@customizedMathJax{\{\{\LWRbackslash{}left}% + \LWR@subcustomizedmathjax{#3#4#7}% + \appto\LWR@customizedMathJax{\LWRbackslash{}right}% + \LWR@subcustomizedmathjax{#5#6}% + \appto\LWR@customizedMathJax{\}\}}% + \appto\LWR@customizedMathJax{\LWRbackslash)\par}% + \appto\LWR@customizedMathJax{\LWRbackslash(}% + \appto\LWR@customizedMathJax{% + \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubstar\}[1][]% + }% + \appto\LWR@customizedMathJax{% + \{ + \LWRbackslash{}def\LWRbackslash{}delimsize\{\#1\} + \LWRbackslash\macrotocsname{#1}LWRsubsubstar + \}% + }% + \appto\LWR@customizedMathJax{\LWRbackslash)\par}% + \appto\LWR@customizedMathJax{\LWRbackslash(}% + \appto\LWR@customizedMathJax{% + \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubsubnostar\}% }% \appto\LWR@customizedMathJax{[#2]}% \appto\LWR@customizedMathJax{\{\{\LWRbackslash{}delimsize}% @@ -153,15 +206,22 @@ \appto\LWR@customizedMathJax{\LWRbackslash)\par}% \appto\LWR@customizedMathJax{\LWRbackslash(}% \appto\LWR@customizedMathJax{% - \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}\}[1][]% + \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubnostar\}[1][]% }% \appto\LWR@customizedMathJax{% \{ \LWRbackslash{}def\LWRbackslash{}delimsize\{\#1\} - \LWRbackslash\macrotocsname{#1}LWRsub + \LWRbackslash\macrotocsname{#1}LWRsubsubnostar \}% }% \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\}% + }% + \appto\LWR@customizedMathJax{\LWRbackslash)\par}% } \@onlypreamble\DeclareParedDelimiterXPP \@onlypreamble\DeclareParedDelimiterX |