Alexis Wiasmitinow wrote:
> 
> I got this horizontal tree code from  Herbert Voss' homepage and I tried to
> transform it into a vertical one.
> 
> \newcommand{\Itemf}[1]{\Tr[ref=l]{%
> \psframebox[linestyle=solid]{#1}}}
> \renewcommand{\psedge}{\ncangle}
> \psset{xbbd=1.5cm,treemode=R,angleB=180,angleA=-00,levelsep=72pt}
> \pstree{\Itemf{Grandma}} {%
> \Itemf{Uncle}%
> \Itemf{Uncle}%
> \Itemf{Aunt}%
> {\pstree{\Itemf{Father}}{%
> \Itemf{Me}\Itemf{You}}}}
> 
> I changed line 4 into
> "\psset{xbbd=1.5cm,treemode=D,angleB=90,angleA=-90,levelsep=72pt} "
> (by trial and error) and it worked exept that the nodes were all on the left
> of the boxes instead of middle top/bottom
> 
> what is missing?

from the pstricks demo file:

\newcommand{\XX}[1]{\Tr{\psframebox{\rule{0pt}{9pt}#1}}}
\renewcommand{\psedge}{\ncangle}
\psset{angleB=90,angleA=-90,levelsep=36pt,armB=14pt}
\pstree{\XX{grandmother}} 
{\pstree{\XX{aunt}}{\XX{cousin}}
\pstree{\XX{mother}}
{\pstree{\XX{sister}}{\XX{niece}}
\pstree{\XX{Me}}
{\pstree{\XX{daughter}}
{\XX{granddaughter}}}}}


HErbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/

Reply via email to