summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex')
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex32
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex b/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
new file mode 100644
index 00000000000..785d2e7a561
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
@@ -0,0 +1,32 @@
+\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
+() "Interface 2" as I2
+() "Interface 3" as I3
+
+[component 1] as c1
+[component 2] as c2
+[component 3] as c3
+
+c1 -- I2
+c1 -- I3
+
+I2 )-- c2
+I3 )-- c3
+@enduml
+\end{plantuml}
+\end{document}