plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.65k stars 878 forks source link

LaTeX labels not centered #1734

Open capmlbpkel opened 3 weeks ago

capmlbpkel commented 3 weeks ago

Describe the bug When using output format .tex instead of .png, labels which used to be centered, are not centered anymore.

To Reproduce Steps to reproduce the behavior:

PNG

  1. Create png output file via command line

LaTeX

  1. Create tex output file via command line
  2. Run pdflatex on tex file to obtain a pdf file

Expected behavior Labes in the pdf file have the same alignment as in the png file.

Screenshots

PNG image

PDF (look at the actor label) image

Source

@startuml
actor Actor
component Component
Actor -- Component
@enduml

Version 1.2024.4

Additional context Maybe a combination of left anchored nodes in tikz together with a deviating font / font size is the cause.