LaTeX

Ab Version 7997 erlaubt PlantUML, Diagramme in LaTeX zu generieren, dank des Tikz-Pakets.

Beachten Sie, dass dies immer noch eine Beta-Version ist, und viele Dinge wahrscheinlich nicht funktionieren werden. Da wir keine Zeit auf Funktionen verwenden wollen, die nicht genutzt werden, warten wir darauf, dass Benutzer hier Fehler melden.

Sie müssen nur das Flag -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.

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

See result online (TODO: #362)

Sequence diagram example

@startuml
Bob -> Alice: hello
return Ok
@enduml

See result online (TODO: #362)

Latex Links

If you use the hyperref package then you can make links to defined anchors within your Latex/PDF document. For example, the second and last links below are to the Latx document:

@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

[Ref. QA-3558]


Privacy Policy      Advertise