summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/31-02-16.ltx
blob: aa359c99af536de5f20187bf1e7fdb7f4a8de804 (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
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel 31-02-16 auf Seite 697.
%% 
%%  Copyright (C) 2016 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[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{uml}
%StopShownPreambleCommands
\begin{document}
\umlPackage[box=,subof=subof,stereotype=stereo,importedFrom=importedFrom,
    comment=Kommentar]{Package}{%
  \umlDiagram[sizeX=7cm,sizeY=4cm,box=,ref=pack]{%
    \umlClass[pos=\umlBottomLeft{pack},posDelta={2ex,2ex},refpoint=bl]{Buch}{}{}
    \umlClass[pos=\umlTopLeft{pack},posDelta={2ex,-2ex},refpoint=tl]{Haus}{}{}
    \umlClass[pos=\umlTopRight{pack},posDelta={-2ex,-2ex},refpoint=tr]{Person}{}{}
    \umlClass[pos=\umlBottomRight{pack},posDelta={-2ex,2ex},refpoint=br]{Autor}{}{}
    \umlAssociation{Buch}{Haus}  \umlLabelB[refpoint=l]{BuchHaus}{ist in}
    \umlAssociation{Buch}{Person}\umlLabelA{BuchPerson}{liest}
    \umlSubclass{Autor}{Person}  \umlAssociation{Buch}{Autor}
    \umlLabelA[height=.5ex,refpoint=lb]{BuchAutor}{geschrieben}
    \umlAssociation{Haus}{Person}\umlLabelA{HausPerson}{lebt in}
  }% Ende von \umlDiagram
}% Ende von \umlPackage
\end{document}