• No results found

plantuml Version 0.3.1 A LuaLaTeX package for PlantUML in LaTeX

N/A
N/A
Protected

Academic year: 2021

Share "plantuml Version 0.3.1 A LuaLaTeX package for PlantUML in LaTeX"

Copied!
3
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

plantuml

Version 0.3.1

A LuaLaTeX package for PlantUML in LaTeX

PlantUML is a program which transforms text into UML diagrams. This package allows for embedding PlantUML diagrams using the PlantUML source. Currently, this project runs with lualatex only. Check issue #1 for the current state of affairs for support pdflatex.

Preconditions

1. Environment variable PLANTUML_JAR set to the location of plantuml.jar. You get it from https://sourceforge.net/projects/plantuml/files/plantuml .jar/download.

2. Enviroment variable GRAPHVIZ_DOT set to the location of dot.exe. Ex-ample: C:\Program Files (x86)\Graphviz2.38\bin\dot.exe. You can install graphviz using choco install graphviz.

3. lualatex available with command line parameter -shell-escape included. 4. In case you want to have the images as PDFs (and not using TikZ or PNG), ensure that inkscape.exe and pdfcrop are in your path. You can get inkscape using choco install inkscape. pdfcrop should be part of your latex distribution.

Examples

Minimal Example LaTeX source: \documentclass{scrartcl} \usepackage{plantuml} \begin{document} \begin{plantuml} @startuml

Alice -> Bob: test @enduml

\end{plantuml} \end{document}

Compilation: lualatex -shell-escape example-minimal Result:

Example Class Relations Rendered Using SVG LaTeX source:

(2)

Figure 1: Minimal example \documentclass{scrartcl}

\usepackage{graphics} \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}

Compilation: lualatex -shell-escape example-class-relations Result:

Installation

Your latex distribution should take care.

For manual installation, copy plantuml.* to your local texmf folder in the subdirectoy tex/latex/plantuml. See the discussion at tex.sx for the concrete location of the folder on your system.

(3)

Figure 2: Class relations rendered using SVG

Development

The release is built using GitHub Actions (workflow file) using release.sh. Release prepration:

1. Adapt date and version number in plantuml.sty. 2. Adapt CHANGELOG.md.

3. Set a git tag and push.

Alternative Solutions

TikZ-UML is a very powerful package based on TikZ. More alternative solutions are collected at the CTAN topic UML.

License

SPDX-License-Identifier: LPPL-1.3c+

Referenties

GERELATEERDE DOCUMENTEN

(default: false) fancyvrb provides an option firstnumber that allows the starting line number of an environment to be specified.. For convenience, there is an option

Die Anlagen- und Verteilvermerke können mit dem Befehl \enclright rechts auf Grad 50 anstelle nach der Grußformel ausgegeben werden.. Die Befehle \encl und \cc sind dazu vor

7 Breaking the optimization problem across multiple pages 9 8 Breaking the objective across several lines 11 9 Default comma at the end of the constraint 11 10 Long

The pgfopts package allows keys defined with pgfkeys to be used as class or package options, in the same way that kvoptions extends keyval.. Users of pgfopts should be familiar with

The device of beginning all principia commands with ‘\pm’ is owed to the begriff package, a style that was mimicked in both the frege package and the Grundgesetze package.. In

(Note that this code wouldn’t work if \calc@B were a muglue register. This is the real reason why the calc package doesn’t support muglue expressions. To support muglue expressions

Praesent pretium, magna in eleifend egestas, pede pede pretium lorem, quis consectetuer tortor sapien facilisis magna.. Mauris quis magna varius nulla

The following elements are colored as well: title of the document (title page), number of the chapter on the chapter page, name of the chapter in the footer, section and