Hello,
My adviser posed a question to me that I could not answer. He is writing a paper where he uses LaTex to draw the figure he needs to illustrate a concept. He wanted to be able to draw the figure, then if it turned out to be just a little too small, be able to scale it without recomputing all the lengths of lines and sizes of circles. Is there a way to perform multiplication in LaTex so that, for example, if I want to draw a horizontal line length 2.57 and then scale that line, I can call a command with the structure
line{0}{multiply{scaling_factor,2.57}}?
I know these are not actual latex commands; I just wanted to illustrate the structure of what I am looking for. Is any of this reasonable? Thanks for any help you can give.
Cheers,
CAD
Graphics, Figures & Tables ⇒ scaling figures
NEW: TikZ book now 40% off at Amazon.com for a short time.

scaling figures
You could try using the \scalebox command from the graphicx package.
There may exist other ways of doing it, depending on what package(s) is/are being to create the figure in question.
There may exist other ways of doing it, depending on what package(s) is/are being to create the figure in question.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
scaling figures
It's interesting to know which tool or package he uses to draw his figures or whether he does this by using the picture environment from vanilla LaTeX.classactdynamo wrote:[...] My adviser posed a question to me that I could not answer. He is writing a paper where he uses LaTex to draw the figure he needs to illustrate a concept. He wanted to be able to draw the figure, then if it turned out to be just a little too small, be able to scale it without recomputing all the lengths of lines and sizes of circles. [...]
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10