Is it possible to use the width of the paper as a variable in order to set the width of an imported graphics? For instance when I want the picture size to be the width of the paper, minus 3 centimeters, or half of the paper's width etc.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
The answer is simply to use
you could use Refer to http://en.wikibooks.org/wiki/LaTeX/Page_Layout#Page_dimensions for useful page dimensions commands. |
|||
|
|
calcpackage, you can do all kinds of length calculations. I think the following is a duplicate: Scale image to page width? Does it help? Using thegraphicxpackage (andcalc), you can use\includegraphics[width=\textwidth-3cm]{image}or\includegraphics[width=.5\textwidth]{image}. – Werner Feb 2 '12 at 19:54