Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-nicematrix.sty

raw
1 %%
2 %% This is file `lwarp-nicematrix.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `nicematrix')
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
19 \LWR@ProvidesPackagePass{nicematrix}[2025/02/01]
20 \begin{warpHTML}
21 \BeforeBeginEnvironment{NiceTabular}{%
22 \begin{lateximage}[-nicematrix-~\PackageDiagramAltText]?%
23 }
24 \AfterEndEnvironment{NiceTabular}{\end{lateximage}}
25 \BeforeBeginEnvironment{NiceTabular*}{%
26 \begin{lateximage}[-nicematrix-~\PackageDiagramAltText]?%
27 }
28 \AfterEndEnvironment{NiceTabular*}{\end{lateximage}}
29 \end{warpHTML}
30 \begin{warpMathJax}
31 \CustomizeMathJax{\newcommand{\LWRnicearrayarray}[1]{\begin{array}{#1}}}
32 \CustomizeMathJax{\def\LWRnicearrayarrayopt#1[#2] {\begin{array}{#1}}}
33
34 \CustomizeMathJax{%
35 \newenvironment{NiceArray}[2][]%
36 {\ifnextchar[{\LWRnicearrayarrayopt{#2}}{\LWRnicearrayarray{#2}}}%
37 {\end{array}}%
38 }
39
40 \CustomizeMathJax{%
41 \newcommand{\LWRnicearraywithdelimtwo}[2][]{%
42 \ifnextchar[{\LWRnicearrayarrayopt{#2}}{\LWRnicearrayarray{#2}}%
43 }%
44 }
45 \CustomizeMathJax{%
46 \newenvironment{NiceArrayWithDelims}[2]%
47 {%
48 \def\LWRnicearrayrightdelim{\right#2}%
49 \left#1%
50 \LWRnicearraywithdelimtwo%
51 }%
52 {\end{array}\LWRnicearrayrightdelim}%
53 }
54 \CustomizeMathJax{%
55 \newenvironment{pNiceArray}
56 {\begin{NiceArrayWithDelims}{(}{)}}
57 {\end{NiceArrayWithDelims}}
58 }
59
60 \CustomizeMathJax{%
61 \newenvironment{bNiceArray}
62 {\begin{NiceArrayWithDelims}{[}{]}}
63 {\end{NiceArrayWithDelims}}
64 }
65
66 \CustomizeMathJax{%
67 \newenvironment{BNiceArray}
68 {\begin{NiceArrayWithDelims}{\{}{\}}}
69 {\end{NiceArrayWithDelims}}
70 }
71
72 \CustomizeMathJax{%
73 \newenvironment{vNiceArray}
74 {\begin{NiceArrayWithDelims}{\vert}{\vert}}
75 {\end{NiceArrayWithDelims}}
76 }
77
78 \CustomizeMathJax{%
79 \newenvironment{VNiceArray}
80 {\begin{NiceArrayWithDelims}{\Vert}{\Vert}}
81 {\end{NiceArrayWithDelims}}
82 }
83 \CustomizeMathJax{\newenvironment{NiceMatrix}[1][]{\begin{matrix}}{\end{matrix}}}
84 \CustomizeMathJax{\newenvironment{pNiceMatrix}[1][]{\begin{pmatrix}}{\end{pmatrix}}}
85 \CustomizeMathJax{\newenvironment{bNiceMatrix}[1][]{\begin{bmatrix}}{\end{bmatrix}}}
86 \CustomizeMathJax{\newenvironment{BNiceMatrix}[1][]{\begin{Bmatrix}}{\end{Bmatrix}}}
87 \CustomizeMathJax{\newenvironment{vNiceMatrix}[1][]{\begin{vmatrix}}{\end{vmatrix}}}
88 \CustomizeMathJax{\newenvironment{VNiceMatrix}[1][]{\begin{Vmatrix}}{\end{Vmatrix}}}
89 \CustomizeMathJax{\newcommand{\LWRnicematrixBlock}[1]{#1}}
90 \CustomizeMathJax{\def\LWRnicematrixBlockopt<#1>#2{#2}}
91
92 \CustomizeMathJax{%
93 \newcommand{\Block}[2][]{\ifnextchar<\LWRnicematrixBlockopt\LWRnicematrixBlock}%
94 }
95 \CustomizeMathJax{%
96 \newcommand{\diagbox}[2]{%
97 \begin{array}{l}\hfill\quad#2\\\hline#1\quad\hfill\end{array}%
98 }%
99 }
100 \CustomizeMathJax{\let\hdottedline\hdashline}
101 \CustomizeMathJax{\newcommand{\Hline}[1][]{\hline}}
102 \CustomizeMathJax{\newcommand{\CodeBefore}{}}
103 \CustomizeMathJax{\newcommand{\Body}{}}
104 \CustomizeMathJax{\newcommand{\CodeAfter}{}}
105 \CustomizeMathJax{\newcommand{\line}[3][]{}}
106 \CustomizeMathJax{\newcommand{\RowStyle}[2][]{}}
107 \CustomizeMathJax{\newcommand{\LWRSubMatrix}[1][]{}}
108 \CustomizeMathJax{\newcommand{\SubMatrix}[4]{\LWRSubMatrix}}
109 \CustomizeMathJax{\newcommand{\OverBrace}[4][]{}}
110 \CustomizeMathJax{\newcommand{\UnderBrace}[4][]{}}
111 \CustomizeMathJax{\newcommand{\HBrace}[3][]{}}
112 \CustomizeMathJax{\newcommand{\VBrace}[3][]{}}
113 \CustomizeMathJax{\newcommand{\ShowCellNames}{}}
114 \CustomizeMathJax{\newcommand{\tabularnote}[2][]{}}
115 \CustomizeMathJax{\newcommand{\cellcolor}[3][]{}}
116 \CustomizeMathJax{\newcommand{\rowcolor}[3][]{}}
117 \CustomizeMathJax{\newcommand{\LWRrowcolors}[1][]{}}
118 \CustomizeMathJax{\newcommand{\rowcolors}[4][]{\LWRrowcolors}}
119 \CustomizeMathJax{\newcommand{\rowlistcolors}[3][]{\LWRrowcolors}}
120 \CustomizeMathJax{\newcommand{\columncolor}[3][]{}}
121 \CustomizeMathJax{\newcommand{\rectanglecolor}[4][]{}}
122 \CustomizeMathJax{\newcommand{\arraycolor}[2][]{}}
123 \CustomizeMathJax{\newcommand{\chessboardcolors}[3][]{}}
124 \CustomizeMathJax{\newcommand{\ldots}[1][]{\dots}}
125 \CustomizeMathJax{\newcommand{\Cdots}[1][]{\cdots}}
126 \CustomizeMathJax{\newcommand{\Vdots}[1][]{\vdots}}
127 \CustomizeMathJax{\newcommand{\Ddots}[1][]{\ddots}}
128 \CustomizeMathJax{\newcommand{\Iddots}[1][]{\mathinner{\unicode{x22F0}}}}
129
130 \CustomizeMathJax{\newcommand{\Hdotsfor}[1]{\ldots}}
131 \CustomizeMathJax{\newcommand{\Vdotsfor}[1]{\vdots}}
132 \CustomizeMathJax{\newcommand{\AutoNiceMatrix}[2]{\text{(AutoNiceMatrix #1)}}}
133 \CustomizeMathJax{\let\pAutoNiceMatrix\AutoNiceMatrix}
134 \CustomizeMathJax{\let\bAutoNiceMatrix\AutoNiceMatrix}
135 \CustomizeMathJax{\let\BAutoNiceMatrix\AutoNiceMatrix}
136 \CustomizeMathJax{\let\vAutoNiceMatrix\AutoNiceMatrix}
137 \CustomizeMathJax{\let\VAutoNiceMatrix\AutoNiceMatrix}
138 \end{warpMathJax}
139
140 \endinput
141 %%
142 %% End of file `lwarp-nicematrix.sty'.