From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77955 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to know in which page I'm? Date: Tue, 21 Aug 2012 08:31:07 +0200 Message-ID: <9C54F541-5A2D-4C98-9AB8-750BC1544E85@gmail.com> References: <5032A0FE.20109@telefonica.net> <5AA83173-6C19-4706-9371-20E3E9C7E30A@gmail.com> <20120820195601.39eb81f5@sda3.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345530681 9057 80.91.229.3 (21 Aug 2012 06:31:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 06:31:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 21 08:31:20 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 1T3hzj-0007LH-Th for gctc-ntg-context-518@m.gmane.org; Tue, 21 Aug 2012 08:31:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC0E7101EF; Tue, 21 Aug 2012 08:31: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 (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cW485tbQkvkE; Tue, 21 Aug 2012 08:31:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C3F9A101E0; Tue, 21 Aug 2012 08:31:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64EDD101E0 for ; Tue, 21 Aug 2012 08:31: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 (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7PoYW1YS4S3v for ; Tue, 21 Aug 2012 08:31:10 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id E05F7101DD for ; Tue, 21 Aug 2012 08:31:10 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7L6V9CP014311 for ; Tue, 21 Aug 2012 08:31:10 +0200 Original-Received: by bkcjc3 with SMTP id jc3so2604353bkc.14 for ; Mon, 20 Aug 2012 23:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=4HzHi9Ou0OY8ZgGofTZajYR6BtlnsZ9ai0ssVJPVVdk=; b=y78fcR+bIE1tuMLzG/E2BAdouCUfTgp2+g4yHNOSZKTswY7NtOLxXIkXMZBs2ltoDQ +oGPDA8qoh04iJhNH4JkhFXp6s+oIOPUwJQGkUTeHNHrX/MwTTXqHPsYxhGBw6J7W6VO 8yj15NRwgxBPQWIwTjypxyiCWOaf5ucYOyJy+pa3+yBIWmvFdNwOlzqLJovLHXopHNdk 3N/vhVd8jmWjaTdq+9GNLqX5hOtRym7U4ItscnQ0BctHk3tQlZT6fXjRcjixE0Dlf6Im b+iWkM4WY3xokktJ104JEA2aJPogXstcHfgjt/K0ICF5PryAhwUL5nnd2KjNja91+kYm szMw== Original-Received: by 10.205.123.10 with SMTP id gi10mr5107519bkc.9.1345530669589; Mon, 20 Aug 2012 23:31:09 -0700 (PDT) Original-Received: from [192.168.2.36] (p54BAF69C.dip.t-dialin.net. [84.186.246.156]) by mx.google.com with ESMTPS id y20sm192794bkv.11.2012.08.20.23.31.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 23:31:08 -0700 (PDT) In-Reply-To: <20120820195601.39eb81f5@sda3.wexfordpress.net> X-Mailer: Apple Mail (2.1485) 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: 03HNivaBw - 934a9cdccf80 - 20120821 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77955 Archived-At: Am 21.08.2012 um 01:56 schrieb john Culleton : > On Mon, 20 Aug 2012 23:09:11 +0200 > Wolfgang Schuster wrote: > = >> = >> Am 20.08.2012 um 22:41 schrieb Xan : >> = >>> Hi, >>> = >>> I want to print a message depending if the page is even or odd. In >>> pseudocode: >>> = >>> \if \inpage.\iseven { >>> This page is even >>> } >>> \else { >>> This page is odd >>> } >>> = >>> How can I do that in ConTeXt? >> = >> http://www.ntg.nl/pipermail/ntg-context/2012/067632.html >> = >> Wolfgang > = > = > Will the plain text way still work? > \ifodd\pageno foo \else bar \fi This works only correct when used used in the page header or footer texts w= hich are added after the page is finished and then you can use context=92s = \doifoddpageelse command. When used in the running text the test can fail w= hen you have a text which ends at the top of the page which was processed b= y tex when it was on the previous page and the output was moved to the next= page because there wasn=92t enough space. 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 ___________________________________________________________________________= ________