Am 09.02.2012 um 19:46 schrieb Marco:
On 2012-02-09 Hans Hagen
wrote: \def\pack_framed_start_orientation {\ifcase\p_framed_orientation \let\pack_framed_stop_orientation\relax \else \scratchcounter\p_framed_orientation % weird .. why \divide\scratchcounter\plustwo \ifodd\scratchcounter
\swapmacros\framedwidth\framedheight \swapmacros\localwidth\localheight \swapdimens\d_framed_height\d_framed_width
these three can go (forgotten to delete them when splitting)
Brilliant, that did the trick. One thing more: Is is by design that only multiples of 90° work? 89 degrees results in totally wrong spacing. Example (your fix is already applied):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \startbuffer [te] \starttext \framed[width=5cm,height=2cm,rulethickness=3pt,align=right]{\tfd Foo} \stoptext \stopbuffer
\starttext \startplacefigure [title=90°] \externalfigure [te] [orientation=90, frame=on] \stopplacefigure
\startplacefigure [title=89°] \externalfigure [te] [orientation=89, frame=on] \stopplacefigure \stoptext
Can be related to the buffer because the direct way looks good. \starttext \startplacefigure [title=90°] \framed[orientation=90]{\framed[width=5cm,height=2cm,rulethickness=3pt,align=right]{\tfd Foo}} \stopplacefigure \startplacefigure [title=89°] \framed[orientation=89]{\framed[width=5cm,height=2cm,rulethickness=3pt,align=right]{\tfd Foo}} \stopplacefigure \stoptext Wolfgang