Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-forest.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `forest')
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{forest}[2017/07/14]
20
21 \BeforeBeginEnvironment{forest}{%
22 \begin{lateximage}[-forest-~\PackageDiagramAltText]?%
23 }
24
25 \AfterEndEnvironment{forest}{\end{lateximage}}
26
27 \VerifyCommand[lwarp][forest]{\Forest}{D44A6D1EAFFC86653905CC666F563E6D}
28
29 \RenewDocumentCommand{\Forest}{s D(){} m}{%
30 \forest@config{#2}%
31 \IfBooleanTF{#1}{%
32 \PackageError{lwarp-forest}%
33 {\protect\Forest* is not supported}%
34 {Lwarp uses an environment for images,\MessageBreak
35 but \protect\Forest* cannot work in an environment.}%
36 \let\forest@next\forest@env%
37 }{\let\forest@next\forest@group@env}%
38 \begin{lateximage}[-forest-~\PackageDiagramAltText]?% lwarp
39 \forest@next{#3}%
40 \end{lateximage}% lwarp
41 }
42
43
44 \endinput
45 %%
46 %% End of file `lwarp-forest.sty'.