PlantUMLバージョン7997以降では、
Tikzパッケージを利用して ダイアグラムを
LaTeX形式で出力することができるようになりました。
ただし、これはベータ版の機能であり、正常に動作しない部分もあるかもしれません。誰にも利用されない機能に時間を割く余裕はないため、ユーザからの
バグ報告を待っています。
コマンドラインで
-tlatex
フラグを使用するか、
Antタスクで
format="latex"
を使用してください。
LaTeX出力を直接他のLaTeXドキュメントに埋め込みたい場合は、
-tlatex:nopreamble
を 使用してください。この場合PlantUMLは、プリアンブル無しでtikz画像のみを出力します。
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.
WARNING
This translation need to be updated. WARNING
@startuml
class Subscriber {
subscriberId
}
class AccumUsage {
subscriberId
}
class IpSession {
ipAddress
specificData
sapcOriginStateId
apnId
}
Subscriber "1" -[#blue]-> "1..*" IpSession
Subscriber "1" --> "0..1" AccumUsage
@enduml
オンラインで結果を確認 (TODO:
#362)
@startuml
Bob -> Alice: hello
return Ok
@enduml
オンラインで結果を確認 (TODO:
#362)
When utilizing the
hyperref
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, refer to the
PlantUML forum QA-3558.