summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_en/33-01-3.ltx
blob: eee4b6a0477cf5adde5e9b2b01799977485d6e21 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%% 
%%  A DANTE-Edition example
%% 
%%  Example 33-01-3 on page 662.
%% 
%%  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{225.70511pt}
\setlength\parindent{0pt}

\usepackage{rrgtrees}

\begin{document}
\psset{treesep=2ex}
\TOP{
\OPR[DEFa]{5}{the}
\CLAUSE{
  \CORE{
    \CORE[COREa]{
      \ARG{
        \NP{
          \WORD{cat}{
           \OP{N}{\OP{\Nuc\subN}{\OP{\Core\subN}{\OP[cat]{\np}
      }}}}}}
      \LINK{DEFa}{cat}{DEF}
      \OPR[might]{2}{\pnode{IF}might}
      \OPR[not]{2}{not}
      \NUC{forget}{\OP{V}{\OP{\Nuc}{\OP[forgetcore]{\Core}%
    }}}}
    \CMPL[COREb]{3}{to}
    \CORE[COREb]{
      \NUC{eat}{\OP{V}{\OP{\Nuc}{\OP[eatcore]{\Core}}}}
      \OPR[DEFb]{2}{the}
      \ARG{
        \NP{
          \WORD{rat}{
           \OP{N}{\OP{\Nuc\subN}{\OP{\Core\subN}{\OP[rat]{\np}
          }}}}
          \LINK{DEFb}{rat}{DEF}
}}}}}
\rPERIPH{4}{ADV}{\WORD{tomorrow}} }
\OPJoin{forgetcore}{eatcore}{\OP{\Core}{\OP[a]{\Clause}{%
  \OP[b]{\Clause}{\OP[c]{\Clause}{\OP[d]{\Clause}}}}}}
\LINK{might}{b}{MOD}   \LINK{not}{a}{NEG}
\LLINK{8em}{IF}{d}{IF} \LINK{IF}{c}{TNS}
\dolinks
\end{document}