# [texhax] drawing gen trees compatible with hyperref

Konstantin Karapetyan kotya.public at gmail.com
Wed Mar 15 06:56:30 CET 2006

Dear TeXnics,

Can anybody suggest a method for elegant drawing of trees similar to
the attached one AND compatible with hyperref please? What I need is
1) to be able to compile into PDF, 2) the names in frames to be

The tree in the attachment was made with \framebox-es and manually put
and adjusted \rule-s which is not elegant at all but is perfectly
compatible with hyperref:

\begin{picture}(10,30)
\newlength{\rulewidth}
\setlength{\rulewidth}{0.1pt}
\newcommand{\hr}[3]{\put(#1,#2){\rule{#3}{\rulewidth}}}
\newcommand{\vr}[3]{\put(#1,#2){\rule{\rulewidth}{#3}}}
\newcommand{\personbox}[4]{\put(#1,#2){\framebox{\parbox[c]{#3}{\centering
#4}}}}

\personbox{30}{25}{2cm}{name surname}
\hr{22.3}{26}{7.8mm}
\vr{10}{10.5}{3mm}
\hr{10}{13.5}{30mm}
\vr{40}{10.5}{3mm}
\vr{26}{13.5}{12.5mm}
\end{picture}

Usually I use PSTricks for drawing but it won't work here since I need
multiple links at one figure, am I right?

TIA!

Konstantin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen.png
Type: image/png
Size: 9199 bytes
Desc: not available
Url : http://tug.org/pipermail/texhax/attachments/20060315/90eb77b7/gen-0001.png