| 1 |
%% |
| 2 |
%% This is file `lwarp-amsmath.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `amsmath') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\LWR@ProvidesPackagePass{amsmath}[2017/09/02] |
| 19 |
\newcommand*{\LWR@HTML@dotso}{\textellipsis\ } |
| 20 |
\LWR@formatted{dotso} |
| 21 |
\def\maketag@@@#1{\text{#1}} |
| 22 |
\def\tagform@#1{\maketag@@@{(\ignorespaces#1\unskip)}} |
| 23 |
|
| 24 |
\ifbool{mathjax}{}{% not mathjax |
| 25 |
|
| 26 |
\VerifyCommand[lwarp][amsmath]{\make@df@tag@@}{A5AA7B9CD20DC2C73B1D19D582C44A8E} |
| 27 |
\VerifyCommand[lwarp][amsmath]{\make@df@tag@@@}{670399C01F88B0E9B0874E9B129FA404} |
| 28 |
|
| 29 |
\LetLtxMacro\LWR@origmake@df@tag@@\make@df@tag@@ |
| 30 |
\LetLtxMacro\LWR@origmake@df@tag@@@\make@df@tag@@@ |
| 31 |
|
| 32 |
\renewcommand*{\make@df@tag@@}[1]{% |
| 33 |
\LWR@remembertag{#1}% |
| 34 |
\LWR@origmake@df@tag@@{#1}% |
| 35 |
} |
| 36 |
|
| 37 |
\renewcommand*{\make@df@tag@@@}[1]{% |
| 38 |
\LWR@remembertag{#1}% |
| 39 |
\LWR@origmake@df@tag@@@{#1}% |
| 40 |
} |
| 41 |
|
| 42 |
}% not mathjax |
| 43 |
\newcounter{LWR@amsmathdepth} |
| 44 |
\setcounter{LWR@amsmathdepth}{0} |
| 45 |
\newcounter{LWR@maxfields@} |
| 46 |
|
| 47 |
\VerifyCommand[lwarp][amsmath]{\start@align}{91CC0364710455D823A1D74B3E5704DD} |
| 48 |
|
| 49 |
\xpatchcmd{\start@align} |
| 50 |
{\maxfields@#3\relax} |
| 51 |
{% |
| 52 |
\maxfields@#3\relax% |
| 53 |
\setcounter{LWR@maxfields@}{#3}% |
| 54 |
} |
| 55 |
{} |
| 56 |
{\LWR@patcherror{amsmath}{start@align}} |
| 57 |
\NewDocumentCommand{\LWR@amsmathenv@@before}{s m}{% |
| 58 |
\IfBooleanTF{#1}{ |
| 59 |
\begin{BlockClass}{displaymath} |
| 60 |
}{ |
| 61 |
\begin{BlockClass}{displaymathnumbered} |
| 62 |
} |
| 63 |
\LWR@newautoidanchor% |
| 64 |
\booltrue{LWR@indisplaymathimage}% |
| 65 |
\begin{lateximage}[\LWR@amsmathbodynumbered{#2}]*?% |
| 66 |
\LWR@applyxfakebold% |
| 67 |
} |
| 68 |
\NewDocumentCommand{\LWR@amsmathenv@before}{s m}{% |
| 69 |
\ifnumequal{\value{LWR@amsmathdepth}}{0}{% |
| 70 |
\LWR@stoppars% |
| 71 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 72 |
{ |
| 73 |
\LWR@syncmathjax |
| 74 |
\boolfalse{LWR@amsmultline} |
| 75 |
\ifstrequal{#2}{multline}{\booltrue{LWR@amsmultline}}{} |
| 76 |
\ifstrequal{#2}{multline*}{\booltrue{LWR@amsmultline}}{} |
| 77 |
\LWR@beginhideamsmath |
| 78 |
} |
| 79 |
{ |
| 80 |
\IfBooleanTF{#1}{ |
| 81 |
\LWR@amsmathenv@@before*{#2} |
| 82 |
}{ |
| 83 |
\LWR@amsmathenv@@before{#2} |
| 84 |
} |
| 85 |
} |
| 86 |
}{} |
| 87 |
\addtocounter{LWR@amsmathdepth}{1} |
| 88 |
} |
| 89 |
\newcommand*{\LWR@amsmathenv@@after}{% |
| 90 |
\end{lateximage}\end{BlockClass}\LWR@startpars% |
| 91 |
} |
| 92 |
\NewDocumentCommand{\LWR@amsmathenv@after}{s m}{% |
| 93 |
\ifnumequal{\value{LWR@amsmathdepth}}{1}{% |
| 94 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 95 |
{ |
| 96 |
\LWR@endhideamsmath |
| 97 |
\boolfalse{LWR@amsmultline} |
| 98 |
\LWR@addmathjax{#2}{\the\@envbody}% |
| 99 |
} |
| 100 |
{\LWR@amsmathenv@@after} |
| 101 |
\gdef\LWR@ThisAltText{}% |
| 102 |
}{} |
| 103 |
\addtocounter{LWR@amsmathdepth}{-1} |
| 104 |
} |
| 105 |
\BeforeBeginEnvironment{multline}{\LWR@amsmathenv@before{multline}} |
| 106 |
|
| 107 |
\AfterEndEnvironment{multline}{\LWR@amsmathenv@after{multline}} |
| 108 |
|
| 109 |
\BeforeBeginEnvironment{multline*}{\LWR@amsmathenv@before*{multline*}} |
| 110 |
|
| 111 |
\AfterEndEnvironment{multline*}{\LWR@amsmathenv@after*{multline*}} |
| 112 |
|
| 113 |
|
| 114 |
\BeforeBeginEnvironment{gather}{\LWR@amsmathenv@before{gather}} |
| 115 |
|
| 116 |
\AfterEndEnvironment{gather}{\LWR@amsmathenv@after{gather}} |
| 117 |
|
| 118 |
\BeforeBeginEnvironment{gather*}{\LWR@amsmathenv@before*{gather*}} |
| 119 |
|
| 120 |
\AfterEndEnvironment{gather*}{\LWR@amsmathenv@after*{gather*}} |
| 121 |
|
| 122 |
\BeforeBeginEnvironment{align}{\LWR@amsmathenv@before{align}} |
| 123 |
|
| 124 |
\AfterEndEnvironment{align}{\LWR@amsmathenv@after{align}} |
| 125 |
|
| 126 |
\BeforeBeginEnvironment{align*}{\LWR@amsmathenv@before*{align*}} |
| 127 |
|
| 128 |
\AfterEndEnvironment{align*}{\LWR@amsmathenv@after*{align*}} |
| 129 |
|
| 130 |
\BeforeBeginEnvironment{flalign}{\LWR@amsmathenv@before{flalign}} |
| 131 |
|
| 132 |
\AfterEndEnvironment{flalign}{\LWR@amsmathenv@after{flalign}} |
| 133 |
|
| 134 |
\BeforeBeginEnvironment{flalign*}{\LWR@amsmathenv@before*{flalign*}} |
| 135 |
|
| 136 |
\AfterEndEnvironment{flalign*}{\LWR@amsmathenv@after*{flalign*}} |
| 137 |
|
| 138 |
\BeforeBeginEnvironment{alignat}{\LWR@amsmathenv@before{alignat}} |
| 139 |
|
| 140 |
\AfterEndEnvironment{alignat}{\LWR@amsmathenv@after{alignat}} |
| 141 |
|
| 142 |
\BeforeBeginEnvironment{alignat*}{\LWR@amsmathenv@before*{alignat*}} |
| 143 |
|
| 144 |
\AfterEndEnvironment{alignat*}{\LWR@amsmathenv@after*{alignat*}} |
| 145 |
\AtBeginEnvironment{subequations}{ |
| 146 |
\renewcommand*{\theMathJaxsubequations}{1} |
| 147 |
\renewcommand*{\theMathJaxsection}{\theparentequation} |
| 148 |
\renewcommand*{\theMathJaxequation}{\arabic{equation}} |
| 149 |
} |
| 150 |
\begin{warpMathJax} |
| 151 |
\CustomizeMathJax{\newcommand{\intertext}[1]{\text{#1}\notag \\}} |
| 152 |
\CustomizeMathJax{\let\Hat\hat} |
| 153 |
\CustomizeMathJax{\let\Check\check} |
| 154 |
\CustomizeMathJax{\let\Tilde\tilde} |
| 155 |
\CustomizeMathJax{\let\Acute\acute} |
| 156 |
\CustomizeMathJax{\let\Grave\grave} |
| 157 |
\CustomizeMathJax{\let\Dot\dot} |
| 158 |
\CustomizeMathJax{\let\Ddot\ddot} |
| 159 |
\CustomizeMathJax{\let\Breve\breve} |
| 160 |
\CustomizeMathJax{\let\Bar\bar} |
| 161 |
\CustomizeMathJax{\let\Vec\vec} |
| 162 |
\end{warpMathJax} |
| 163 |
|
| 164 |
\endinput |
| 165 |
%% |
| 166 |
%% End of file `lwarp-amsmath.sty'. |