summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples-en/33-04-6.ltx
blob: 1d5156f00624dacd07a765b470ed3f38f29add2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%% 
%%  A DANTE-Edition example
%% 
%%  Example 33-04-6 on page 730.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}

\usepackage{pst-pdgr}

\begin{document}
\begin{pspicture}(6,6)   \psset{belowtextrp=t,armB=1}
 \rput(2.5,5.5){\pstPerson[male,deceased,belowtext=A:1]{A:1}}
 \rput(3.5,5.5){\pstPerson[female,deceased,belowtext=A:2]{A:2}}
 \pstRelationship[descentnode=A:1_2]{A:1}{A:2}
 \rput(1,3.5){\pstPerson[female,affected,belowtext=B:1]{B:1}}
 \pstDescent{A:1_2}{B:1}  \rput(2,3.5){\pstPerson[male,belowtext=B:2]{B:2}}
 \pstRelationship[descentnode=B:1_2]{B:1}{B:2}
 \rput(3.5,3.5){\pstPerson[male,affected,belowtext=B:3]{B:3}}
 \pstDescent{A:1_2}{B:3}  \rput(4.5,3.5){\pstPerson[female,belowtext=B:4]{B:4}}
 \pstRelationship[descentnode=B:3_4]{B:3}{B:4}
 \rput(5.5,3.5){\pstPerson[female,affected,deceased,proband,belowtext=B:5]{B:5}}
 \pstDescent{A:1_2}{B:5}  \rput(0.5,1.5){\pstPerson[female,belowtext=C:1]{C:1}}
 \pstDescent{B:1_2}{C:1}  \rput(1.5,1.5){\pstPerson[female,belowtext=C:2]{C:2}}
 \pstDescent{B:1_2}{C:2}  \rput(2.5,1.5){\pstPerson[female,deceased,
                                belowtext=\parbox{2cm}{\centering C:3\\4/52}]{C:3}}
 \pstDescent{B:1_2}{C:3}  \rput(3.5,1.5){\pstPerson[female,affected,belowtext=C:4]{C:4}}
 \pstDescent{B:3_4}{C:4}  \rput(4.5,1.5){\pstPerson[male,insidetext=?,belowtext=C:5]{C:5}}
 \pstDescent{B:3_4}{C:5}
\end{pspicture}
\end{document}