Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-stackengine.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `stackengine')
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{stackengine}[2017/02/13]
20 \LetLtxMacro\LWR@orig@stackengine\stackengine
21 \renewcommand*{\stackengine}[8]{%
22 \ifstrequal{#4}{O}%
23 {\begin{lateximage}[\ImageAltText]?}%
24 {\begin{lateximage}[\ImageAltText]?[][vertical-align:top]}%
25 \LWR@orig@stackengine{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}%
26 \end{lateximage}%
27 }
28 \LetLtxMacro\LWR@orig@@stack\@stack
29
30 \xpatchcmd{\LWR@orig@@stack}{\stackengine}{\LWR@orig@stackengine}
31 {}
32 {\LWR@patcherror{stackengine}{LWR@orig@@stack}}
33
34 \renewcommand*{\@stack}[4]{%
35 \ifstrequal{#3}{O}%
36 {\begin{lateximage}[\ImageAltText]?}%
37 {\begin{lateximage}[\ImageAltText]?[][vertical-align:top]}%
38 \LWR@orig@@stack{#1}{#2}{#3}{#4}%
39 \end{lateximage}%
40 }
41 \newcommand*\LWR@HTML@@stacklap[4]{#3}
42 \LWR@formatted{@stacklap}
43 \xpatchcmd{\stackanchor}{\stackengine}{\LWR@orig@stackengine}
44 {}
45 {\LWR@patcherror{stackengine}{stackanchor patch 1}}
46
47 \xpatchcmd{\stackanchor}{\stackengine}{\LWR@orig@stackengine}
48 {}
49 {\LWR@patcherror{stackengine}{stackanchor patch 2}}
50
51 \xpretocmd{\stackanchor}
52 {\begin{lateximage}[\ImageAltText]?[][vertical-align:middle]}%
53 {}
54 {\LWR@patcherror{stackengine}{stackanchor pre}}
55
56 \xapptocmd{\stackanchor}{\end{lateximage}}
57 {}
58 {\LWR@patcherror{stackengine}{stackanchor app}}
59 \xpretocmd{\Centerstack}
60 {\begin{lateximage}[\ImageAltText]?[][vertical-align:middle]}%
61 {}
62 {\LWR@patcherror{stackengine}{Centerstack pre}}
63
64 \xapptocmd{\Centerstack}{\end{lateximage}}
65 {}
66 {\LWR@patcherror{stackengine}{Centerstack app}}
67 \VerifyCommand[lwarp][stackengine]{\savestack}{4B06A7F9D3F0B829FE293FB452D43430}
68
69 \renewcommand*\savestack[2]{%
70 \xdef\sv@name{\stack@macro@name{#1}}%
71 \@ifundefined{\sv@name content}{%
72 \expandafter\newsavebox\expandafter{\csname\sv@name content\endcsname}%
73 }{}%
74 \begingroup% lwarp
75 \LWR@restoreorigformatting% lwarp
76 \RenewDocumentEnvironment{lateximage}{s o s t? o o d()}{}{}% lwarp: inside group
77 \expandafter\LWR@gsavebox\csname\sv@name content\endcsname{#2}%
78 \expandafter\gdef\expandafter#1\expandafter{%
79 \expandafter\begin\expandafter{lateximage\expandafter}% lwarp
80 \expandafter\usebox\expandafter%
81 {\csname\sv@name content\endcsname}%
82 \expandafter\end\expandafter{lateximage\expandafter}% lwarp
83 }%
84 \endgroup% lwarp
85 }
86 \endinput
87 %%
88 %% End of file `lwarp-stackengine.sty'.