%% %% 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 to B.n line from 1/3 \ to 1/3 line dashed from B.sw \ to 2/3 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}