【问题标题】:How do I left align a line in the title of PlantUML如何在 PlantUML 的标题中左对齐一行
【发布时间】:2022-08-21 23:04:54
【问题描述】:

如何在 PlantUML 的标题中左对齐一行?

@startuml
title
SomeTitle . SomeTitle . SomeTitle . SomeTitle .
<font size=10> Want this left aligned</font>

endtitle

Alice -> Bob: Hello
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIh9BCb9vGhEpqqD0R4Kz1I8O7FPfENdbIWKPrQbsXeQs2c49m9v9HcPnGevgMab2eavcUbvgIas-Y1LTbnSgNaf46ku77CoarCLTEqKdFAJh1GyKdDoyhaSWD90bm00

我努力了

<font align:left>X</font>
<font text-align:left>Y</font>

我还尝试将left 添加到title 标签。

    标签: plantuml


    【解决方案1】:

    PlantUML 将 GraphViz 作为渲染引擎。它支持\l\r 左右对齐:

    @startuml
    title SomeTitle . SomeTitle . SomeTitle . SomeTitle .\n<font size=10>Want this left aligned</font>\l
    
    Alice -> Bob: Hello
    @enduml
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-18
      • 2015-01-16
      • 1970-01-01
      • 2018-07-14
      • 1970-01-01
      • 2017-01-01
      • 2018-01-22
      相关资源
      最近更新 更多