From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69149 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Automatic landscape figure rotation Date: Tue, 14 Jun 2011 12:54:06 +0200 Message-ID: References: <20110614092944.GW20248@rae.vm.bytemark.co.uk> <3B449566-B14E-4966-B9E0-390EA5750D65@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308048868 5426 80.91.229.12 (14 Jun 2011 10:54:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2011 10:54:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 14 12:54:21 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWRGF-0006E2-4H for gctc-ntg-context-518@m.gmane.org; Tue, 14 Jun 2011 12:54:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A57BCADB1; Tue, 14 Jun 2011 12:54:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lqIZRK4TQ6cv; Tue, 14 Jun 2011 12:54:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0632ACADA5; Tue, 14 Jun 2011 12:54:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EA7E6CADA5 for ; Tue, 14 Jun 2011 12:54:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jlP6cB7atr2Y for ; Tue, 14 Jun 2011 12:54:11 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 188E0CAD33 for ; Tue, 14 Jun 2011 12:54:11 +0200 (CEST) Original-Received: from mail-pw0-f41.google.com (mail-pw0-f41.google.com [209.85.160.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5EAs7mU028923 for ; Tue, 14 Jun 2011 12:54:10 +0200 Original-Received: by pwi12 with SMTP id 12so3202223pwi.14 for ; Tue, 14 Jun 2011 03:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=sgdal/xpl76oZsDkKPKuEuh2Fj9W+0HaXVpQcGMB0wA=; b=LJhgefZOQSu01JtBkzGvWOm2QRAJUZhngaIzuTblrvFbasb0GgG1ZV9ozPf7feFkqJ yzYGmXWweQRyoHaTJFPwyb19KaQHKiiOy63QWw7mk+Q/YyDyBw89BGlzysfoG/cJlSCE 2HVs4NMX6t0lkyzBSK3Ksp+WNkEDaCw/wDzmg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Dqqt2eFx0dzdKummFe+pyedyQ7zmE4cwnX10oT9iJUSmWZyrHCDCULculmBgGqpIsP hlQZxko4WZEZnvwyIhL+eerje/D4KhHkBlUzOIREOl0dnk9sBfb8GwcrPTkAI8PAXZk8 rt0z+qMM19vH0t0WIDfxKL3jlyA1F/l0eOhBg= Original-Received: by 10.68.30.66 with SMTP id q2mr2839095pbh.390.1308048846814; Tue, 14 Jun 2011 03:54:06 -0700 (PDT) Original-Received: by 10.68.56.167 with HTTP; Tue, 14 Jun 2011 03:54:06 -0700 (PDT) In-Reply-To: <3B449566-B14E-4966-B9E0-390EA5750D65@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08ETKS7s8 - 8507f5ef2606 - 20110614 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:69149 Archived-At: On Tue, Jun 14, 2011 at 12:41 PM, Wolfgang Schuster wrote: > > Am 14.06.2011 um 12:15 schrieb luigi scarso: > >> \ifodd\realpageno\relax >> \rotate[rotation=90]{\externalfigure[cow]} >> \else >> \rotate[rotation=270]{\externalfigure[cow]} >> \fi > > \rotate[rotation=\doifoddpageelse{90}{270}]{\externalfigure[cow]} It depends on the dimensions of the picture \starttext \dorecurse{100}{ \input knuth \ifodd\realpageno\relax \hbox to\textwidth{\rotate[rotation=90]{\externalfigure[cow]}\hfill} \else \hbox to\textwidth{\hfill\rotate[rotation=270]{\externalfigure[cow]}} \fi } \stoptext -- 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 ___________________________________________________________________________________