From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76737 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: even odd page condition Date: Wed, 6 Jun 2012 17:29:05 +0200 Message-ID: <800ADB66-F47D-4A4E-9A25-371FED826DC1@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338996561 30954 80.91.229.3 (6 Jun 2012 15:29:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2012 15:29:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 06 17:29:18 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ScIAg-0006Pb-4K for gctc-ntg-context-518@m.gmane.org; Wed, 06 Jun 2012 17:29:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C729101DD; Wed, 6 Jun 2012 17:29:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qIwj4x0rE8pv; Wed, 6 Jun 2012 17:29:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9C22101DF; Wed, 6 Jun 2012 17:29:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C389101DF for ; Wed, 6 Jun 2012 17:29:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8jsNPEWtpERB for ; Wed, 6 Jun 2012 17:29:09 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id E492F101DD for ; Wed, 6 Jun 2012 17:29:09 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q56FT89D017452 for ; Wed, 6 Jun 2012 17:29:09 +0200 Original-Received: by bkcjm19 with SMTP id jm19so7873214bkc.14 for ; Wed, 06 Jun 2012 08:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=cmOctPTh9mZyjtpdxwJvEzIUj4JrV0rikIhJ7yZpQkg=; b=w/axVyMR96jmzB8c5izDScraf4u3dARjiyVb0A6CT1nLvLnrAbzExl51nhzS8pGxcb kWssqsEuR+KBhJmws4BMp3C33TPzZxXLNJNrvklrbtSByO8eHy4xTAu91zm1K1jsr6WS A+Uo/pqKSluId0AQSR3udtM4lwyM2gE4R7fM2cDvcaMaOH0SPGAjiUbGtzVtHpGDe/qs 3uCjcBzLw+qnqCGZ4/wivdBHcSMXyPle1e7APslzQngxJuyLfw/eZbUpxOkFcGeeXPcM bntxC7P5oS+a/ugLdKzVUsgwg7L//ND9u71Ygd8bw2xC8gn1uI+F1EOnIES9Hen8gdMm dIXg== Original-Received: by 10.205.127.140 with SMTP id ha12mr12648816bkc.105.1338996548752; Wed, 06 Jun 2012 08:29:08 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFBC24.dip.t-dialin.net. [87.175.188.36]) by mx.google.com with ESMTPS id fu14sm249409bkc.13.2012.06.06.08.29.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jun 2012 08:29:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0aHj3t9aF - 3cce825ae6dd - 20120606 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76737 Archived-At: Am 06.06.2012 um 17:13 schrieb Pavel Dohnal: > Hello, > is it possible to find if you=92re on an odd or an even page in context? > I want to do something like this: > = > \def\makemytext#1{ > %if page is even > \rightaligned{#1} > %else > \leftaligned{#1} > } \defineframed[noframed][frame=3Doff,width=3Dbroad,align=3Douter] \setuppagenumbering[alternative=3Ddoublesided] \starttext \noframed{Left or right?} \page \noframed{Left or right?} \stoptext or \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} \starttext \AlignOuter{Left or right?} \page \AlignOuter{Left or right?} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________