summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/6-7-14.ltx
blob: 4205bf010891da2df420aba71a1e22ee069a4b52 (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
%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 6-7-14 on page 425.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  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.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{231.83385pt}
\StartShownPreambleCommands
\usepackage{pstricks,pst-jtree}
\StopShownPreambleCommands
\begin{document}
\jtree[dirA=(1:-1),nodesepA=0,nodesepB=.8ex,xunit=2.2em,yunit=1em,style=arrows2]
\! =  :!a {\rnode{K1}{knew}}.  \!a = :!b {\rnode{O1}{owned}}.
\!b = :!c {\rnode{C1}{cats}}.
\!c = :\jtlong !d [scaleby=1.8] :{and}() [scaleby=2.4]
                                :{he}() @K2 <left>\jtjot !e .
\!d = :{she}() @K3 <left>\jtjot !f .
\!e = :{a woman}[labeloffset=-1ex] :{who}() @O2 <left>@C2 <left>{four}.
\!f = :{a man} :{who}() @O3 <left>@C3 <left>{three}.
\psset{linestyle=dashed,arrows=<-}
\nccurve[angleB=-10,ncurvB=2,ncurvA=1.2]{O2}{O1}
\nccurve[angleB=-90,ncurvA=1.4]{O3}{O1}
\nccurve[angleB=-10,ncurvB=1.8,ncurvA=1.6]{K2}{K1}
\nccurve[angleB=-90,ncurvA=1.4]{K3}{K1}
\empty
\nccurve[angleB=-90,ncurvA=1.4]{C3}{C1}
\nccurve[angleB=-10,ncurvB=1.8,ncurvA=1.6]{C2}{C1}
\endjtree
\end{document}