Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/tree.tex

raw
1 \label{pst-tree}
2
3 \subsection{structure}
4
5
6
7 %-----------------------------------------------------------------------
8 \SbSSCT{les noeuds}{The nodes}
9
10 \begin{tabular}{|c|c|}
11 %\hline \multicolumn{2}{|c|}{ Sans contenu} \\
12 \hline \textbf{ \TFRGB{sans astérisque}{without asterisk}} & \textbf{\TFRGB{avec astérisque}{with asterisk}} \\
13 \hline \pstree{\Tp}{\Tp \Tp \Tp \Tp} & \pstree{\Tp*}{\Tp* \Tp* \Tp* \Tp*} \\
14 \hline \multicolumn{2}{|c|}{ \BS{pstree}\AC{\BSS{Tp}*}\AC{\BS{}Tp* \BS{}Tp* \BS{}Tp* \BS{}Tp*} } \\
15 \hline \pstree{\Tc{3pt}}{\Tc{3pt} \Tc{3pt} \Tc{3pt} \Tc{3pt}} & \pstree{\Tc*{3pt}}{\Tc*{3pt} \Tc*{3pt} \Tc*{3pt} \Tc*{3pt}} \\
16 \hline \multicolumn{2}{|c|}{ \BS{pstree}\AC{\BSS{Tc}*}\AC{\BS{}Tc* \BS{}Tc* \BS{}Tc* \BS{Tc}=*} } \\
17 \hline \pstree{\TC}{\TC \TC \TC \TC} & \pstree{\TC*}{\TC* \TC* \TC* \TC*} \\
18 \hline \multicolumn{2}{|c|}{ \BS{}pstree\AC{\BSS{TC}*}\AC{\BS{}TC* \BS{}TC* \BS{}TC* \BS{}TC*} \BSI{TC}{pst-tree} } \\
19 \hline \pstree{\Tf}{\Tf \Tf \Tf \Tf} & \pstree{\Tf*}{\Tf* \Tf* \Tf* \Tf*} \\
20 \hline \multicolumn{2}{|c|}{ \BS{}pstree\AC{\BSS{Tf}*}\AC{\BS{}Tf* \BS{}Tf* \BS{}Tf* \BS{}Tf*} \BSI{TC}{pst-tree}} \\
21 \hline \pstree{\Tdot}{\Tdot \Tdot \Tdot \Tdot} & \pstree{\Tdot*}{\Tdot* \Tdot* \Tdot* \Tdot*} \\
22 \hline \multicolumn{2}{|c|}{ \BS{}pstree\AC{\BSS{Tdot}*}\AC{\BS{}Tdot* \BS{}Tdot* \BS{}Tdot* \BS{}Tdot*} \BSI{Tdot}{pst-tree} } \\
23 \hline
24 \end{tabular}
25
26
27 \begin{tabular}{|c|c|}
28 \hline \textbf{ \TFRGB{sans astérisque}{without asterisk}} & \textbf{\TFRGB{avec astérisque}{with asterisk}}\\
29 \hline \pstree{\Tr{A1}}{\Tr{B1} \Tr{B2} \Tr{B3} \Tr{B4}} & \pstree{\Tr*{A1}}{\Tr*{B1} \Tr*{B2} \Tr*{B3} \Tr*{B4}} \\
30 \hline \multicolumn{2}{|c|}{ \BS{pstree}\AC{\BSS{Tr}\AC{A1}}\AC{\BS{Tr}\AC{B1} \BS{Tr}\AC{B2} \BS{Tr}\AC{B3} \BS{Tr}\AC{B4}} \BSI{Tr}{pst-tree} } \\
31
32 \hline \pstree{\TR{A1}}{\TR{B1} \TR{B2} \TR{B3} \TR{B4}} & \pstree{\TR*{A1}}{\TR*{B1} \TR*{B2} \TR*{B3} \TR*{B4}} \\
33 \hline \multicolumn{2}{|c|}{ \BS{pstree}\AC{\BSS{TR}\AC{A1}}\AC{\BS{TR}\AC{B1} \BS{TR}\AC{B2} \BS{TR}\AC{B3} \BS{TR}\AC{B4}} \BSI{TR}{pst-tree} }\\
34
35 \hline \pstree{\Tcircle{A1}}{\Tcircle{B1} \Tcircle{B2} \Tcircle{B3} \Tcircle{B4}} & \pstree{\Tcircle*{A1}}{\Tcircle*{B1} \Tcircle*{B2} \Tcircle*{B3} \Tcircle*{B4}} \\
36 \hline
37 \multicolumn{2}{|c|}{ \BS{}pstree \AC{\BSS{Tcircle}\AC{A1}}\AC{\BS{Tcircle}\AC{B1} \BS{Tcircle}\AC{B2} \BS{Tcircle}\AC{B3} \BS{Tcircle}\AC{B4} } \BSI{Tcircle}{pst-tree} }\\
38
39
40 \hline \pstree{\TCircle{A1}}{\TCircle{B1} \TCircle{B2} \TCircle{B3} \TCircle{B4}} & \pstree{\TCircle*{A1}}{\TCircle*{B1} \TCircle*{B2} \TCircle*{B3} \TCircle*{B4}} \\
41 \hline
42 \multicolumn{2}{|c|}{ \BS{}pstree \AC{\BSS{TCircle}\AC{A1}}\AC{\BS{TCircle}\AC{B1} \BS{TCircle}\AC{B2} \BS{TCircle}\AC{B3} \BS{TCircle}\AC{B4} } \BSI{TCircle}{pst-tree} }\\
43
44 \hline \pstree{\Toval{A1}}{\Toval{B1} \Toval{B2} \Toval{B3} \Toval{B4}} & \pstree{\Toval*{A1}}{\Toval*{B1} \Toval*{B2} \Toval*{B3} \Toval*{B4}} \\
45 \hline
46 \multicolumn{2}{|c|}{ \BS{}pstree \AC{\BSS{Toval}\AC{A1}}\AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2} \BS{Toval}\AC{B3} \BS{Toval}\AC{B4} } \BSI{Toval}{pst-tree} }\\
47
48
49 \hline \pstree{\Tdia{A1}}{\Tdia{B1} \Tdia{B2} \Tdia{B3} \Tdia{B4}} & \pstree{\Tdia*{A1}}{\Tdia*{B1} \Tdia*{B2} \Tdia*{B3} \Tdia*{B4}} \\
50 \hline
51 \multicolumn{2}{|c|}{ \BS{}pstree \AC{\BSS{Tdia}\AC{A1}}\AC{\BS{Tdia}\AC{B1} \BS{Tdia}\AC{B2} \BS{Tdia}\AC{B3} \BS{Tdia}\AC{B4} } \BSI{Tdia}{pst-tree} }\\
52
53 \hline \pstree{\Ttri{A1}}{\Ttri{B1} \Ttri{B2} \Ttri{B3} \Ttri{B4}} & \pstree{\Ttri*{A1}}{\Ttri*{B1} \Ttri*{B2} \Ttri*{B3} \Ttri*{B4}} \\
54 \hline
55 \multicolumn{2}{|c|}{ \BS{}pstree \AC{\BSS{Ttri}\AC{A1}}\AC{\BS{Ttri}\AC{B1} \BS{Ttri}\AC{B2} \BS{Ttri}\AC{B3} \BS{Ttri}\AC{B4} } \BSI{Ttri}{pst-tree} }\\
56 \hline
57 \end{tabular}
58
59
60 \begin{tabular}{|c|c|}
61 \hline
62 \pstree{\Toval{A1}}{
63 \pstree{\Tfan}{\Toval{B1}}
64 \pstree{\Tfan[fansize=.5]}{\Toval{B2}}
65 \pstree{\Tfan}{\Toval{B3} \Toval{B4} }}
66 &
67 \parbox[t]{8cm}{
68 \BS{pstree}\AC{\BS{Toval}\AC{A1}}\AC{\% \\
69 \BS{pstree}\AC{\BSS{Tfan}}\AC{\BS{Toval}\AC{B1}} \BSI{Tfan}{pst-tree} \\
70 \BS{pstree}\AC{\textbf{\BS{Tfan}[\RDD{fansize}=.5]}}\AC{\BS{Toval}\AC{B2}} \RDI{fansize}{pst-tree} \\
71 \BS{pstree}\AC{\textbf{\BS{Tfan}}}\AC{\BS{Toval}\AC{B3} \BS{Toval}\AC{B4} } \\
72 }
73
74 \bigskip
75 {\blue \dft{} : fansize= 1cm }\\
76 }
77 \\ \hline
78 \end{tabular}
79
80 %---------------------------------------------------
81 \subsection{Orientation}
82
83
84 \begin{tabular}{|c|c|c|c|}
85 \hline \multicolumn{4}{|c|}{ \BS{pstree}[\RDD{treemode}=R]\AC{\BS{Toval}\AC{A1}}\AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2}} \RDI{treemode}{pst-tree} } \\
86 \hline
87 \pstree[treemode=R]{\Toval{A1}}{\Toval{B1} \Toval{B2}}
88 &
89 \pstree[treemode=D]{\Toval{A1}}{\Toval{B1} \Toval{B2} }
90 &
91 \pstree[treemode=L]{\Toval{A1}}{\Toval{B1} \Toval{B2}}
92 &
93 \pstree[treemode=U]{\Toval{A1}}{\Toval{B1} \Toval{B2} }
94 \\
95 \hline treemode=R & treemode=D & treemode=L & treemode=U \\
96 \hline
97 \end{tabular}
98
99 \bigskip
100 \begin{tabular}{|c|c|}
101 \hline \multicolumn{2}{|c|}{\BS{pstree}[\RDD{treeflip}=true]\AC{ \BS{Toval}\AC{A1}} \{\BS{Toval}\AC{B1} \RDI{treeflip}{pst-tree} } \\
102 \multicolumn{2}{|c|}{ \BS{pstree}[treemode=R]\AC{\BS{Toval}\AC{B2}}\AC{\BS{Toval}\AC{C1}}\} } \\
103 \hline
104 \pstree[treeflip=true]{\Toval{A1}}{\Toval{B1} \pstree[treemode=R]{\Toval{B2}}{\Toval{C1}}}
105 &
106 \pstree[treeflip=false]{\Toval{A1}}{\Toval{B1} \pstree[treemode=R]{\Toval{B2}}{\Toval{C1}}}
107 \\
108 \hline treeflip=true & treeflip=false {\blue (\dft)}\\
109 \hline
110 \end{tabular}
111
112 %----------------------------------------------------------------------
113 \SbSSCT{Distance entre 2 noeuds de même niveau}{Distance between two nodes on the same level}
114
115
116 \begin{tabular}{|c|c|} \hline
117 \multicolumn{2}{|c|}{ \BS{pstree}[\RDD{treefit}=tight] \AC{ \BS{Toval}\AC{A1}} \{ \BS{Toval}\AC{B1} \RDI{treefit}{pst-tree} }\\
118 \multicolumn{2}{|c|}{ \BS{pstree}\AC{ \BS{Toval}\AC{B2}} \AC{ \BS{Toval}\AC{C1} \BS{Toval}\AC{C2} }\} } \\
119 \hline
120 \pstree[treefit=tight]{\Toval{A1}} {\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
121 &
122 \pstree[treefit=loose]{\Toval{A1}}{\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
123 \\
124 \hline {\red treefit=tight} {\blue (\dft)} & {\red treefit=loose } \\
125 \hline
126 \end{tabular}
127
128 \bigskip
129 \begin{tabular}{|c|c|}
130 \hline
131 \multicolumn{2}{|c|}{ \BS{pstree}[\RDD{treesep}=0cm]\AC{\BS{Toval}\AC{A1}}\AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2}} \RDI{treesep}{pst-tree} } \\
132 \hline
133 \pstree[treesep=0cm]{\Toval{A1}}{\Toval{B1} \Toval{B2}}
134 &
135 \pstree[treesep=2cm]{\Toval{A1}}{\Toval{B1} \Toval{B2}}
136 \\
137 \hline {\red treesep}=0cm & {\red treesep}=2cm {\blue (\dft: treesep=0.75cm) } \\
138 \hline
139 \end{tabular}
140
141 \bigskip
142 \begin{tabular}{|c|c|} \hline
143 \multicolumn{2}{|c|}{ \BS{pstree}[\RDD{treenodesize}=1]\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2 B2 B2} \BS{Toval}\AC{B3 B3 B3} } \RDI{treenodesize}{pst-tree} }\\
144 \hline
145 \pstree[treenodesize=1]{\Toval{A1}} {\Toval{B1} \Toval{B2 B2 B2} \Toval{B3 B3 B3} }
146 &
147 \pstree[treenodesize=-1]{\Toval{A1}} {\Toval{B1} \Toval{B2 B2 B2} \Toval{B3 B3 B3} }
148 \\ \hline
149 {\red treenodesize=1}
150 &
151 {\red treenodesize=-1}
152 \\ \hline
153 \end{tabular}
154
155 \bigskip
156 \begin{tabular}{|c|c|} \hline
157 \multicolumn{2}{|c|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} \BSS{tspace}\AC{-1cm} \BS{Toval}\AC{B2} \BS{Toval}\AC{B3} } \BSI{Tspace}{pst-tree} }\\
158 \hline
159 \pstree{\Toval{A1}} {\Toval{B1} \tspace{-1cm} \Toval{B2} \Toval{B3} }
160 &
161 \pstree{\Toval{A1}}{\Toval{B1}\tspace{1cm} \Toval{B2} \Toval{B3} }
162 \\ \hline
163 {\red \BS{tspace}\AC{-1cm}}
164 &
165 {\red \BS{tspace}\AC{1cm}}
166 \\ \hline
167 \end{tabular}
168
169 \bigskip
170 \begin{tabular}{|c|c|} \hline
171 \parbox[c]{4cm}{
172 \pstree[levelsep=1cm]{\Toval{A1}}{\Toval{B1}
173 \pstree{\Toval{B2}}{\pstree[thistreefit=loose]{\Toval{C1}}{\red \Toval{D1} \pstree{\Toval{D2}}{\black \Toval{E1} \Toval{E2}}}\Toval{C2}}}
174 }
175 &
176 \parbox[l]{8cm}{
177 \BS{pstree}[levelsep=1cm]\AC{\BS{Toval}\AC{A1}}\\
178 \AC{\BS{Toval}\AC{B1} \\
179 \BS{pstree}\AC{\BS{Toval}\AC{B2}}\AC{ \\
180 \BS{pstree}[\RDD{thistreefit}=loose]\AC{\BS{Toval}\AC{C1}} \RDI{thistreefit}{pst-tree} \\
181 \AC{\BS{Toval}\AC{D1} \\
182 \BS{pstree}\AC{\BS{Toval}\AC{D2}}\\
183 \AC{\BS{Toval}\AC{E1} \\
184 \BS{Toval}\AC{E2}}}\\
185 \BS{Toval}\AC{C2}}}
186 }
187 \\ \hline
188 \end{tabular}
189 \bigskip
190
191 \begin{tabular}{|c|c|} \hline
192 \parbox[c]{4cm}{
193 \pstree[levelsep=1cm]{\Toval{A1}}{\Toval{B1}
194 \pstree{\Toval{B2}}{ \pstree[thistreesep=0]{\Toval{C1}}{\red \Toval{D1} \pstree{\Toval{D2}}{\black \Toval{E1} \Toval{E2}}}\Toval{C2}}}
195 }
196 &
197 \parbox[l]{8cm}{
198 \BS{pstree}[levelsep=1cm]\AC{\BS{Toval}\AC{A1}}\\
199 \AC{\BS{Toval}\AC{B1} \\
200 \BS{pstree}\AC{\BS{Toval}\AC{B2}}\AC{ \\
201 \BS{pstree}[\RDD{thistreesep}=0]\AC{\BS{Toval}\AC{C1}} \RDI{thistreesep}{pst-tree} \\
202 \AC{\BS{Toval}\AC{D1} \\
203 \BS{pstree}\AC{\BS{Toval}\AC{D2}}\\
204 \AC{\BS{Toval}\AC{E1} \\
205 \BS{Toval}\AC{E2}}}\\
206 \BS{Toval}\AC{C2}}}
207 }
208 \\ \hline
209 \end{tabular}
210
211
212
213 %--------------------------------------------------------------------------
214 \SbSSCT{Distance entre noeuds successifs}{Distance between successive nodes}
215
216
217 \begin{tabular}{|c|c|c|c|}
218 \hline
219 \multicolumn{4}{|c|}{\BS{pstree}[\RDD{levelsep}=1cm] \AC{\BS{Toval}\AC{A1}} \AC{ \BS{Toval}\AC{B1} \BS{pstree}\AC{\BS{Toval}\AC{B2}} \AC{\BS{Toval}\AC{C1} \BS{Toval}\AC{C2}} } \RDI{levelsep}{pst-tree} }\\
220 \hline
221 \pstree[levelsep=1cm]{\Toval{A1}} {\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
222 &
223 \pstree[levelsep=*1cm]{\Toval{A1}} {\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
224 &
225 \pstree[levelsep=.5cm]{\Toval{A1}}{\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
226 &
227 \pstree[levelsep=*.5cm]{\Toval{A1}}{\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
228 \\ \hline
229 \hline levelsep=1cm & levelsep=*1cm & levelsep=.5cm & levelsep=*.5cm \\ \hline
230 \multicolumn{4}{|c|}{ \blue (\dft : 2cm)}
231 \\ \hline
232 \end{tabular}
233
234 \bigskip
235 \begin{tabular}{|c|c|} \hline
236 \parbox[c]{4cm}{
237 \pstree[levelsep=1cm]{\Toval{A1}}{\Toval{B1}
238 \pstree{\Toval{B2}}{\pstree[levelsep=.5cm]{\Toval{C1}}{\red \Toval{D1} \pstree{\Toval{D2}}{\Toval{E1} \Toval{E2}}}\Toval{C2}}}
239 }
240 &
241 \parbox[l]{8cm}{
242 \BS{pstree}[levelsep=1cm]\AC{\BS{Toval}\AC{A1}}\\
243 \AC{\BS{Toval}\AC{B1} \\
244 \BS{pstree}\AC{\BS{Toval}\AC{B2}}\AC{ \\
245 \BS{pstree}[ \RDD{levelsep}=0.5cm]\AC{\BS{Toval}\AC{C1}} \RDI{levelsep}{pst-tree} \\
246 \AC{\BS{Toval}\AC{D1} \\
247 \BS{pstree}\AC{\BS{Toval}\AC{D2}}\\
248 \AC{\BS{Toval}\AC{E1} \\
249 \BS{Toval}\AC{E2}}}\\
250 \BS{Toval}\AC{C2}}}
251
252 }
253 \\ \hline
254 \end{tabular}
255
256 \bigskip
257
258 \begin{tabular}{|c|c|} \hline
259 \parbox[c]{4cm}{
260 \pstree[levelsep=1cm]{\Toval{A1}}{\Toval{B1}
261 \pstree{\Toval{B2}}{\pstree[thislevelsep=.5cm]{\Toval{C1}}{\red \Toval{D1} \pstree{\Toval{D2}}{\black \Toval{E1} \Toval{E2}}}\Toval{C2}}}
262 }
263 &
264 \parbox[l]{8cm}{
265 \BS{pstree}[levelsep=1cm]\AC{\BS{Toval}\AC{A1}}\\
266 \AC{\BS{Toval}\AC{B1} \\
267 \BS{pstree}\AC{\BS{Toval}\AC{B2}}\AC{ \\
268 \BS{pstree}[\RDD{thislevelsep}=0.5cm]\AC{\BS{Toval}\AC{C1}} \RDI{thislevelsep}{pst-tree} \\
269 \AC{\BS{Toval}\AC{D1} \\
270 \BS{pstree}\AC{\BS{Toval}\AC{D2}}\\
271 \AC{\BS{Toval}\AC{E1} \\
272 \BS{Toval}\AC{E2}}}\\
273 \BS{Toval}\AC{C2}}}
274
275 }
276 \\ \hline
277 \end{tabular}
278 %---------------------------------------------------------------------------------------------
279 \SbSSCT{Liaison des noeuds}{Connecting the nodes}
280
281
282
283 \bigskip
284 \begin{tabular}{|c|c|l|}
285 \hline
286 \parbox[l]{3.5cm}{
287 \renewcommand{\psedge}{\ncdiag[angle=-90, armA=0, angleB=90,armB=1cm]}
288 \pstree{\Toval{A1}} {\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
289 }
290 &
291 \parbox[l]{3.5cm}{
292 \def\psedge{\nccurve[angleA=-90,angleB=90, nodesepB=3pt]}
293
294 \pstree{\Toval{A1}} {\Toval{B1} \pstree{\Toval{B2}}{\Toval{C1} \Toval{C2}}}
295 }
296 &
297 \parbox[l]{6cm}{
298 \emph {\TFRGB{Redéfinition du type de liaison 2 possibilités}{the 2 ways to set the connection type} :}
299 \bigskip
300
301 \BSS{renewcommand}\AC{\BSS{psedge}} \AC{\BS{ncdiag}[angle=-90,armA=0,angleB=90,armB=1cm]}
302
303 \bigskip
304 \BSS{def}\BSS{psedge}\AC{\BS{nccurve}[angleA=-90 ,angleB=90,nodesepB=3pt]}
305 }
306 \\ \hline
307 \multicolumn{3}|c|{ {\blue \dft : \BS{ncline}} \hspace{1cm} \TFRGB{Autres possibilités voir}{other connection see} page \pageref{node} } \\
308 % \multicolumn{3}{|c|}{ Autres possibilités voir page \pageref{node}} \\
309 \hline
310 \end{tabular}
311
312 \bigskip
313 \begin{tabular}{|c|c|}
314 \hline
315 \pstree{\Toval{A1}} {\Toval[edge={\ncdiag[angleA=-90,angleB=90,armA=0,armB=1cm]}]{B1} \Toval[edge={\nccurve[angleA=-90,angleB=90]}]{B2}}
316 &
317 \parbox[t]{12cm}{
318 \smallskip
319 \BS{pstree}\AC{\BS{Toval}\AC{A1}} \\
320 \AC{\BS{Toval}[\RDD{edge}=\AC{\BS{ncdiag}[angleA=-90,angleB=90,armA=0,armB=1cm]}]\AC{B1} \RDI{edge}{pst-tree} \\
321 \BS{Toval}[{\red edge}=\AC{\BS{nccurve}[angleA=-90,angleB=90]}]\AC{B2}}
322 }
323 \\
324 \hline
325 \end{tabular}
326
327 \bigskip
328
329 \begin{tabular}{|c|c|}
330 \hline
331 \pstree{\Toval{A1}} {\Toval[name=A]{B1} \Toval[name=B]{B2}}
332 \ncline[linestyle=dashed,linecolor=red]{A}{B}
333 &
334 \parbox[t]{12cm}{
335 \smallskip
336 \BS{pstree}\AC{\BS{Toval}\AC{A1}} \\
337 \AC{\BS{Toval}[\RDD{name}=A]\AC{B1}\BS{Toval[{\red name}=B]\AC{B2}}} \RDI{name}{pst-tree} \\
338 \smallskip
339 \BS{ncline}[linestyle=dashed,linecolor=red]\AC{A}\AC{B} \\
340 }
341 \\
342 \hline
343 \end{tabular}
344
345
346 \SbSSCT{Etiquettes}{Labels}
347 \SbSbSSCT{Etiquettes sur les liaisons}{Labels on the connection}
348
349 \begin{tabular}{|c|c|c|c|}
350 \hline
351 \multicolumn{4}{|c|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} {\red \BS{tlput}\AC{\BS{}red l}} \BS{Toval}\AC{B2} } }\\
352 \hline
353 \pstree{\Toval{A1}} {\Toval{B1} \tlput{\red l} \Toval{B2}}
354 &
355 \pstree{\Toval{A1}} {\Toval{B1} \trput{\red r} \Toval{B2}}
356 &
357 \pstree{\Toval{A1}} {\Toval{B1} \taput{\red a} \Toval{B2}}
358 &
359 \pstree{\Toval{A1}} {\Toval{B1} \tbput{\red b} \Toval{B2}}
360 \\
361 \hline \BSS{tlput}\AC{\BS{}red l} \BSI{tlput}{pst-tree} & \BSS{trput}\AC{\BS{}red r} \BSI{trput}{pst-tree} & \BSS{taput}\AC{\BS{}red a} \BSI{taput}{pst-tree} & \BSS{tbput}\AC{\BS{}red a} \BSI{tbput}{pst-tree} \\
362 \hline
363 \end{tabular}
364
365 \bigskip
366 \begin{tabular}{|c|c|c|c|}
367 \hline
368 \multicolumn{4}{|c|}{ \BS{pstree}[{\red treemode=L}]\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} {\red \BS{tlput}\AC{\BS{}red l}} \BS{Toval}\AC{B2} } }\\
369 \hline
370 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} \tlput{\red l} \Toval{B2}}
371 &
372 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} \trput{\red r} \Toval{B2}}
373 &
374 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} \taput{\red a} \Toval{B2}}
375 &
376 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} \tbput{\red b} \Toval{B2}}
377 \\
378 \hline \BS{tlput}\AC{\BS{}red l} & \BS{trput}\AC{\BS{}red r} & \BS{taput}\AC{\BS{}red a} & \BS{taput}\AC{\BS{}red a} \\
379 \hline
380 \end{tabular}
381 \bigskip
382
383 \begin{tabular}{|c|c|c|c|}
384 \hline
385 \multicolumn{4}{|c|}{\BS{}psset\AC{tpos=.75} \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} {\red \BS{tlput}\AC{\BS{}red X}} \BS{Toval}\AC{B2} } }\\
386 \hline
387 \psset{tpos=0}
388 \pstree{\Toval{A1}} {\Toval{B1} \tlput{\red X} \Toval{B2}}
389 &
390 \psset{tpos=.75}
391 \pstree{\Toval{A1}} {\Toval{B1} \tlput{\red X} \Toval{B2}}
392 &
393 \psset{tpos=1}
394 \pstree{\Toval{A1}} {\Toval{B1} \tlput{\red X} \Toval{B2}}
395 &
396 \pstree{\Toval{A1}} {\Toval{B1} \tlput{\red X} \Toval{B2}}
397 \\
398 \hline tpos=0 & tpos=.75 & tpos=1 & {\blue \dft }\\
399 \hline
400 \end{tabular}
401
402 %------------------------------------------------------------------------------------------------
403 \SbSbSSCT{Etiquettes sur les noeuds}{Labels on the nodes}
404
405 \begin{tabular}{|c|c|c|c|}
406 \hline
407 \multicolumn{4}{|c|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} $\sim$[\RDD{tnpos}=l]\AC{\BS{}red l}} \BS{Toval}\AC{B2} \RDI{tnpos}{pst-tree} } \\
408 \hline
409 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=l]{\red l} \Toval{B2}}
410 &
411 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=r]{\red r} \Toval{B2}}
412 &
413 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=a]{\red a} \Toval{B2}}
414 &
415 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b]{\red b}\Toval{B2}}
416 \\
417 \hline tnpos=l & tnpos=r & tnpos=a & tnpos=b \\
418 \hline
419 \end{tabular}
420
421 \bigskip
422 \begin{tabular}{|c|c|c|c|}
423 \hline
424 \multicolumn{4}{|c|}{ \BS{pstree}[{\red treemode=L}]\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} { $\sim$[{\red tnpos}=l]\AC{\BS{}red l}} \BS{Toval}\AC{B2} } }\\
425 \hline
426 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} ~[tnpos=l]{\red l} \Toval{B2}}
427 &
428 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1}~[tnpos=r]{\red r} \Toval{B2}}
429 &
430 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} ~[tnpos=a]{\red a} \Toval{B2}}
431 &
432 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} ~[tnpos=b]{\red b} \Toval{B2}}
433 \\
434 \hline tnpos=l & tnpos=r & tnpos=a & tnpos=b \\
435 \hline
436 \end{tabular}
437
438 \bigskip
439 \begin{tabular}{|c|c|c|c|}
440 \hline
441 \multicolumn{4}{|c|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} {$\sim$[tnpos=b,\RDD{tnsep}=1cm]\AC{\BS{}red 1cm}} \BS{Toval}\AC{B2} } \RDI{tnsep}{pst-tree} }\\
442 \hline
443 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnsep=1cm]{\red 1cm} \Toval{B2}}
444 &
445 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnsep=-1cm]{\red -1cm} \Toval{B2}}
446 &
447 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnsep=0cm]{\red 0cm} \Toval{B2}}
448 &
449 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b]{\blue\dft}\Toval{B2}}
450 \\
451 \hline tnsep=1cm & tnsep=-1cm & tnsep=0cm & {\blue\dft }\\
452 \hline
453 \end{tabular}
454
455
456 \bigskip
457 \begin{tabular}{|c|c|c|c|}
458 \hline
459 \multicolumn{4}{|c|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} {$\sim$[tnpos=b,\RDD{tnheight}=1cm]\AC{\BS{}red l}} \BS{Toval}\AC{B2} } \RDI{tnheight}{pst-tree} }\\
460 \hline
461 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnheight=1cm]{\red 1cm} \Toval{B2}}
462 &
463 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnheight=-1cm]{\red -1cm} \Toval{B2}}
464 &
465 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnheight=0cm]{\red 0cm} \Toval{B2}}
466 &
467 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b]{\blue \dft}\Toval{B2}}
468 \\
469 \hline tnheight=1cm & tnheight=-1cm & tnheight=0cm & {\blue \dft } \\
470 \hline
471 \end{tabular}
472 \bigskip
473
474 \begin{tabular}{|c|c|c|c|}
475 \hline
476 \multicolumn{4}{|c|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} {$\sim$[tnpos=b,\RDD{tnyref}=1cm]\AC{\BS{}red l}} \BS{Toval}\AC{B2} } \RDI{tnyref}{pst-tree} }\\
477 \hline
478 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnyref=1cm]{\red 1cm} \Toval{B2}}
479 &
480 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnyref=-1cm]{\red -1cm} \Toval{B2}}
481 &
482 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b,tnyref=0cm]{\red 0cm} \Toval{B2}}
483 &
484 \pstree{\Toval{A1}} {\Toval{B1}~[tnpos=b]{\blue \dft}\Toval{B2}}
485 \\
486 \hline tnyref=1cm &tnyref=-1cm & tnyref=0cm & {\blue \dft }\\
487 \hline
488 \end{tabular}
489
490
491 %------------------------------------------------------------------------------
492 \newpage
493 \SbSSCT{Showbbox}{Showbbox}
494
495 \begin{tabular}{|c|c|}
496 \hline
497 \multicolumn{2}{|l|}{ \BS{psset}\AC{\RDD{showbbox}=true} }\\
498 \multicolumn{2}{|l|}{ \BS{pstree}\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2}} \RDI{showbbox}{pst-tree} }\\
499 \hline
500 &\\
501 \psset{showbbox=true}
502 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
503 &
504 \psset{showbbox=false}
505 \pstree[treemode=L]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
506 \\
507 &\\
508 \hline showbbox=true & showbbox=false \\
509 \hline
510 \end{tabular}
511
512
513 \bigskip
514 \begin{tabular}{|c|c|c|c|}
515 \hline
516 \multicolumn{4}{|c|}{ \BS{psset}\AC{showbbox=true} \BS{pstree}[bbl=1cm]\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2}} }\\
517
518 \psset{showbbox=true}
519 \pstree[bbl=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
520 &
521 \psset{showbbox=true}
522 \pstree[bbr=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
523 &
524 \psset{showbbox=true}
525 \pstree[bbh=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
526 &
527 \psset{showbbox=true}
528 \pstree[bbd=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
529 \\
530 \RDD{bbl}=1cm \RDI{bbl}{pst-tree} &
531 \RDD{bbr}=1cm \RDI{bbr}{pst-tree}&
532 \RDD{bbh}=1cm \RDI{bbh}{pst-tree}&
533 \RDD{bbd}=1cm \RDI{bbd}{pst-tree}\\
534 \hline
535 \end{tabular}
536
537 \bigskip
538
539 \begin{tabular}{|cccc|}
540 \hline
541 \multicolumn{4}{|c|}{ \BS{psset}\AC{showbbox=true} \BS{pstree}[\RDD{xbbl}=1cm]\AC{\BS{Toval}\AC{A1}} \AC{\BS{Toval}\AC{B1} \BS{Toval}\AC{B2}} \RDI{xbbl}{pst-tree} }\\
542
543 &&&\\
544 \psset{showbbox=true}
545 \pstree[xbbl=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
546 &
547 \psset{showbbox=true}
548 \pstree[xbbr=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
549 &
550 \psset{showbbox=true}
551 \pstree[xbbh=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
552 &
553 \psset{showbbox=true}
554 \pstree[xbbd=1cm]{\Toval{A1}} {\Toval{B1} \Toval{B2}}
555 \\
556
557 \RDD{xbbl}=1cm \RDI{xbbl}{pst-tree}&
558 \RDD{xbbr}=1cm \RDI{xbbr}{pst-tree}&
559 \RDD{xbbh}=1cm \RDI{xbbh}{pst-tree}&
560 \RDD{xbbd}=1cm \RDI{xbbd}{pst-tree}\\
561 \hline
562 \end{tabular}
563
564 \bigskip
565 \begin{tabular}{|c|c|c|}
566 \hline
567 \pstree{\Tc{3pt}~[tnpos=a,tndepth=0pt,radius=4pt]{root}}{%
568 \TC*~[tnpos=l,tndepth=0pt]{$h$}
569 \TC*~[tnpos=r,tndepth=0pt]{$i$}}
570 &
571 \pstree{\Tc{3pt}~[tnpos=a,tndepth=1cm,radius=4pt]{root}}{%
572 \TC*~[tnpos=l,tndepth=1cm]{$h$}
573 \TC*~[tnpos=r,tndepth=1cm]{$i$}}
574 &
575 \pstree{\Tc{3pt}~[tnpos=a,tndepth=-1cm,radius=4pt]{root}}{%
576 \TC*~[tnpos=l,tndepth=-1cm]{$h$}
577 \TC*~[tnpos=r,tndepth=-1cm]{$i$}}
578 \\
579 \hline \RDD{tndepth}=0pt \RDI{tndepth}{pst-tree} & \RDD{tndepth}=1cm \RDI{tndepth}{pst-tree} &
580 \RDD{tndepth}=-1cm \RDI{tndepth}{pst-tree}\\
581 \hline
582 \end{tabular}
583
584 %----------------------------------------------------------
585 \SbSSCT{skiplevel}{skiplevel}
586 \begin{tabular}{|c|c|} \hline
587 \parbox[l]{6cm}{
588 \pstree[levelsep=1cm,treesep=0cm]{\Toval{A1}}{%
589 \skiplevel{\Toval{\red B1}}
590 \pstree{\Toval{B2}}{%
591 \Toval{C1}
592 \skiplevels{2}
593 \pstree{\Toval{\red C2}}{\Toval{D1} \Toval{D2}}
594 \Toval{\red C3}
595 \endskiplevels
596 \pstree{\Toval{C4}}{\Toval{E1} \Toval{E2}}}}
597 }
598
599 &
600 \parbox[l]{8cm}{
601 \BS{pstree}[levelsep=1cm,treesep=0cm]\AC{\BS{Toval}\AC{A1}}\AC{\% \\
602 \\
603 \BSS{skiplevel} \AC{\BS{Toval}{\red \AC{\BS{}red B1}} } \BSI{skiplevel}{pst-tree} \\
604
605 \BS{pstree}\AC{\BS{Toval}\AC{B2}}\AC{\% \\
606 \BS{Toval}\AC{C1} \\
607 \\
608 \BSS{skiplevels}\AC{2} \BSI{skiplevels}{pst-tree}\\
609 \BS{pstree}\AC{\BS{Toval}{\red \AC{\BS{}red C2}}}\AC{\BS{Toval}\AC{D1} \BS{Toval}\AC{D2}} \\
610 \BS{Toval}{\red \AC{\BS{}red C3}} \\
611 \BSS{endskiplevels} \BSI{endskiplevel}{pst-tree} \\
612 \\
613 \BS{pstree}\AC{\BS{Toval}\AC{C4}}\AC{\BS{Toval}\AC{E1} \BS{Toval}\AC{E2}}}} \\
614 }
615 \\ \hline
616 \end{tabular}
617