Scaling does not work for latex output?

0 votes
asked Nov 15, 2016 in Bug by peter.loborg (360 points)

Hi,

It seems the scaling feature does not work for latex:nopreamble output?

At least the command variant  "scale <factor>" could be supported by including a \scalebox{<factor>}{ ... } around the picture:

...
\scalebox{<factor>}{
\bigin{tikzpicture}
...
\end{tikzpicture}
}

I have understod that this solution may be problematic if any of the matrix commands in tikz are used (do you?) - but for sequence diagrams this seem to work fine... (http://tex.stackexchange.com/questions/4338/correctly-scaling-a-tikzpicture)

Br/Peter

 

1 Answer

0 votes
answered Nov 16, 2016 by plantuml (295,760 points)

In official release, we are outputting \begin{tikzpicture}[yscale=-1]

So we made a new beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

In this beta, we are taking scaling into account, so we are outputting something like:

\begin{tikzpicture}[xscale=1.5,yscale=-1.5]

We have not really tested this, so we are very interested by your feedback.

commented Nov 16, 2016 by peter.loborg (360 points)
Hi,

No, that scaling only scales the drawing parts, not the text. The positions of text elements is moved correctly, but the size of the text elements remains unchanged.

This would be the perfect way of scaling the graphics of a plot or pie chart without affecting the text (which retains its size compared to the surrounding text) - but in UML diagrams this feature is unwanted.

Sorry.
commented Nov 16, 2016 by plantuml (295,760 points)
Ok, it was just a guess.
Here is a new beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

It has not been tested, so please tell us if it's working!
Thanks
commented Nov 17, 2016 by peter.loborg (360 points)
Yes! It works as expected.
Thanks!
commented Mar 13, 2017 by anonymous
Did this feature land already in the newest version?
commented Mar 13, 2017 by plantuml (295,760 points)
Yes, it does
...