diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-nicematrix.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-nicematrix.sty | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-nicematrix.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-nicematrix.sty new file mode 100644 index 00000000000..52e8f2c297b --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-nicematrix.sty @@ -0,0 +1,118 @@ +%% +%% This is file `lwarp-nicematrix.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `nicematrix') +%% 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{nicematrix}[2020/11/23] +\begin{warpHTML} +\BeforeBeginEnvironment{NiceTabular}{% + \begin{lateximage}[-nicematrix-~\PackageDiagramAltText]% +} +\AfterEndEnvironment{NiceTabular}{\end{lateximage}} +\BeforeBeginEnvironment{NiceTabular*}{% + \begin{lateximage}[-nicematrix-~\PackageDiagramAltText]% +} +\AfterEndEnvironment{NiceTabular*}{\end{lateximage}} +\end{warpHTML} +\begin{warpMathJax} +\CustomizeMathJax{\newcommand{\LWRnicearrayarray}[1]{\begin{array}{#1}}} +\CustomizeMathJax{\def\LWRnicearrayarrayopt#1[#2] {\begin{array}{#1}}} + +\CustomizeMathJax{% + \newenvironment{NiceArray}[2][]% + {\ifnextchar[{\LWRnicearrayarrayopt{#2}}{\LWRnicearrayarray{#2}}}% + {\end{array}}% +} + +\CustomizeMathJax{% + \newcommand{\LWRnicearraywithdelimtwo}[2][]{% + \ifnextchar[{\LWRnicearrayarrayopt{#2}}{\LWRnicearrayarray{#2}}% + }% +} +\CustomizeMathJax{% + \newenvironment{NiceArrayWithDelims}[2]% + {% + \def\LWRnicearrayrightdelim{\right#2}% + \left#1% + \LWRnicearraywithdelimtwo% + }% + {\end{array}\LWRnicearrayrightdelim}% +} +\CustomizeMathJax{% + \newenvironment{pNiceArray} + {\begin{NiceArrayWithDelims}{(}{)}} + {\end{NiceArrayWithDelims}} +} + +\CustomizeMathJax{% + \newenvironment{bNiceArray} + {\begin{NiceArrayWithDelims}{[}{]}} + {\end{NiceArrayWithDelims}} +} + +\CustomizeMathJax{% + \newenvironment{BNiceArray} + {\begin{NiceArrayWithDelims}{\{}{\}}} + {\end{NiceArrayWithDelims}} +} + +\CustomizeMathJax{% + \newenvironment{vNiceArray} + {\begin{NiceArrayWithDelims}{\vert}{\vert}} + {\end{NiceArrayWithDelims}} +} + +\CustomizeMathJax{% + \newenvironment{VNiceArray} + {\begin{NiceArrayWithDelims}{\Vert}{\Vert}} + {\end{NiceArrayWithDelims}} +} +\CustomizeMathJax{\newenvironment{NiceMatrix}[1][]{\begin{matrix}}{\end{matrix}}} +\CustomizeMathJax{\newenvironment{pNiceMatrix}[1][]{\begin{pmatrix}}{\end{pmatrix}}} +\CustomizeMathJax{\newenvironment{bNiceMatrix}[1][]{\begin{bmatrix}}{\end{bmatrix}}} +\CustomizeMathJax{\newenvironment{BNiceMatrix}[1][]{\begin{Bmatrix}}{\end{Bmatrix}}} +\CustomizeMathJax{\newenvironment{vNiceMatrix}[1][]{\begin{vmatrix}}{\end{vmatrix}}} +\CustomizeMathJax{\newenvironment{VNiceMatrix}[1][]{\begin{Vmatrix}}{\end{Vmatrix}}} +\CustomizeMathJax{\newcommand{\LWRnicematrixBlock}[1]{#1}} +\CustomizeMathJax{\def\LWRnicematrixBlockopt<#1>#2{#2}} + +\CustomizeMathJax{% + \newcommand{\Block}[2][]{\ifnextchar<\LWRnicematrixBlockopt\LWRnicematrixBlock}% +} +\CustomizeMathJax{% + \newcommand{\diagbox}[2]{% + \begin{array}{l}\hfill\quad#2\\\hline#1\quad\hfill\end{array}% + }% +} +\CustomizeMathJax{\let\hdottedline\hdashline} + +\CustomizeMathJax{\newcommand{\ldots}[1][]{\dots}} +\CustomizeMathJax{\newcommand{\Cdots}[1][]{\cdots}} +\CustomizeMathJax{\newcommand{\Vdots}[1][]{\vdots}} +\CustomizeMathJax{\newcommand{\Ddots}[1][]{\ddots}} +\CustomizeMathJax{\newcommand{\Iddots}[1][]{\mathinner{\unicode{x22F0}}}} + +\CustomizeMathJax{\newcommand{\Hdotsfor}[1]{\ldots}} +\CustomizeMathJax{\newcommand{\Vdotsfor}[1]{\vdots}} +\CustomizeMathJax{\newcommand{\AutoNiceMatrix}[2]{\text{(AutoNiceMatrix #1)}}} +\CustomizeMathJax{\let\pAutoNiceMatrix\AutoNiceMatrix} +\CustomizeMathJax{\let\bAutoNiceMatrix\AutoNiceMatrix} +\CustomizeMathJax{\let\BAutoNiceMatrix\AutoNiceMatrix} +\CustomizeMathJax{\let\vAutoNiceMatrix\AutoNiceMatrix} +\CustomizeMathJax{\let\VAutoNiceMatrix\AutoNiceMatrix} +\end{warpMathJax} +\endinput +%% +%% End of file `lwarp-nicematrix.sty'. |