* Centring rotated float
@ 2012-01-23 16:51 Marco
0 siblings, 0 replies; only message in thread
From: Marco @ 2012-01-23 16:51 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]
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:
\starttext
\startbuffer [fig]
\useMPlibrary [dum]
\starttext
\startTEXpage
\externalfigure [placeholder] [width=10cm, height=4cm]
\stopTEXpage
\stoptext
\stopbuffer
\savebuffer [fig] [fig]
\executesystemcommand{context --purge \jobname-fig.tmp}
\startplacefigure [title={Centred, but not rotated}]
\externalfigure [\jobname-fig]
\stopplacefigure
\page
\startplacefigure [title=Not centred and wrong frame location]
\externalfigure [\jobname-fig] [orientation=90, frame=on]
\stopplacefigure
\page
\startplacefigure [title=Why is this one placed on the left?]
\externalfigure [\jobname-fig] [orientation=89, frame=on]
\stopplacefigure
\page
\startplacefigure [title=Still not centred and wrong frame location]
\midaligned{\externalfigure [\jobname-fig] [orientation=90, frame=on]}
\stopplacefigure
\page
\startplacefigure [title=This one works]
\rotate[rotation=90]{\externalfigure [\jobname-fig]}
\stopplacefigure
\stoptext
Is this a bug?
Used version:
context 2011.11.29 23:11
Doesn't compile at all using:
context 2012.01.16 18:33
Marco
[-- Attachment #2: rotate.pdf --]
[-- Type: application/pdf, Size: 29190 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-23 16:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-23 16:51 Centring rotated float Marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).