From: Marco <netuse@lavabit.com>
To: ntg-context@ntg.nl
Subject: Centring rotated float
Date: Mon, 23 Jan 2012 17:51:00 +0100 [thread overview]
Message-ID: <20120123175100.76346d71@homerow> (raw)
[-- 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
___________________________________________________________________________________
reply other threads:[~2012-01-23 16:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120123175100.76346d71@homerow \
--to=netuse@lavabit.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).