summaryrefslogtreecommitdiff
path: root/info/translations/pst-jtree/de/11-boundingbox.tex
blob: ecf89af7525c6a4dc59efa3bbc6050617d8459c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

\section Die bounding-box

PSTricks generiert dimensionslose Grafiken aber \jTree\ verwendet eine menge Zeit damit die Gr\"o\ss\/e der B\"aume zu bestimmen und sie in eine angeme\ss en Gro\ss e Box zu stecken. Zum Beispiel: 

\excentered
\CLboxed
\psframebox[boxsep=0]{\jtree
\! = {X} :{a} :{a} :{a}
   {\multiline
      this and\cr
      that\endmultiline}.
\endjtree}
|endCLboxed
\hfil
\psframebox[boxsep=0]{\jtree
\! = {X} :{a} :{a} :{a}
   {\multiline
      this and\cr
      that\endmultiline}.
\endjtree}
\xe

Die Bestimmung der Gr\"o\ss\/e ist nicht perfekt. jTree ist nicht schlau genug um den wei\ss\/en Raum aufgrund von |labelgapt|, |labelgapb|, |labelstrutt| und |labelstruttb| zu erkennen. Aber das ist nicht schlimm. 


\medskip

Wenn PSTrick benutzt wird um Pfeile zu zeichnen, verla\ss\/en sie h\"aufig die \jTree\/ Zeichen-Box.

\excentered
\CLboxed
\psframebox[boxsep=0]{\jtree
\! = {X}@A1
   <right>
   :{a}
   :{a}
      {\multiline
         this and\cr
         that\endmultiline}@A2 .
\nccurve[angleA=210,angleB=200,
   ncurv=2,nodesepA=0]{->}{A1:b}{A2}
\endjtree}
|endCLboxed
\hfil
\psframebox[boxsep=0]{\jtree
\! = {X}@A1
   <right>
   :{a}
   :{a}
      {\multiline
         this and\cr
         that\endmultiline}@A2 .
\nccurve[angleA=210,angleB=200,
   ncurv=2,nodesepA=0]{->}{A1:b}{A2}
\endjtree}
\xe

Das muss von Hand behoben werden, indem man die richtigen Wortabst\"ande einf\"ugt.

\excentered
\CLboxed
\psframebox[boxsep=0]{\kern2.4em
\jtree
\! = {X}@A1
   <right>
   :{a}
   :{a}
      {\multiline
         this and\cr
         that\endmultiline}@A2 .
\nccurve[angleA=210,angleB=200,
   ncurv=2,nodesepA=0]{->}{A1:b}{A2}
\endjtree}
|endCLboxed
\hfil
\psframebox[boxsep=0]{\kern2.4em\jtree
\! = {X}@A1
   <right>
   :{a}
   :{a}
      {\multiline
         this and\cr
         that\endmultiline}@A2 .
\nccurve[angleA=210,angleB=200,
   ncurv=2,nodesepA=0]{->}{A1:b}{A2}
\endjtree}
\xe