From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Automatic landscape figure rotation
Date: Tue, 14 Jun 2011 12:15:04 +0200 [thread overview]
Message-ID: <BANLkTi=jopbtZbvpyqJeEXj3dDod9neKsQ@mail.gmail.com> (raw)
In-Reply-To: <20110614092944.GW20248@rae.vm.bytemark.co.uk>
On Tue, Jun 14, 2011 at 11:29 AM, Pontus Lurcock <pont@talvi.net> wrote:
> Dear ConTeXters,
>
> I have a full-page, landscape figure in my double-sided document which
> I rotate 90° to fit the page. In all the books I've seen, such figures
> are rotated ‘outward’ -- i.e. with the top towards the binding, so 90°
> clockwise on verso pages and 90° anticlockwise on recto. Is there a
> simple way to do this automatically in ConTeXt? At the moment I just
> check where the figure ends up, then change it manually.
>
> (Apologies if there is a documented answer -- I've searched the wiki
> and docs, but it's the kind of question which is hard to reduce into
> keywords.)
Here is an idea
\starttext
\dorecurse{100}{
\input knuth
\ifodd\realpageno\relax
\rotate[rotation=90]{\externalfigure[cow]}
\else
\rotate[rotation=270]{\externalfigure[cow]}
\fi
}
\stoptext
PS
I've used an old minimals:
\rotate seems be broken in latest minimals
--
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-06-14 10:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 9:29 Pontus Lurcock
2011-06-14 9:40 ` luigi scarso
2011-06-14 10:15 ` luigi scarso [this message]
2011-06-14 10:41 ` Wolfgang Schuster
2011-06-14 10:54 ` luigi scarso
2011-06-14 11:54 ` Wolfgang Schuster
2011-06-14 13:39 ` Hans Hagen
2011-06-14 13:51 ` Taco Hoekwater
2011-06-14 14:05 ` Hans Hagen
2011-06-14 14:26 ` Ulrike Fischer
2011-06-14 15:16 ` Taco Hoekwater
2011-06-14 22:54 ` Pontus Lurcock
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='BANLkTi=jopbtZbvpyqJeEXj3dDod9neKsQ@mail.gmail.com' \
--to=luigi.scarso@gmail.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).