summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/1-4-4.pic
blob: 14d43006f331b54bee45978e4686b3fccac8b7fe (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
%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 1-4-4 on page 19.
%% 
%%  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{213.83385pt}
\StartShownPreambleCommands

\StopShownPreambleCommands
\begin{document}
.PS
define rect X box width 0.5i height 0.3i X
A: rect "Class" ; move down right from A.se
B: rect "Object"; move down left
C: rect "Person"; move down left
D: rect "Male"  ; move down right from C.c
E: rect "Caller"; move down left
G: rect "Lesley"; move down left from D.c
F: rect "John"
line from 2/3 <A.sw,A.se> to B.n
line from 1/3 <A.sw,A.se>    \
       to 1/3 <C.nw,C.ne>
line dashed from B.sw        \
            to 2/3 <C.nw,C.ne>
line dashed from C.sw to D.ne
line dashed from C.se to E.nw
line from D.sw to F.n
line from E.sw to G.n
.PE
\usebox\graph
\end{document}