Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-mathtools.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `mathtools')
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{mathtools}[2024/10/04]
19 \RequirePackage{graphicx}
20 \MHInternalSyntaxOn
21 \renewcommand*\MT_showonlyrefs_true:{%
22 \PackageWarningNoLine{lwarp}
23 {%
24 Mathtools \space showonlyrefs \space conflicts \space
25 with \space cleveref,\MessageBreak
26 which \space is \space used \space by \space lwarp, \space
27 so \space showonlyrefs \space is\MessageBreak
28 forced \space off. \space\space
29 Equation \space numbers \space may \space not \space match%
30 }
31 \MT_showonlyrefs_false:
32 }
33 \mathtoolsset{showonlyrefs=false}
34 \renewcommand*{\MT_mathic_true:}{\MT_mathic_false:}
35 \mathtoolsset{mathic=false}
36 \MHInternalSyntaxOff
37 \begin{warpMathJax}
38 \CustomizeMathJax{\require{mathtools}}
39
40 \LWR@infoprocessingmathjax{mathtools}
41
42 \CustomizeMathJax{\newcommand{\vcentcolon}{\mathrel{\unicode{x2236}}}}
43
44 \CustomizeMathJax{\newcommand{\approxcolon}{\approx\vcentcolon}}
45 \CustomizeMathJax{\newcommand{\Approxcolon}{\approx\dblcolon}}
46
47 \CustomizeMathJax{\newcommand{\simcolon}{\sim\vcentcolon}}
48 \CustomizeMathJax{\newcommand{\Simcolon}{\sim\dblcolon}}
49
50 \CustomizeMathJax{\newcommand{\dashcolon}{\mathrel{-}\vcentcolon}}
51 \CustomizeMathJax{\newcommand{\Dashcolon}{\mathrel{-}\dblcolon}}
52
53 \CustomizeMathJax{\newcommand{\colondash}{\vcentcolon\mathrel{-}}}
54 \CustomizeMathJax{\newcommand{\Colondash}{\dblcolon\mathrel{-}}}
55
56 \CustomizeMathJax{\newenvironment{crampedsubarray}[1]{}{}}
57
58 \CustomizeMathJax{\newcommand{\smashoperator}[2][]{#2\limits}}
59
60 \CustomizeMathJax{\newcommand{\SwapAboveDisplaySkip}{}}
61
62 \CustomizeMathJax{\newcommand{\LaTeXunderbrace}[1]{\underbrace{#1}}}
63 \CustomizeMathJax{\newcommand{\LaTeXoverbrace}[1]{\overbrace{#1}}}
64
65 \CustomizeMathJax{\Newextarrow\xLongleftarrow{10,10}{0x21D0}}
66 \CustomizeMathJax{\Newextarrow\xLongrightarrow{10,10}{0x21D2}}
67 \CustomizeMathJax{\let\xlongleftarrow\xleftarrow}
68 \CustomizeMathJax{\let\xlongrightarrow\xrightarrow}
69
70 \CustomizeMathJax{\newcommand{\LWRmultlined}[1][]{\begin{multline*}}}
71 \CustomizeMathJax{\newenvironment{multlined}[1][]{\LWRmultlined}{\end{multline*}}}
72
73 \CustomizeMathJax{\let\LWRorigshoveleft\shoveleft}
74 \CustomizeMathJax{\renewcommand{\shoveleft}[1][]{\LWRorigshoveleft}}
75 \CustomizeMathJax{\let\LWRorigshoveright\shoveright}
76 \CustomizeMathJax{\renewcommand{\shoveright}[1][]{\LWRorigshoveright}}
77
78 \CustomizeMathJax{\newcommand{\shortintertext}[1]{\text{#1}\notag \\}}
79
80 \LetLtxMacro\LWR@mathtools@orig@DeclarePairedDelimiter\DeclarePairedDelimiter
81 \renewcommand{\DeclarePairedDelimiter}[3]{
82 \LWR@mathtools@orig@DeclarePairedDelimiter{#1}{#2}{#3}
83 \appto\LWR@customizedMathJax{\LWRbackslash(}
84 \appto\LWR@customizedMathJax{%
85 \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubstar\}%
86 }%
87 \appto\LWR@customizedMathJax{[2][]}%
88 \appto\LWR@customizedMathJax{\{\{}%
89 \LWR@subcustomizedmathjax{##1\left#2##2##1\right#3}%
90 \appto\LWR@customizedMathJax{\}\}}%
91 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
92 \appto\LWR@customizedMathJax{\LWRbackslash(}
93 \appto\LWR@customizedMathJax{%
94 \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubnostar\}%
95 }%
96 \appto\LWR@customizedMathJax{[2][]}%
97 \appto\LWR@customizedMathJax{\{\{}%
98 \LWR@subcustomizedmathjax{##1#2##2##1#3}%
99 \appto\LWR@customizedMathJax{\}\}}%
100 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
101 \appto\LWR@customizedMathJax{\LWRbackslash(}
102 \appto\LWR@customizedMathJax{%
103 \LWRbackslash{}newcommand\{\LWRbackslash{}\macrotocsname{#1}\}%
104 \{\LWRbackslash{}ifstar%
105 \LWRbackslash{}\macrotocsname{#1}LWRsubstar%
106 \LWRbackslash{}\macrotocsname{#1}LWRsubnostar%
107 \}%
108 }%
109 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
110 }
111 \@onlypreamble\DeclareParedDelimiter
112
113
114 \LetLtxMacro\LWR@mathtools@orig@DeclarePairedDelimiterXPP\DeclarePairedDelimiterXPP
115 \DeclareDocumentCommand{\DeclarePairedDelimiterXPP}{m O{1} m m m m m}{
116 \LWR@mathtools@orig@DeclarePairedDelimiterXPP{#1}[#2]{#3}{#4}{#5}{#6}{#7}
117 \appto\LWR@customizedMathJax{\LWRbackslash(}%
118 \appto\LWR@customizedMathJax{%
119 \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubsubstar\}%
120 }%
121 \appto\LWR@customizedMathJax{[#2]}%
122 \appto\LWR@customizedMathJax{\{\{\LWRbackslash{}left}%
123 \LWR@subcustomizedmathjax{#3#4#7}%
124 \appto\LWR@customizedMathJax{\LWRbackslash{}right}%
125 \LWR@subcustomizedmathjax{#5#6}%
126 \appto\LWR@customizedMathJax{\}\}}%
127 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
128 \appto\LWR@customizedMathJax{\LWRbackslash(}%
129 \appto\LWR@customizedMathJax{%
130 \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubstar\}[1][]%
131 }%
132 \appto\LWR@customizedMathJax{%
133 \{
134 \LWRbackslash{}def\LWRbackslash{}delimsize\{\#1\}
135 \LWRbackslash\macrotocsname{#1}LWRsubsubstar
136 \}%
137 }%
138 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
139 \appto\LWR@customizedMathJax{\LWRbackslash(}%
140 \appto\LWR@customizedMathJax{%
141 \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubsubnostar\}%
142 }%
143 \appto\LWR@customizedMathJax{[#2]}%
144 \appto\LWR@customizedMathJax{\{\{\LWRbackslash{}delimsize}%
145 \LWR@subcustomizedmathjax{#3#4#7}%
146 \appto\LWR@customizedMathJax{\LWRbackslash{}delimsize}%
147 \LWR@subcustomizedmathjax{#5#6}%
148 \appto\LWR@customizedMathJax{\}\}}%
149 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
150 \appto\LWR@customizedMathJax{\LWRbackslash(}%
151 \appto\LWR@customizedMathJax{%
152 \LWRbackslash{}newcommand\{\LWRbackslash\macrotocsname{#1}LWRsubnostar\}[1][]%
153 }%
154 \appto\LWR@customizedMathJax{%
155 \{
156 \LWRbackslash{}def\LWRbackslash{}delimsize\{\#1\}
157 \LWRbackslash\macrotocsname{#1}LWRsubsubnostar
158 \}%
159 }%
160 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
161 \appto\LWR@customizedMathJax{\LWRbackslash(}
162 \appto\LWR@customizedMathJax{%
163 \LWRbackslash{}newcommand\{%
164 \LWRbackslash{}\macrotocsname{#1}%
165 \}%
166 \{\LWRbackslash{}ifstar%
167 \LWRbackslash{}\macrotocsname{#1}LWRsubstar%
168 \LWRbackslash{}\macrotocsname{#1}LWRsubnostar%
169 \}%
170 }%
171 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
172 }
173 \@onlypreamble\DeclareParedDelimiterXPP
174 \@onlypreamble\DeclareParedDelimiterX
175
176 \LetLtxMacro\LWR@mathtools@orig@newgathered\newgathered
177 \renewcommand{\newgathered}[4]{%
178 \LWR@mathtools@orig@newgathered{#1}{#2}{#3}{#4}%
179 \appto\LWR@customizedMathJax{\LWRbackslash(}%
180 \LWR@subcustomizedmathjax{%
181 \newenvironment{#1}{\begin{gathered}}{\end{gathered}}%
182 }%
183 \appto\LWR@customizedMathJax{\LWRbackslash)\LWR@orignewline}%
184 }
185 \@onlypreamble\newgathered
186
187 \LetLtxMacro\LWR@mathtools@MakeAboxedCommand\MakeAboxedCommand
188 \renewcommand{\MakeAboxedCommand}[2]{%
189 \LWR@mathtools@MakeAboxedCommand{#1}{#2}%
190 \appto\LWR@customizedMathJax{\LWRbackslash(}
191 \appto\LWR@customizedMathJax{%
192 \LWRbackslash{}let%
193 \LWRbackslash\macrotocsname{#1}%
194 \LWRbackslash{}Aboxed%
195 }%
196 \appto\LWR@customizedMathJax{\LWRbackslash)\par}%
197 }
198
199 \end{warpMathJax}
200
201 \endinput
202 %%
203 %% End of file `lwarp-mathtools.sty'.