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-mismath.sty

179 lines
6.5 KiB

%%
%% This is file `lwarp-mismath.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `mismath')
%% 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{mismath}[2019/12/27]
\ifbool{mathjax}{
\RenewEnviron{mathcols}{%
\preto\BODY{\begin{aligned}\displaystyle}
\appto\BODY{\end{aligned}}
\expandafter\(\BODY\)
}
}% mathjax
{% svg
\renewenvironment{mathcols}{
\begin{lateximage}
\begin{math}
\begin{aligned}\displaystyle
}{
\end{aligned}%
\end{math}
\end{lateximage}
}
}% svg
\renewcommand{\changecol}{
\end{aligned} \qquad
\begin{aligned}\displaystyle
}
\begin{warpMathJax}
\CustomizeMathJax{\newcommand{\mathup}[1]{\mathrm{#1}}}
\CustomizeMathJax{\newcommand{\e}{\mathrm{e}}}
\CustomizeMathJax{\newcommand{\i}{\mathrm{i}}}
\CustomizeMathJax{\newcommand{\j}{\mathrm{j}}}
\CustomizeMathJax{\newcommand{\boldvect}{}}
\CustomizeMathJax{\newcommand{\arrowvect}{}}
\CustomizeMathJax{\newcommand{\pinumber}[1][]{}}
\CustomizeMathJax{\newcommand{\hvect}[1]{\vec{\vphantom{h}#1}}}
\CustomizeMathJax{\newcommand{\hvec}[1]{\vec{\vphantom{t}#1}}}
\CustomizeMathJax{%
\newcommand{\norm}[1]{\left\vert\left\vert#1\right\vert\right\vert}
}
\CustomizeMathJax{\newcommand{\di}{\mathop{}\!\mathrm{d}}}
\CustomizeMathJax{\newcommand{\P}{\operatorname{\probastyle{P}}}}
\CustomizeMathJax{\newcommand{\E}{\operatorname{\probastyle{E}}}}
\CustomizeMathJax{\newcommand{\V}{\operatorname{\probastyle{V}}}}
\CustomizeMathJax{\newcommand{\Par}{\unicode{x00B6}}}
\CustomizeMathJax{\newcommand{\adj}{\mathrm{adj}}}
\CustomizeMathJax{\newcommand{\Aut}{\mathrm{Aut}}}
\CustomizeMathJax{\newcommand{\Conv}{\mathrm{Conv}}}
\CustomizeMathJax{\newcommand{\cov}{\mathrm{cov}}}
\CustomizeMathJax{\newcommand{\Cov}{\mathrm{Cov}}}
\CustomizeMathJax{\newcommand{curl}{\operatorname{\vect{\mathrm{curl}}}}}
\CustomizeMathJax{\newcommand{\divg}{\mathrm{div}}}
\CustomizeMathJax{\newcommand{\End}{\mathrm{End}}}
\CustomizeMathJax{\newcommand{\erf}{\mathrm{erf}}}
\CustomizeMathJax{\newcommand{grad}{\operatorname{\vect{\mathrm{grad}}}}}
\CustomizeMathJax{\newcommand{\id}{\mathrm{id}}}
\CustomizeMathJax{\newcommand{\Id}{\mathrm{Id}}}
\CustomizeMathJax{\newcommand{\im}{\mathrm{im}}}
\CustomizeMathJax{\let\oldIm\Im}
\CustomizeMathJax{\renewcommand{\Im}{\operatorname{Im}}}
\CustomizeMathJax{\newcommand{\lb}{\mathrm{lb}}}
\CustomizeMathJax{\newcommand{\lcm}{\mathrm{lcm}}}
\CustomizeMathJax{\newcommand{\rank}{\mathrm{rank}}}
\CustomizeMathJax{\let\oldRe\Re}
\CustomizeMathJax{\renewcommand{\Re}{\operatorname{Re}}}
\CustomizeMathJax{\newcommand{rot}{\operatorname{\vect{\mathrm{rot}}}}}
\CustomizeMathJax{\newcommand{\sgn}{\mathrm{sgn}}}
\CustomizeMathJax{\newcommand{\spa}{\mathrm{span}}}
\CustomizeMathJax{\newcommand{\tr}{\mathrm{tr}}}
\CustomizeMathJax{\newcommand{\Var}{\mathrm{Var}}}
\CustomizeMathJax{\newcommand{\Zu}{\mathrm{Z}}}
\CustomizeMathJax{\newcommand{\arccot}{\mathrm{arccot}}}
\CustomizeMathJax{\newcommand{\sech}{\mathrm{sech}}}
\CustomizeMathJax{\newcommand{\csch}{\mathrm{csch}}}
\CustomizeMathJax{\newcommand{\arsinh}{\mathrm{arsinh}}}
\CustomizeMathJax{\newcommand{\arcosh}{\mathrm{arcosh}}}
\CustomizeMathJax{\newcommand{\artanh}{\mathrm{artanh}}}
\CustomizeMathJax{\newcommand{\arcoth}{\mathrm{arcoth}}}
\CustomizeMathJax{\newcommand{\arsech}{\mathrm{arsech}}}
\CustomizeMathJax{\newcommand{\arcsch}{\mathrm{arcsch}}}
\CustomizeMathJax{\newcommand{\bigO}{\mathcal{O}}}
\CustomizeMathJax{\newcommand{\bigo}{\mathrm{O}}}
\CustomizeMathJax{\newcommand{\lito}{\mathrm{o}}}
\CustomizeMathJax{\newcommand{\R}{\mathset{R}}}
\CustomizeMathJax{\newcommand{\C}{\mathset{C}}}
\CustomizeMathJax{\newcommand{\N}{\mathset{N}}}
\CustomizeMathJax{\newcommand{\Z}{\mathset{Z}}}
\CustomizeMathJax{\newcommand{\Q}{\mathset{Q}}}
\CustomizeMathJax{\newcommand{\F}{\mathset{F}}}
\CustomizeMathJax{\newcommand{\K}{\mathset{K}}}
\CustomizeMathJax{\newcommand{\ds}{\displaystyle}}
\CustomizeMathJax{\newcommand{\dlim}{\lim\limits}}
\CustomizeMathJax{\newcommand{\dsum}{\sum\limits}}
\CustomizeMathJax{\newcommand{\dprod}{\prod\limits}}
\CustomizeMathJax{\newcommand{\dcup}{\bigcup\limits}}
\CustomizeMathJax{\newcommand{\dcap}{\bigcap\limits}}
\CustomizeMathJax{\newcommand{\lbar}{\overline}}
\CustomizeMathJax{\newcommand{\hlbar}[1]{\overline{\vphantom{h}#1}}}
\CustomizeMathJax{\newcommand{\eqdef}{\stackrel{\mathrm{def}}{=}}}
\CustomizeMathJax{\newcommand{\unbr}{\underbrace}}
\CustomizeMathJax{\newcommand{\iif}{if and only if }}
\CustomizeMathJax{\newcommand{\mul}{\mathord{\times}}}
\CustomizeMathJax{\newcommand{\then}{\ \Longrightarrow \ \mbox{} }}
\CustomizeMathJax{\newcommand{\txt}[1]{\quad\text{#1}\quad}}
\CustomizeMathJax{\newcommand{\paren}[1]{\mathopen{\left(#1\right)}}}
\CustomizeMathJax{\newcommand{\pow}[2]{\left( #1 \right)^{\!#2}}}
\CustomizeMathJax{\newcommand{\abs}[1]{\left\vert#1\right\vert}}
\CustomizeMathJax{\newcommand{\lfrac}[2]{\frac{\:#1\:}{\:#2\:}}}
\CustomizeMathJax{\newenvironment{system}[1][l]%
{\left\{\begin{array}{@{.15em}#1@{}}}
{\end{array}\right.}
}
\CustomizeMathJax{\newenvironment{spmatrix}
{\left(\begin{smallmatrix}}
{\end{smallmatrix}\right)}
}
\CustomizeMathJax{%
\newenvironment{mathcols}
{\begin{aligned}\displaystyle}
{\end{aligned}}
}
\CustomizeMathJax{\newcommand{\changecol}{\end{aligned}\qquad\begin{aligned}}}
\AtBeginDocument{
\ifdef{\itpi}{
\CustomizeMathJax{\let\itpi\pi}
}{}
\ifdefstring{\boldvectcommand}{\mathbf}{
\CustomizeMathJax{\newcommand{\boldvectcommand}[1]{\mathbf{#1}}}
}{
\CustomizeMathJax{\newcommand{\boldvectcommand}[1]{\boldsymbol{#1}}}
}
\ifbool{arrowvect}{
\CustomizeMathJax{\newcommand{\vect}[1]{\overrightarrow{#1}}}
}{
\CustomizeMathJax{\newcommand{\vect}[1]{\boldvectcommand{#1}}}
}
\ifdefstring{\probastyle}{\mathbb}{
\CustomizeMathJax{\newcommand{\probastyle}[1]{\mathbb{#1}}}
}{
\CustomizeMathJax{\newcommand{\probastyle}[1]{\mathrm{#1}}}
}
\ifdefstring{\mathset}{\mathbb}{
\CustomizeMathJax{\newcommand{\mathset}[1]{\mathbb{#1}}}
}{
\CustomizeMathJax{\newcommand{\mathset}[1]{\mathbf{#1}}}
}
}
\end{warpMathJax}
\endinput
%%
%% End of file `lwarp-mismath.sty'.