[pstricks] Genealogical trees
Herbert Voss
LaTeX at zedat.fu-berlin.de
Thu Jun 8 08:09:27 CEST 2006
Jean-Philippe GÉRARD wrote:
> Building a family tree, I would like to shift horizontally the connector
> between two generations (levels).
>
> The vertical connector between these two generations is always put at
> the middle of the horizontal connector linking two characters (nodes) of
> the same generation (level).
the easiest way is using psmatrix.
Herbert
\documentclass[a4paper,12pt]{article}
\usepackage{pstricks,pst-tree,pst-node}
\begin{document}
\psset{edge={\ncangles[angleA=-90,angleB=90,nodesep=3pt]}}
\pstree{\Tr{Node 1}}{%
\Tn\Tn\Tr{Node 2}\Tn\Tn
\Tr{Node 3}
}
\vspace{1cm}
\begin{psmatrix}[colsep=0.5cm]
& [name=N1]Node 1 \\[0pt]
[name=N2]Node 2 & &\rule{3cm}{0pt} & [name=N3]Node 3
\end{psmatrix}
\ncangles[angleA=-90,angleB=90,nodesep=3pt]{N1}{N2}
\ncangles[angleA=-90,angleB=90,nodesep=3pt]{N1}{N3}
\end{document}
More information about the PSTricks
mailing list