[pdftex] Autoscaling included images
Jens-Uwe Morawski
morawski at gmx.net
Thu Dec 13 18:26:31 CET 2001
On Thu, 13 Dec 2001 14:00:40 +0100 (MET)
Heiko Oberdiek <oberdiek at ruf.uni-freiburg.de> wrote:
> On Thu, 13 Dec 2001, David Carlisle wrote:
>
> > \def\maxwidth{
> > \ifdim\KV at Gin@natwidth>\textwidth\textwidth\else\KV at Gin@natwidth\fi}
> >
> > \includegraphics{width=\maxwidth}{figure}
>
> Another possibility is the use of \resizebox, here
> \width, \height are defined:
>
> \resizebox{%
> \ifdim\width>\linewidth
> \linewidth
> \else
> \width
> \fi
> }{!}{\includegraphics{myimage}}
>
Restricting the problem to only the width of an image is easy.
Have you any solution that regards width _and_ height?
Maybe my suggestion is too long, since it uses latex and not tex,
but it attends both width and height, and i think this was the question.
Best, Jens
More information about the pdftex
mailing list