diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/latex/plantuml/example-class-relations--latex.tex |
Initial commit
Diffstat (limited to 'macros/luatex/latex/plantuml/example-class-relations--latex.tex')
-rw-r--r-- | macros/luatex/latex/plantuml/example-class-relations--latex.tex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/luatex/latex/plantuml/example-class-relations--latex.tex b/macros/luatex/latex/plantuml/example-class-relations--latex.tex new file mode 100644 index 0000000000..190b2f5668 --- /dev/null +++ b/macros/luatex/latex/plantuml/example-class-relations--latex.tex @@ -0,0 +1,19 @@ +\documentclass{scrartcl} + +\usepackage{graphics} + +\usepackage[output=latex]{plantuml} +% Have sans serif font at each tikz diagram. Source: https://tex.stackexchange.com/a/4888/9075 +\tikzstyle{every picture}+=[font=\sffamily] + +\begin{document} +\begin{plantuml} +@startuml +class Car + +Driver - Car : drives > +Car *- Wheel : have 4 > +Car -- Person : < owns +@enduml +\end{plantuml} +\end{document} |