Am 20.08.2014 um 18:00 schrieb Gerben Wierda <[email protected]>:
>>>> \rotate[rotation=90]{\externalfigure[cow][width=4cm]}
>>>
>>> This works better, but the figure's size is not changed. Apparently, the
>>> size is calculated before it is rotated. And these claculations stick in
>>> different ways.
>>
>> What do you expect, the width setting is for the unrotated figure.
>
> Actually, I was not using width at all, just \externalfigure[foo]
>
> I expected that \externalfigure[foo][orientation=90] would first rotate the
> figure and then calculate its size. But it did not. It put in a figure of
> 4x8, while telling TeX the box was 8x4.
It’s a \framed bug in MkII but you can use \rotate to avoid it.
> I do expect that \rotate[rotation=90]{\externalfigure[foo][width=4cm]} gets
> me a height of 4cm.
As you can see the figure has a height of 4cm.
\setupexternalfigures[location=default]
\starttext
\dontleavehmode\blackrule[height=4cm]
\rotate[rotation=90]{\externalfigure[cow][width=4cm]}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________