Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-witharrows.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `witharrows')
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{witharrows}[2024/10/19]
20 \ifbool{mathjax}{
21 \newcommand{\Arrow}[2][]{}
22 \newcommand{\unicode}[1]{}
23 \NewDocumentEnvironment { LWR@HTML@DispWithArrows } { ! d < > ! O { } +b}
24 {
25 \IfValueTF{#1}{
26 \begin{displaymath}
27 #1 \left\lbrace
28 \begin{align}
29 #3
30 \end{align}
31 \right .
32 \end{displaymath}
33 }{
34 \begin{displaymath}
35 \begin{align}
36 #3
37 \end{align}
38 \end{displaymath}
39 }
40 }
41 {}
42 \LWR@formattedenv{DispWithArrows}
43 \NewDocumentEnvironment { LWR@HTML@DispWithArrows* } { ! d < > ! O { } +b}
44 {
45 \IfValueTF{#1}{
46 \begin{displaymath}
47 #1 \left\lbrace
48 \begin{align*}
49 #3
50 \end{align*}
51 \right .
52 \end{displaymath}
53 }{
54 \begin{displaymath}
55 \begin{align*}
56 #3
57 \end{align*}
58 \end{displaymath}
59 }
60 }
61 {}
62 \LWR@formattedenv{DispWithArrows*}
63 }% MathJax
64 {% SVG
65 \BeforeBeginEnvironment{WithArrows}{\global\booltrue{LWR@unknownmathsize}}
66 \BeforeBeginEnvironment{DispWithArrows}{%
67 \begin{BlockClass}{displaymathnumbered}%
68 \begin{lateximage}%
69 }
70 \AfterEndEnvironment{DispWithArrows}{\end{lateximage}\end{BlockClass}}
71 \BeforeBeginEnvironment{DispWithArrows*}{%
72 \begin{BlockClass}{displaymath}%
73 \begin{lateximage}%
74 }
75 \AfterEndEnvironment{DispWithArrows*}{\end{lateximage}\end{BlockClass}}
76 }% SVG
77 \begin{warpMathJax}
78 \CustomizeMathJax{\newenvironment{WithArrows}[1][]{\begin{aligned}}{\end{aligned}}}
79 \CustomizeMathJax{\newcommand{\Arrow}[2][]{&{\Large\unicode{x2938}}~\textit{#2}}}
80 \end{warpMathJax}
81 \endinput
82 %%
83 %% End of file `lwarp-witharrows.sty'.