-tlatex
flag when operating through the command line.format="latex"
when configuring the Ant task.-tlatex:nopreamble
. PlantUML will output only the tikz-picture component, excluding the document preamble, facilitating a seamless integration into your existing LaTeX files.
@startuml
class Subscriber {
subscriberId
}
class AccumUsage {
subscriberId
}
class IpSession {
ipAddress
specificData
sapcOriginStateId
apnId
}
Subscriber "1" -[#blue]-> "1..*" IpSession
Subscriber "1" --> "0..1" AccumUsage
@enduml
@startuml
Bob -> Alice: hello
return Ok
@enduml
(TODO: #362 provide some examples in Overleaf)
hyperref
Packagehyperref
package in your LaTeX documents, you have the ability to craft links that lead to defined anchors within the same LaTeX/PDF document. In the PlantUML example below, notice that the second and last links point to a specific resource within the LaTeX 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
For a detailed discussion and related queries, see the second Q&A thread below.