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 | 133 |
1 files changed, 101 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty index 8bbe52a1058..70c119f42ac 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty @@ -50,7 +50,8 @@ \CustomizeMathJax{\newcommand{\crampedclap}[2][]{{#1#2}}} \CustomizeMathJax{\newenvironment{crampedsubarray}[1]{}{}} \CustomizeMathJax{\newcommand{\crampedsubstack}{}} -\CustomizeMathJax{\newcommand{\smashoperator}[2][]{#2}} +\CustomizeMathJax{\newcommand{\smashoperator}[2][]{#2\limits}} +\CustomizeMathJax{\newcommand{\adjustlimits}{}} \CustomizeMathJax{\newcommand{\SwapAboveDisplaySkip}{}} \CustomizeMathJax{\require{extpfeil}} @@ -68,10 +69,14 @@ \CustomizeMathJax{\Newextarrow\xleftharpoonup{10,10}{0x21bc}} \CustomizeMathJax{\Newextarrow\xleftrightharpoons{10,10}{0x21cb}} -\CustomizeMathJax{\newcommand{\LWRdounderbracket}[1]{\underline{#1}}} +\CustomizeMathJax{\newcommand{\LWRdounderbracket}[3]{% + \mathinner{\underset{#3}{\underline{\llcorner{#1}\lrcorner}}}% +}} \CustomizeMathJax{\newcommand{\LWRunderbracket}[2][]{\LWRdounderbracket{#2}}} \CustomizeMathJax{\newcommand{\underbracket}[1][]{\LWRunderbracket}} -\CustomizeMathJax{\newcommand{\LWRdooverbracket}[1]{\overline{#1}}} +\CustomizeMathJax{\newcommand{\LWRdooverbracket}[3]{% + \mathinner{\overset{#3}{\overline{\ulcorner{#1}\urcorner}}}% +}} \CustomizeMathJax{\newcommand{\LWRoverbracket}[2][]{\LWRdooverbracket{#2}}} \CustomizeMathJax{\newcommand{\overbracket}[1][]{\LWRoverbracket}} @@ -118,22 +123,53 @@ \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 + \newcommand{\ArrowBetweenLines}{\ifstar\LWRABLines\LWRABLines} } - -\CustomizeMathJax{\newcommand{\shortintertext}[1]{\\ \text{#1}\notag \\}} +\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{% + \newcommand{\shortvdotswithin}% + {\ifstar\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{}newcommand\{\LWRbackslash{}\macrotocsname{#1}\}% + \{\LWRbackslash{}ifstar% + \LWRbackslash{}\macrotocsname{#1}LWRsubstar% + \LWRbackslash{}\macrotocsname{#1}LWRsubnostar% + \}% + }% + \appto\LWR@customizedMathJax{\LWRbackslash)\par}% } \@onlypreamble\DeclareParedDelimiter @@ -143,7 +179,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}% @@ -154,13 +212,24 @@ \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{}newcommand\{% + \LWRbackslash{}\macrotocsname{#1}% \}% + \{\LWRbackslash{}ifstar% + \LWRbackslash{}\macrotocsname{#1}LWRsubstar% + \LWRbackslash{}\macrotocsname{#1}LWRsubnostar% + \}% }% \appto\LWR@customizedMathJax{\LWRbackslash)\par}% } @@ -169,28 +238,28 @@ \CustomizeMathJax{\newcommand\lparen{(}} \CustomizeMathJax{\newcommand\rparen{)}} -\CustomizeMathJax{\newcommand{\vcentcolon}{:}} \CustomizeMathJax{\newcommand{\ordinarycolon}{:}} +\CustomizeMathJax{\newcommand{\vcentcolon}{\mathrel{\unicode{x2236}}}} + +\CustomizeMathJax{\newcommand\dblcolon{\mathrel{\unicode{x2237}}}} +\CustomizeMathJax{\newcommand\coloneqq{\mathrel{\unicode{x2236}\!=}}} +\CustomizeMathJax{\newcommand\Coloneqq{\mathrel{\unicode{x2237}\!=}}} +\CustomizeMathJax{\newcommand\coloneq{\mathrel{\unicode{x2236}-}}} +\CustomizeMathJax{\newcommand\Coloneq{\mathrel{\unicode{x2237}-}}} + +\CustomizeMathJax{\newcommand\eqqcolon{\mathrel{=\!\unicode{x2236}}}} +\CustomizeMathJax{\newcommand\Eqqcolon{\mathrel{=\!\unicode{x2237}}}} +\CustomizeMathJax{\newcommand\eqcolon{\mathrel{-\unicode{x2236}}}} +\CustomizeMathJax{\newcommand\Eqcolon{\mathrel{-\unicode{x2237}}}} + +\CustomizeMathJax{\newcommand\colonapprox{\mathrel{\unicode{x2236}\!\approx}}} +\CustomizeMathJax{\newcommand\Colonapprox{\mathrel{\unicode{x2237}\!\approx}}} +\CustomizeMathJax{\newcommand\colonsim{\mathrel{\unicode{x2236}\!\sim}}} +\CustomizeMathJax{\newcommand\Colonsim{\mathrel{\unicode{x2237}\!\sim}}} -\CustomizeMathJax{\newcommand\dblcolon{\vcentcolon\vcentcolon}} -\CustomizeMathJax{\newcommand\coloneqq{\vcentcolon=}} -\CustomizeMathJax{\newcommand\Coloneqq{\dblcolon=}} -\CustomizeMathJax{\newcommand\coloneq{\vcentcolon{-}}} -\CustomizeMathJax{\newcommand\Coloneq{\dblcolon{-}}} - -\CustomizeMathJax{\newcommand\eqqcolon{=\vcentcolon}} -\CustomizeMathJax{\newcommand\Eqqcolon{=\dblcolon}} -\CustomizeMathJax{\newcommand\eqcolon{\mathrel{-}\vcentcolon}} -\CustomizeMathJax{\newcommand\Eqcolon{\mathrel{-}\dblcolon}} - -\CustomizeMathJax{\newcommand\colonapprox{\vcentcolon\approx}} -\CustomizeMathJax{\newcommand\Colonapprox{\dblcolon\approx}} -\CustomizeMathJax{\newcommand\colonsim{\vcentcolon\sim}} -\CustomizeMathJax{\newcommand\Colonsim{\dblcolon\sim}} - -\CustomizeMathJax{\newcommand{\nuparrow}{\cancel{\uparrow}}} -\CustomizeMathJax{\newcommand{\ndownarrow}{\cancel{\downarrow}}} -\CustomizeMathJax{\newcommand{\bigtimes}{{\Large\times}}} +\CustomizeMathJax{\newcommand{\nuparrow}{\mathrel{\cancel{\uparrow}}}} +\CustomizeMathJax{\newcommand{\ndownarrow}{\mathrel{\cancel{\downarrow}}}} +\CustomizeMathJax{\newcommand{\bigtimes}{\mathop{\Large\times}\limits}} \CustomizeMathJax{\newcommand{\prescript}[3]{{}^{#1}_{#2}#3}} |