| 1 |
%% |
| 2 |
%% This is file `lwarp-mismath.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `mismath') |
| 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{mismath}[2024/06/16] |
| 19 |
\ifbool{mathjax}{ |
| 20 |
\RenewEnviron{mathcols}{% |
| 21 |
\preto\BODY{\begin{aligned}\displaystyle} |
| 22 |
\appto\BODY{\end{aligned}} |
| 23 |
\expandafter\(\BODY\) |
| 24 |
} |
| 25 |
}% mathjax |
| 26 |
{% svg |
| 27 |
\renewenvironment{mathcols}{ |
| 28 |
\begin{lateximage} |
| 29 |
\begin{math} |
| 30 |
\begin{aligned}\displaystyle |
| 31 |
}{ |
| 32 |
\end{aligned}% |
| 33 |
\end{math} |
| 34 |
\end{lateximage} |
| 35 |
} |
| 36 |
}% svg |
| 37 |
|
| 38 |
\renewcommand{\changecol}{ |
| 39 |
\end{aligned} \qquad |
| 40 |
\begin{aligned}\displaystyle |
| 41 |
} |
| 42 |
|
| 43 |
\begin{warpMathJax} |
| 44 |
\CustomizeMathJax{\require{upgreek}}% for \Updelta |
| 45 |
|
| 46 |
\CustomizeMathJax{\newcommand{\mathup}[1]{\mathrm{#1}}} |
| 47 |
\CustomizeMathJax{\newcommand{\e}{\mathrm{e}}} |
| 48 |
\CustomizeMathJax{\newcommand{\i}{\mathrm{i}}} |
| 49 |
\CustomizeMathJax{\newcommand{\j}{\mathrm{j}}} |
| 50 |
|
| 51 |
\CustomizeMathJax{\let\mathbfsfit\mathbfit}% not sans |
| 52 |
\CustomizeMathJax{\let\tensor\mathbfsfit} |
| 53 |
|
| 54 |
\CustomizeMathJax{\newcommand{\boldvect}{}} |
| 55 |
\CustomizeMathJax{\newcommand{\arrowvect}{}} |
| 56 |
\CustomizeMathJax{\newcommand{\pinumber}[1][]{}} |
| 57 |
\CustomizeMathJax{\newcommand{\hvect}[1]{\vec{\vphantom{h}#1}}} |
| 58 |
\CustomizeMathJax{\newcommand{\hvec}[1]{\vec{\vphantom{t}#1}}} |
| 59 |
\CustomizeMathJax{% |
| 60 |
\newcommand{\norm}[1]{\left\vert\left\vert#1\right\vert\right\vert} |
| 61 |
} |
| 62 |
\CustomizeMathJax{\newcommand{\di}{\mathop{}\!\mathrm{d}}} |
| 63 |
|
| 64 |
\CustomizeMathJax{\newcommand{\upDelta}{\Updelta}} |
| 65 |
\CustomizeMathJax{\newcommand{\opDelta}{\Updelta}} |
| 66 |
\CustomizeMathJax{\newcommand{\opdelta}{\updelta}} |
| 67 |
|
| 68 |
\CustomizeMathJax{\newcommand{\P}{\operatorname{\probastyle{P}}}} |
| 69 |
\CustomizeMathJax{\newcommand{\E}{\operatorname{\probastyle{E}}}} |
| 70 |
\CustomizeMathJax{\newcommand{\V}{\operatorname{\probastyle{V}}}} |
| 71 |
\CustomizeMathJax{\newcommand{\Par}{\unicode{x00B6}}} |
| 72 |
|
| 73 |
\CustomizeMathJax{\DeclareMathOperator{\adj}{adj}} |
| 74 |
\CustomizeMathJax{\DeclareMathOperator{\Aut}{Aut}} |
| 75 |
\CustomizeMathJax{\DeclareMathOperator{\codim}{codim}} |
| 76 |
\CustomizeMathJax{\DeclareMathOperator{\Conv}{Conv}} |
| 77 |
\CustomizeMathJax{\DeclareMathOperator{\cov}{cov}} |
| 78 |
\CustomizeMathJax{\DeclareMathOperator{\Cov}{Cov}} |
| 79 |
\CustomizeMathJax{\newcommand{\curl}{\operatorname{\vect{\mathrm{curl}}}}} |
| 80 |
\CustomizeMathJax{\DeclareMathOperator{\divg}{div}} |
| 81 |
\CustomizeMathJax{\DeclareMathOperator{\End}{End}} |
| 82 |
|
| 83 |
\CustomizeMathJax{\DeclareMathOperator{\erf}{erf}} |
| 84 |
\CustomizeMathJax{\newcommand{\grad}{\operatorname{\vect{\mathrm{grad}}}}} |
| 85 |
\CustomizeMathJax{\DeclareMathOperator{\id}{id}} |
| 86 |
\CustomizeMathJax{\DeclareMathOperator{\Id}{Id}} |
| 87 |
\CustomizeMathJax{\DeclareMathOperator{\im}{im}} |
| 88 |
\CustomizeMathJax{\let\oldIm\Im} |
| 89 |
\CustomizeMathJax{\renewcommand{\Im}{\operatorname{Im}}} |
| 90 |
\CustomizeMathJax{\DeclareMathOperator{\lb}{lb}} |
| 91 |
\CustomizeMathJax{\DeclareMathOperator{\lcm}{lcm}} |
| 92 |
|
| 93 |
\CustomizeMathJax{\DeclareMathOperator{\rank}{rank}} |
| 94 |
\CustomizeMathJax{\let\oldRe\Re} |
| 95 |
\CustomizeMathJax{\renewcommand{\Re}{\operatorname{Re}}} |
| 96 |
\CustomizeMathJax{\newcommand{\rot}{\operatorname{\vect{\mathrm{rot}}}}} |
| 97 |
\CustomizeMathJax{\DeclareMathOperator{\sgn}{sgn}} |
| 98 |
\CustomizeMathJax{\DeclareMathOperator{\sinc}{sinc}} |
| 99 |
\CustomizeMathJax{\DeclareMathOperator{\spa}{span}} |
| 100 |
\CustomizeMathJax{\DeclareMathOperator{\tr}{tr}} |
| 101 |
\CustomizeMathJax{\DeclareMathOperator{\var}{var}} |
| 102 |
\CustomizeMathJax{\DeclareMathOperator{\Var}{Var}} |
| 103 |
\CustomizeMathJax{\DeclareMathOperator{\Zu}{Z}} |
| 104 |
|
| 105 |
\CustomizeMathJax{\DeclareMathOperator{\arccot}{arccot}} |
| 106 |
\CustomizeMathJax{\DeclareMathOperator{\sech}{sech}} |
| 107 |
\CustomizeMathJax{\DeclareMathOperator{\csch}{csch}} |
| 108 |
\CustomizeMathJax{\DeclareMathOperator{\arsinh}{arsinh}} |
| 109 |
\CustomizeMathJax{\DeclareMathOperator{\arcosh}{arcosh}} |
| 110 |
\CustomizeMathJax{\DeclareMathOperator{\artanh}{artanh}} |
| 111 |
\CustomizeMathJax{\DeclareMathOperator{\arcoth}{arcoth}} |
| 112 |
\CustomizeMathJax{\DeclareMathOperator{\arsech}{arsech}} |
| 113 |
\CustomizeMathJax{\DeclareMathOperator{\arcsch}{arcsch}} |
| 114 |
|
| 115 |
\CustomizeMathJax{\DeclareMathOperator{\bigO}{\mathcal{O}}} |
| 116 |
\CustomizeMathJax{\DeclareMathOperator{\bigo}{O}} |
| 117 |
\CustomizeMathJax{\DeclareMathOperator{\lito}{o}} |
| 118 |
|
| 119 |
\CustomizeMathJax{\newcommand{\R}{\mathset{R}}} |
| 120 |
\CustomizeMathJax{\newcommand{\C}{\mathset{C}}} |
| 121 |
\CustomizeMathJax{\newcommand{\N}{\mathset{N}}} |
| 122 |
\CustomizeMathJax{\newcommand{\Z}{\mathset{Z}}} |
| 123 |
\CustomizeMathJax{\newcommand{\Q}{\mathset{Q}}} |
| 124 |
\CustomizeMathJax{\newcommand{\F}{\mathset{F}}} |
| 125 |
\CustomizeMathJax{\newcommand{\K}{\mathset{K}}} |
| 126 |
|
| 127 |
\CustomizeMathJax{\newcommand{\ds}{\displaystyle}} |
| 128 |
\CustomizeMathJax{\newcommand{\dlim}{\lim\limits}} |
| 129 |
\CustomizeMathJax{\newcommand{\dsum}{\sum\limits}} |
| 130 |
\CustomizeMathJax{\newcommand{\dprod}{\prod\limits}} |
| 131 |
\CustomizeMathJax{\newcommand{\dcup}{\bigcup\limits}} |
| 132 |
\CustomizeMathJax{\newcommand{\dcap}{\bigcap\limits}} |
| 133 |
\CustomizeMathJax{\newcommand{\lbar}{\overline}} |
| 134 |
\CustomizeMathJax{\newcommand{\hlbar}[1]{\overline{\vphantom{h}#1}}} |
| 135 |
\CustomizeMathJax{\newcommand{\LWReqdefstar}{\stackrel{\Delta}{=}}} |
| 136 |
\CustomizeMathJax{\newcommand{\LWReqdefnostar}{\stackrel{\mathrm{def}}{=}}} |
| 137 |
\CustomizeMathJax{\newcommand{\eqdef}{\ifstar\LWReqdefstar\LWReqdefnostar}} |
| 138 |
\CustomizeMathJax{\newcommand{\unbr}{\underbrace}} |
| 139 |
\CustomizeMathJax{\newcommand{\iif}{if and only if }} |
| 140 |
|
| 141 |
\CustomizeMathJax{\newcommand{\mul}{\mathord{\times}}} |
| 142 |
\CustomizeMathJax{\newcommand{\then}{\ \Longrightarrow \ \mbox{} }} |
| 143 |
\CustomizeMathJax{\newcommand{\txt}[1]{\quad\text{#1}\quad}} |
| 144 |
\CustomizeMathJax{\newcommand{\pow}[2]{\left( #1 \right)^{\!#2}}} |
| 145 |
\CustomizeMathJax{\newcommand{\abs}[1]{\left\vert#1\right\vert}} |
| 146 |
\CustomizeMathJax{\newcommand{\lfrac}[2]{\frac{\:#1\:}{\:#2\:}}} |
| 147 |
|
| 148 |
\CustomizeMathJax{\newenvironment{system}[1][l]% |
| 149 |
{\left\{\begin{array}{@{.15em}#1@{}}} |
| 150 |
{\end{array}\right.} |
| 151 |
} |
| 152 |
|
| 153 |
\CustomizeMathJax{\newenvironment{spmatrix} |
| 154 |
{\left(\begin{smallmatrix}} |
| 155 |
{\end{smallmatrix}\right)} |
| 156 |
} |
| 157 |
|
| 158 |
\CustomizeMathJax{% |
| 159 |
\newenvironment{mathcols} |
| 160 |
{\begin{aligned}\displaystyle} |
| 161 |
{\end{aligned}} |
| 162 |
} |
| 163 |
\CustomizeMathJax{\newcommand{\changecol}{\end{aligned}\qquad\begin{aligned}}} |
| 164 |
\AtBeginDocument{ |
| 165 |
\ifdef{\itpi}{ |
| 166 |
\CustomizeMathJax{\let\itpi\pi} |
| 167 |
}{} |
| 168 |
\ifdefstring{\boldvectcommand}{\mathbf}{ |
| 169 |
\CustomizeMathJax{\newcommand{\boldvectcommand}[1]{\mathbf{#1}}} |
| 170 |
}{ |
| 171 |
\CustomizeMathJax{\newcommand{\boldvectcommand}[1]{\boldsymbol{#1}}} |
| 172 |
} |
| 173 |
\ifbool{arrowvect}{ |
| 174 |
\CustomizeMathJax{\newcommand{\vect}[1]{\overrightarrow{#1}}} |
| 175 |
}{ |
| 176 |
\CustomizeMathJax{\newcommand{\vect}[1]{\boldvectcommand{#1}}} |
| 177 |
} |
| 178 |
\ifdefstring{\probastyle}{\mathbb}{ |
| 179 |
\CustomizeMathJax{\newcommand{\probastyle}[1]{\mathbb{#1}}} |
| 180 |
}{ |
| 181 |
\CustomizeMathJax{\newcommand{\probastyle}[1]{\mathrm{#1}}} |
| 182 |
} |
| 183 |
\ifdefstring{\mathset}{\mathbb}{ |
| 184 |
\CustomizeMathJax{\newcommand{\mathset}[1]{\mathbb{#1}}} |
| 185 |
}{ |
| 186 |
\CustomizeMathJax{\newcommand{\mathset}[1]{\mathbf{#1}}} |
| 187 |
} |
| 188 |
} |
| 189 |
\end{warpMathJax} |
| 190 |
|
| 191 |
\endinput |
| 192 |
%% |
| 193 |
%% End of file `lwarp-mismath.sty'. |