Debian Codegraph @

texmf-dist/tex/latex/forest-ext/forest-lib-ext.ling-debug.sty

raw
1 %%
2 %% This is file `forest-lib-ext.ling-debug.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% forest-ext-ling.dtx (with options: `sty,debug')
8 %% Copyright (C) 2025-2026 Clea F. Rees.
9 %%
10 %% This work may be distributed and/or modified under the
11 %% conditions of the LaTeX Project Public License, either version 1.3c
12 %% of this license or (at your option) any later version.
13 %% The latest version of this license is in
14 %% https://www.latex-project.org/lppl.txt
15 %% and version 1.3c or later is part of all distributions of LaTeX
16 %% version 2008-05-04 or later.
17 %%
18 %% This work has the LPPL maintenance status `maintained'.
19 %%
20 %% The Current Maintainer of this work is Clea F. Rees.
21 %%
22 %% This file may only be distributed together with a copy of the package
23 %% forest-ext. You may however distribute the package forest-ext without
24 %% such generated files.
25 %%
26 %% This work consists of all files listed in manifest.txt.
27 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
28 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29 \NeedsTeXFormat{LaTeX2e}
30 %% $Id: forest-ext-ling.dtx 11668 2026-02-21 02:34:38Z cfrees $}
31 \ProvidesForestLibrary{ext.ling-debug}[2025-12-05 v0.1]
32 \disable@package@load {forest-lib-ext.ling}
33 {%
34 \PackageWarning {ext.ling-debug (forest library)}
35 {Only one of ext.ling and ext.ling-debug should be loaded.
36 Since the
37 ext.ling-debug
38 library has already been loaded, I will ignore your request for
39 ext.ling.%
40 }%
41 }
42 \useforestlibrary{ext.multi-debug}
43 \forestset{
44 declare dimen register={multidom@dimx},
45 multidom@dimx'=0pt,
46 declare dimen register={multidom@dimy},
47 multidom@dimy'=0pt,
48 declare toks register={multidom@toksa},
49 multidom@toksa={},
50 declare toks register={multidom@toksb},
51 multidom@toksb={},
52 declare toks register={multidom@toksc},
53 multidom@toksc={},
54 declare toks register={multidom@toksd},
55 multidom@toksd={},
56 multidom@aux/.style={%
57 debug@multidom=Executing style multidom@aux at,
58 debug@multidom@option=id,
59 if={>__={#1}{}}{}{
60 multidom@toksa={},
61 multidom@toksb={},
62 multidom@toksc={},
63 multidom@toksd={},
64 multidom@dimx'=0pt,
65 multidom@dimy'=0pt,
66 split={#1}{:}{%
67 multidom@toksa,multidom@toksa,%
68 multidom@toksa,multidom@toksb,%
69 multidom@toksc,multidom@toksd%
70 },
71 if={>{R_=}{multidom@toksd}{}}{% no sixth arg -> resplit -> curve to also parent
72 split={#1}{:}{%
73 multidom@toksa,multidom@toksb,multidom@toksc%
74 },
75 curve to also parent/.process={%
76 RRR
77 {multidom@toksa}
78 {multidom@toksb}
79 {multidom@toksc}%
80 },
81 }{% sixth arg -> (first) multidom
82 split={#1}{:}{%
83 multidom@toksa,multidom@dimx,%
84 multidom@dimy,multidom@toksb,%
85 multidom@toksc,multidom@toksd%
86 },
87 debug@multidom@register=multidom@dimx,
88 debug@multidom@register=multidom@dimy,
89 multidom/.process={%
90 RRRRRR
91 {multidom@toksa}{multidom@dimx}
92 {multidom@dimy}{multidom@toksb}
93 {multidom@toksc}{multidom@toksd}%
94 },
95 },
96 },
97 },
98 curve to also parent/.style n args=3{%
99 debug@multidom=Executing style curve to also parent at,
100 debug@multidom@option=id,
101 also parent={#1}{%
102 #3:{%
103 multidom@curved@edge=from (!c fosterling.#2)
104 to (!c foster parent.parent anchor)%
105 }%
106 },
107 },
108 +curve to also parent/.style 2 args={%
109 debug@multidom=Executing style +curve to also parent at,
110 debug@multidom@option=id,
111 +also parent={%
112 #2:{%
113 multidom@curved@edge=from (!c fosterling.#1)
114 to (!c foster parent.parent anchor)%
115 }%
116 },
117 },
118 curve to also parent+/.style 2 args={%
119 debug@multidom=Executing style curve to also parent+ at,
120 debug@multidom@option=id,
121 also parent+={%
122 #2:{%
123 multidom@curved@edge=from (!c fosterling.#1)
124 to (!c foster parent.parent anchor)%
125 }%
126 },
127 },
128 multidom/.style n args=6{%
129 debug@multidom=Executing style multidom at,
130 debug@multidom@option=id,
131 debug@multidom=Executing style also parent with #1 #5 and #6,
132 also parent={#1}{%
133 #6:{%
134 multidom@curved@edge=from (!c fosterling.#5)
135 to (#6.parent anchor)%
136 }%
137 },
138 debug@multidom=Executing style multidom@curved@edge from #4 to parent,
139 multidom@curved@edge=from (.#4) to (!u.parent anchor),
140 debug@multidom=Moving sub-tree by #2 and #3,
141 before drawing tree={%
142 for tree={x'+=#2,y'+=#3},
143 },
144 },
145 multidom@curved@edge/.style args={from (#1.#2) to (#3)}{%
146 edge path'={(#1.#2) to [looseness=.5, out=#2] (#3)},
147 },
148 other multidom parents/.style={%
149 split={#1}{,}{multidom@aux},
150 },
151 multidom prepend/.style n args=5{%
152 multidom={prepend}{#1}{#2}{#3}{#4}{#5}%
153 },
154 multidom append/.style n args=5{%
155 multidom={append}{#1}{#2}{#3}{#4}{#5}%
156 },
157 libraries/ext.ling-debug/defaults/.style={%
158 libraries/ext.multi-debug/defaults,
159 },
160 debug@multidom/.code={%
161 \ExpandArgs {e} \typeout{[Forest ext.ling debug]:: \detokenize{#1}}%
162 },
163 debug@multidom@register/.code={%
164 \ExpandArgs {e} \typeout{[Forest ext.ling debug]:: \detokenize{#1}
165 = \foresteregister{#1}%
166 }%
167 },
168 debug@multidom@option/.code={%
169 \ExpandArgs {e} \typeout{[Forest ext.ling debug]:: \detokenize{#1}
170 = \foresteoption{#1}%
171 }%
172 },
173 debug multidom phantoms/.forward to=/forest/debug multi phantoms,
174 }
175 \forestset{%
176 pretty nice empty nodes/.style={%
177 for tree={%
178 calign=fixed edge angles,
179 parent anchor=children,
180 delay={%
181 if content={}{%
182 inner sep=0pt,
183 edge path'={(!u.parent anchor) -- (.children)},
184 #1,
185 }{},
186 },
187 },
188 },
189 }
190 \endinput
191 %%
192 %% End of file `forest-lib-ext.ling-debug.sty'.