You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tex-compiler/texmf-dist/tex/latex/lwarp/lwarp-mathtools.sty

280 lines
12 KiB

%%
%% This is file `lwarp-mathtools.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `mathtools')
%% 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{mathtools}[2018/01/08]
\RequirePackage{graphicx}
\MHInternalSyntaxOn
\renewcommand*\MT_showonlyrefs_true:{%
\PackageWarningNoLine{lwarp}
{%
Mathtools \space showonlyrefs \space conflicts \space
with \space cleveref,\MessageBreak
which \space is \space used \space by \space lwarp, \space
so \space showonlyrefs \space is\MessageBreak
forced \space off. \space\space
Equation \space numbers \space may \space not \space match%
}
\MT_showonlyrefs_false:
}
\mathtoolsset{showonlyrefs=false}
\renewcommand*{\MT_mathic_true:}{\MT_mathic_false:}
\mathtoolsset{mathic=false}
\MHInternalSyntaxOff
\begin{warpMathJax}
\LWR@infoprocessingmathjax{mathtools}
\CustomizeMathJax{\newcommand{\mathllap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\mathrlap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\mathclap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\mathmbox}[1]{#1}}
\CustomizeMathJax{\newcommand{\clap}[1]{#1}}
\CustomizeMathJax{\newcommand{\LWRmathmakebox}[2][]{#2}}
\CustomizeMathJax{\newcommand{\mathmakebox}[1][]{\LWRmathmakebox}}
\CustomizeMathJax{\newcommand{\cramped}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\crampedllap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\crampedrlap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\crampedclap}[2][]{{#1#2}}}
\CustomizeMathJax{\newenvironment{crampedsubarray}[1]{}{}}
\CustomizeMathJax{\newcommand{\crampedsubstack}{}}
\CustomizeMathJax{\newcommand{\smashoperator}[2][]{#2}}
\CustomizeMathJax{\newcommand{\SwapAboveDisplaySkip}{}}
\CustomizeMathJax{\require{extpfeil}}
\CustomizeMathJax{\Newextarrow\xleftrightarrow{10,10}{0x2194}}
\CustomizeMathJax{\Newextarrow\xLeftarrow{10,10}{0x21d0}}
\CustomizeMathJax{\Newextarrow\xhookleftarrow{10,10}{0x21a9}}
\CustomizeMathJax{\Newextarrow\xmapsto{10,10}{0x21a6}}
\CustomizeMathJax{\Newextarrow\xRightarrow{10,10}{0x21d2}}
\CustomizeMathJax{\Newextarrow\xLeftrightarrow{10,10}{0x21d4}}
\CustomizeMathJax{\Newextarrow\xhookrightarrow{10,10}{0x21aa}}
\CustomizeMathJax{\Newextarrow\xrightharpoondown{10,10}{0x21c1}}
\CustomizeMathJax{\Newextarrow\xleftharpoondown{10,10}{0x21bd}}
\CustomizeMathJax{\Newextarrow\xrightleftharpoons{10,10}{0x21cc}}
\CustomizeMathJax{\Newextarrow\xrightharpoonup{10,10}{0x21c0}}
\CustomizeMathJax{\Newextarrow\xleftharpoonup{10,10}{0x21bc}}
\CustomizeMathJax{\Newextarrow\xleftrightharpoons{10,10}{0x21cb}}
\CustomizeMathJax{\newcommand{\LWRdounderbracket}[3]{\underset{#3}{\underline{#1}}}}
\CustomizeMathJax{\newcommand{\LWRunderbracket}[2][]{\LWRdounderbracket{#2}}}
\CustomizeMathJax{\newcommand{\underbracket}[1][]{\LWRunderbracket}}
\CustomizeMathJax{\newcommand{\LWRdooverbracket}[3]{\overset{#3}{\overline{#1}}}}
\CustomizeMathJax{\newcommand{\LWRoverbracket}[2][]{\LWRdooverbracket{#2}}}
\CustomizeMathJax{\newcommand{\overbracket}[1][]{\LWRoverbracket}}
\CustomizeMathJax{\newcommand{\LaTeXunderbrace}[1]{\underbrace{#1}}}
\CustomizeMathJax{\newcommand{\LaTeXoverbrace}[1]{\overbrace{#1}}}
\CustomizeMathJax{\newenvironment{matrix*}[1][]{\begin{matrix}}{\end{matrix}}}
\CustomizeMathJax{\newenvironment{pmatrix*}[1][]{\begin{pmatrix}}{\end{pmatrix}}}
\CustomizeMathJax{\newenvironment{bmatrix*}[1][]{\begin{bmatrix}}{\end{bmatrix}}}
\CustomizeMathJax{\newenvironment{Bmatrix*}[1][]{\begin{Bmatrix}}{\end{Bmatrix}}}
\CustomizeMathJax{\newenvironment{vmatrix*}[1][]{\begin{vmatrix}}{\end{vmatrix}}}
\CustomizeMathJax{\newenvironment{Vmatrix*}[1][]{\begin{Vmatrix}}{\end{Vmatrix}}}
\CustomizeMathJax{\newenvironment{smallmatrix*}[1][]{\begin{matrix}}{\end{matrix}}}
\CustomizeMathJax{\newenvironment{psmallmatrix*}[1][]{\begin{pmatrix}}{\end{pmatrix}}}
\CustomizeMathJax{\newenvironment{bsmallmatrix*}[1][]{\begin{bmatrix}}{\end{bmatrix}}}
\CustomizeMathJax{\newenvironment{Bsmallmatrix*}[1][]{\begin{Bmatrix}}{\end{Bmatrix}}}
\CustomizeMathJax{\newenvironment{vsmallmatrix*}[1][]{\begin{vmatrix}}{\end{vmatrix}}}
\CustomizeMathJax{\newenvironment{Vsmallmatrix*}[1][]{\begin{Vmatrix}}{\end{Vmatrix}}}
\CustomizeMathJax{\newenvironment{psmallmatrix}[1][]{\begin{pmatrix}}{\end{pmatrix}}}
\CustomizeMathJax{\newenvironment{bsmallmatrix}[1][]{\begin{bmatrix}}{\end{bmatrix}}}
\CustomizeMathJax{\newenvironment{Bsmallmatrix}[1][]{\begin{Bmatrix}}{\end{Bmatrix}}}
\CustomizeMathJax{\newenvironment{vsmallmatrix}[1][]{\begin{vmatrix}}{\end{vmatrix}}}
\CustomizeMathJax{\newenvironment{Vsmallmatrix}[1][]{\begin{Vmatrix}}{\end{Vmatrix}}}
\CustomizeMathJax{\newcommand{\LWRmultlined}[1][]{\begin{multline*}}}
\CustomizeMathJax{\newenvironment{multlined}[1][]{\LWRmultlined}{\end{multline*}}}
\CustomizeMathJax{\let\LWRorigshoveleft\shoveleft}
\CustomizeMathJax{\renewcommand{\shoveleft}[1][]{\LWRorigshoveleft}}
\CustomizeMathJax{\let\LWRorigshoveright\shoveright}
\CustomizeMathJax{\renewcommand{\shoveright}[1][]{\LWRorigshoveright}}
\CustomizeMathJax{\newenvironment{dcases}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newenvironment{dcases*}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newenvironment{rcases}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newenvironment{rcases*}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newenvironment{drcases}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newenvironment{drcases*}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newenvironment{cases*}{\begin{cases}}{\end{cases}}}
\CustomizeMathJax{\newcommand{\MoveEqLeft}[1][]{}}
\CustomizeMathJax{% special parsing to handle '&' in argument
\def\LWRAboxed#1&#2&#3!|!{\fbox{\(#1\)}&\fbox{\(#2\)}}
\newcommand{\Aboxed}[1]{\LWRAboxed#1&&!|!}
}
\CustomizeMathJax{
\newcommand{\LWRABLines}[1][\Updownarrow]{#1 \notag \\}% star/nostar the same
\newcommand{\ArrowBetweenLines}{\ifstar\LWRABLines\LWRABLines}
}
\CustomizeMathJax{\newcommand{\shortintertext}[1]{\text{#1}\notag \\}}
\CustomizeMathJax{\newcommand{\vdotswithin}[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}
\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
\LetLtxMacro\LWR@mathtools@orig@DeclarePairedDelimiterXPP\DeclarePairedDelimiterXPP
\DeclareDocumentCommand{\DeclarePairedDelimiterXPP}{m O{1} m m m m m}{
\LWR@mathtools@orig@DeclarePairedDelimiterXPP{#1}[#2]{#3}{#4}{#5}{#6}{#7}
\appto\LWR@customizedMathJax{\LWRbackslash(}%
\appto\LWR@customizedMathJax{%
\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}%
\LWR@subcustomizedmathjax{#3#4#7}%
\appto\LWR@customizedMathJax{\LWRbackslash{}delimsize}%
\LWR@subcustomizedmathjax{#5#6}%
\appto\LWR@customizedMathJax{\}\}}%
\appto\LWR@customizedMathJax{\LWRbackslash)\par}%
\appto\LWR@customizedMathJax{\LWRbackslash(}%
\appto\LWR@customizedMathJax{%
\LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubnostar\}[1][]%
}%
\appto\LWR@customizedMathJax{%
\{
\LWRbackslash{}def\LWRbackslash{}delimsize\{\#1\}
\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}%
}
\@onlypreamble\DeclareParedDelimiterXPP
\@onlypreamble\DeclareParedDelimiterX
\CustomizeMathJax{\newcommand\lparen{(}}
\CustomizeMathJax{\newcommand\rparen{)}}
\CustomizeMathJax{\newcommand{\vcentcolon}{:}}
\CustomizeMathJax{\newcommand{\ordinarycolon}{:}}
\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{\prescript}[3]{{}^{#1}_{#2}#3}}
\CustomizeMathJax{\newenvironment{lgathered}{\begin{gathered}}{\end{gathered}}}
\CustomizeMathJax{\newenvironment{rgathered}{\begin{gathered}}{\end{gathered}}}
\LetLtxMacro\LWR@mathtools@orig@newgathered\newgathered
\renewcommand{\newgathered}[4]{%
\LWR@mathtools@orig@newgathered{#1}{#2}{#3}{#4}%
\appto\LWR@customizedMathJax{\LWRbackslash(}%
\LWR@subcustomizedmathjax{%
\newenvironment{#1}{\begin{gathered}}{\end{gathered}}%
}%
\appto\LWR@customizedMathJax{\LWRbackslash)}%
}
\@onlypreamble\newgathered
\CustomizeMathJax{\newcommand{\splitfrac}[2]{{}^{#1}_{#2}}}
\CustomizeMathJax{\let\splitdfrac\splitfrac}
\end{warpMathJax}
\endinput
%%
%% End of file `lwarp-mathtools.sty'.