[NTG-context] externalfigure and width/height scaling

nico nicolas.marsgui at libertysurf.fr
Sun Mar 12 23:57:26 CET 2006


On Sun, 12 Mar 2006 20:02:44 +0100, Hans Hagen <pragma at wxs.nl> wrote:

> nico wrote:
>> Looking at the \externalfigure capabilities, I haven't found any option
>> allowing to scale only one dimension (or scale both dimensions in an
>> anamorphous way).
>>
>> Am I right, and if so what is the best method to perform this?
>>
>> I thought about using the \getfiguredimensions macro to get the natural
>> dimensions, and then use something like
>> width=0.2\imgwidth,height=0.8\imgheight, but it is a pity that the
>> externalfigure interface does not allow this directly (something like
>> wscale and hscale options).
>>
> there is indeed no xscale and yscale (although
> \scale[sx=1.5,sy=2,3]{...} is available)
>
> % put this in cont-new.tex

Thanks very much for your quick patch, it works as expected. Do you plan  
to include it in a next release?

Regards,
BG


More information about the ntg-context mailing list