summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations--svg.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/plantuml/example-class-relations--svg.tex')
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/example-class-relations--svg.tex26
1 files changed, 26 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations--svg.tex b/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations--svg.tex
new file mode 100644
index 00000000000..5d7d9b8ed81
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/plantuml/example-class-relations--svg.tex
@@ -0,0 +1,26 @@
+\documentclass{scrartcl}
+
+\usepackage{graphics}
+
+% Enables inclusion of SVG graphics - 1:1 approach
+% This is NOT the approach of https://ctan.org/pkg/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 --file=#1 --export-pdf=\OutputFile
+}
+
+\usepackage[output=svg]{plantuml}
+
+\begin{document}
+\begin{plantuml}
+@startuml
+class Car
+
+Driver - Car : drives >
+Car *- Wheel : have 4 >
+Car -- Person : < owns
+@enduml
+\end{plantuml}
+\end{document}