[NTG-context] Centring rotated float

Marco netuse at lavabit.com
Mon Jan 23 17:51:00 CET 2012

I  discovered  some problems  centring  a  float which  is
rotated using externalfigure.  Without rotation everything
is fine. However, when the orientation option is provided,
the  frame  doesn't match  the  figure  any more  and  the
centring gets  lost. Using the dedicated  rotation command
works. Example:


\startbuffer [fig]
	\useMPlibrary [dum]
			\externalfigure [placeholder] [width=10cm, height=4cm]
\savebuffer [fig] [fig]
\executesystemcommand{context --purge \jobname-fig.tmp}

\startplacefigure [title={Centred, but not rotated}]
	\externalfigure [\jobname-fig]


\startplacefigure [title=Not centred and wrong frame location]
	\externalfigure [\jobname-fig] [orientation=90, frame=on]


\startplacefigure [title=Why is this one placed on the left?]
	\externalfigure [\jobname-fig] [orientation=89, frame=on]


\startplacefigure [title=Still not centred and wrong frame location]
	\midaligned{\externalfigure [\jobname-fig] [orientation=90, frame=on]}


\startplacefigure [title=This one works]
	\rotate[rotation=90]{\externalfigure [\jobname-fig]}


Is this a bug?

Used version:
context 2011.11.29 23:11

Doesn't compile at all using:
context 2012.01.16 18:33

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rotate.pdf
Type: application/pdf
Size: 29190 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120123/31c57060/attachment-0001.pdf>

More information about the ntg-context mailing list