Graphics, Figures & Tablesscaling figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
classactdynamo
Posts: 1
Joined: Tue Feb 09, 2010 8:29 pm

scaling figures

Post by classactdynamo »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

scaling figures

Post by frabjous »

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.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

scaling figures

Post by localghost »

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. [...]
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.


Best regards and welcome to the board
Thorsten
Post Reply