summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/plantuml/example-class-relations.tex')
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/example-class-relations.tex29
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations.tex b/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations.tex
new file mode 100644
index 00000000000..e5c131104db
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations.tex
@@ -0,0 +1,29 @@
+\documentclass{scrartcl}
+
+\usepackage{graphics}
+
+% Enables inclusion of SVG graphics - 1:1 approach
+% This is NOT the approach of http://www.ctan.org/tex-archive/info/svg-inkscape,
+% which allows text in SVG to be typeset using LaTeX
+% We just include the SVG as is
+\usepackage{epstopdf}
+\epstopdfDeclareGraphicsRule{.svg}{pdf}{.pdf}{%
+ inkscape -z -D --file=#1 --export-pdf=\jobname-plantuml-svg.pdf &&
+ %due to https://bugs.launchpad.net/inkscape/+bug/1754167 we need to use pdfcrop
+ pdfcrop \jobname-plantuml-svg.pdf \OutputFile
+}
+
+\usepackage[output=svg]{plantuml}
+%\usepackage[output=latex]{plantuml}
+
+\begin{document}
+\begin{plantuml}
+@startuml
+class Car
+
+Driver - Car : drives >
+Car *- Wheel : have 4 >
+Car -- Person : < owns
+@enduml
+\end{plantuml}
+\end{document}