[pstricks] Geneaology/pedigree charts.

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Jul 4 17:51:30 CEST 2005


John R. Culleton wrote:

> Yes, pstree seems to do the trick. For an example please see 
> http://wexfordpress.com/ceili2.htm. Source available if anyone
> is interested. 
> 
> I wonder if there is a way to put arrowheads on the connecting lines and
> still use \pstree?

use of \psedge or option edge

Herbert


\documentclass[12pt]{article}
\usepackage{pst-tree}
\begin{document}

\def\psedge#1#2{%
   \nccurve[angleA=0,angleB=180]{->}{#1}{#2}%
}
\def\psedgeDash#1#2{%
    \nccurve[angleA=0,angleB=180,%
        linestyle=dashed]{->}{#1}{#2}%
}
\pstree[treemode=R,levelsep=3cm]{\Tcircle{0}}{%
   \Tcircle{1}
   \Tcircle{2}
   \Tcircle[edge=\psedgeDash]{3}
   \Tcircle[edge=\psedgeDash]{4}
}%

\end{document}




More information about the PSTricks mailing list