New! Render PlantUML diagrams directly inside GitHub
with our official browser extension —
No server. No tokens. No tracking. Zero permissions but clipboard. —
Try it out and let us know what you think!
LaTeX
-tlatex in der Kommandozeile verwenden, oder format="latex" in der Ant-Aufgabe
If you want to include the LaTeX output directly into another LaTeX document you can use -tlatex:nopreamble. This way PlantUML will only export the tikz-picture itself, without the document preamble.
#### Embedding in LaTeX Documents
If you're aiming to incorporate the LaTeX output directly within another LaTeX document, employ the `-tlatex:nopreamble` flag. By doing so, PlantUML will output only the tikz-picture component, excluding the document preamble, facilitating a seamless integration into your existing LaTeX files.
If you want to incorporate the LaTeX output directly within another LaTeX document, use option `-tlatex:nopreamble`. PlantUML will output only the tikz-picture component, excluding the document preamble, facilitating a seamless integration into your existing LaTeX files.
WARNING
This translation need to be updated. WARNING
Class diagram example
@startuml
class Subscriber {
subscriberId
}
class AccumUsage {
subscriberId
}
class IpSession {
ipAddress
specificData
sapcOriginStateId
apnId
}
Subscriber "1" -[#blue]-> "1..*" IpSession
Subscriber "1" --> "0..1" AccumUsage
@enduml
Sequence diagram example
@startuml
Bob -> Alice: hello
return Ok
@enduml
(TODO: #362 provide some examples in Overleaf)
Erstellen von Links in LaTeX mit dem Paket hyperref
Wenn Sie das Paket hyperref in Ihren LaTeX-Dokumenten verwenden, haben Sie die Möglichkeit, Links zu erstellen, die zu bestimmten Ankern innerhalb desselben LaTeX/PDF-Dokuments führen. Im PlantUML-Beispiel unten sehen Sie, dass der zweite und letzte Link auf eine bestimmte Ressource innerhalb des LaTeX-Dokuments verweist:
@startuml
participant Bob [[http://www.yahoo.com]]
participant Alice [[latex://resource-interaction]]
Bob -> Alice : [[http://www.google.com]] hello
Bob -> Alice : [[latex://resource-interaction]] interact
@enduml
Eine ausführliche Diskussion und verwandte Fragen finden Sie im zweiten Q&A-Thread unten.
Links
- Q&A 1798: Latex TikZ support
- Q&A 3558: export to TikZ loses links
- Q&A 10761: Latex export limitations (font size, hyperlinks, PNG in header, scaling image to page)
- Q&A 10788: How to set Latex Font Size
- Latex PlantUML package (Oliver Kopp 2018-2023): home, Github, CTAN
- Stackoverflow 71409448 PlantUML in Latex
- Extra idea: use Markdown with Pandoc (LaTeX runs under the hood to generate PDF files): PlantUML diagrams work fine
- TeX Exchange 428174: Can I use the plantUML language in LaTeX? Yes, and prerequisites to install are listed