Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Scaling does not work for latex output?

0 votes

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

 

asked Nov 15, 2016 in bug by peter.loborg (560 points)

1 Answer

0 votes

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.

answered Nov 16, 2016 by plantuml (125,210 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.
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
Yes! It works as expected.
Thanks!
Did this feature land already in the newest version?
Yes, it does
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...