Debian Codegraph @

texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex

raw
1 \documentclass{scrartcl}
2
3 \usepackage{graphics}
4 % Enables inclusion of SVG graphics - 1:1 approach
5 % This is NOT the approach of https://ctan.org/pkg/svg-inkscape
6 % which allows text in SVG to be typeset using LaTeX.
7 % We just include the SVG as is.
8 \usepackage{epstopdf}
9 \epstopdfDeclareGraphicsRule{.svg}{pdf}{.pdf}{%
10 inkscape "#1" --export-filename="\OutputFile"
11 }
12
13 \usepackage[output=svg]{plantuml}
14
15 \begin{document}
16 \begin{plantuml}
17 @startuml
18 () "Interface 2" as I2
19 () "Interface 3" as I3
20
21 [component 1] as c1
22 [component 2] as c2
23 [component 3] as c3
24
25 c1 -- I2
26 c1 -- I3
27
28 I2 )-- c2
29 I3 )-- c3
30 @enduml
31 \end{plantuml}
32 \end{document}