[pdftex] Autoscaling included images

Martin Schroeder martin at oneiros.de
Thu Dec 13 13:14:20 CET 2001


On 2001-12-13 11:56:24 +0000, Robin Fairbairns wrote:
> what's wrong with
> 
>   \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]
>                   {file}
> 
> does that not do what's desired (i've never tried precisely that
> formula)

It almost always scales the image (either up or down), so that
the image has
width=0.8\textwidth,height=0.8\textheight,keepaspectratio 

It would be nice if one could say
maxwidth=\textwidth,maxheight=\textheight,minwidth=3cm,minheight=3cm,keepaspectratio
and then the image would either be scaled up or down or not at
all depending on the image size. 

Best regards
        Martin
-- 
                http://www.tm.oneiros.de/calendar/2002/




More information about the pdftex mailing list