[pstricks] Factor tree supporting comments

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Mar 8 17:19:54 CET 2009


David Arnold schrieb:
> Hmmm... Page 146 seems to indicate the use of \SpecialCoor. I didn't use
> that, but things look OK.

pstricks-add does it for you

> \pstree[nodesep=3pt,treesep=1,levelsep=0.7cm]{\Tr{24}}{%
>     \pstree{\Tr{4}}{\Tr{2}\Tr{2}}
>     \pstree{\Tr[name=six]{6}}{\Tr{2}\Tr[name=three]{3}}}
> \rput[l](0.25\linewidth,0|six){\color{darkred}$24=4\cdot 6$}%
> \rput[l](0.25\linewidth,0|three){\color{darkred}$4=2\cdot 2$ and
> $6=2\cdot 3$}%
> \pcline[linestyle=dotted,nodesepA=5pt,nodesepB=0.5em](six)(0.25\linewidth,0|six)%
> 
> \pcline[linestyle=dotted,nodesepA=5pt,nodesepB=1em](three)(0.25\linewidth,0|three)%
> 
> Am I gonna be OK here?

yes

Herbert


More information about the PSTricks mailing list