From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13387 invoked from network); 27 May 2023 04:04:20 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 27 May 2023 04:04:20 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 758381C38B4; Sat, 27 May 2023 06:03:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15LIZb5gSebI; Sat, 27 May 2023 06:03:57 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A4261C3218; Sat, 27 May 2023 06:03:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23B0F1C3218 for ; Sat, 27 May 2023 06:03:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qcUeBO-PloGo for ; Sat, 27 May 2023 06:03:54 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=173.228.157.52; helo=pb-smtp20.pobox.com; envelope-from=berend@pobox.com; receiver= X-Greylist: delayed 208 seconds by postgrey-1.36 at zapf.ntg.nl; Sat, 27 May 2023 06:03:53 CEST Received: from pb-smtp20.pobox.com (pb-smtp20.pobox.com [173.228.157.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E9D501C3166 for ; Sat, 27 May 2023 06:03:53 +0200 (CEST) Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 525C51C687 for ; Sat, 27 May 2023 00:00:23 -0400 (EDT) (envelope-from berend@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date :message-id:from:to:subject:mime-version:content-type; s=sasl; bh=+Q0kRw+HqFzItLd9E7uGCHi6VvE3MOiT8f7fvgUbnFc=; b=AJThJW1n2GP2 A89uIPTF8Q61u7WpmCPtERUvDO6S+o/InBy+hl07IitPZND7VUK3r3rm7sEJLCoW M2MxtasJXsrVjiogydVQDAqj/kZWjq/IcXki3nNG+mObHpeBJP2nf1hhNjmNFBKz QoudyDcGveeRpZsKIzkMjsSzlnTmEY4= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 4952A1C686 for ; Sat, 27 May 2023 00:00:23 -0400 (EDT) (envelope-from berend@pobox.com) Received: from mail.berenddeboer.net (unknown [203.173.197.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id D19511C684 for ; Sat, 27 May 2023 00:00:19 -0400 (EDT) (envelope-from berend@pobox.com) Received: from firefly.berenddeboer.net (firefly.berenddeboer.net [192.168.33.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.berenddeboer.net (Postfix) with ESMTPSA id E823E29F3D for ; Sat, 27 May 2023 16:00:15 +1200 (NZST) Received: from firefly.berenddeboer.net (localhost [127.0.0.1]) by firefly.berenddeboer.net (Postfix) with ESMTP id A25046FE for ; Sat, 27 May 2023 16:00:15 +1200 (NZST) Date: Sat, 27 May 2023 16:00:15 +1200 Message-ID: <877csu4e5s.wl-berend@pobox.com> To: NTG-ConTeXt mailing list User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-Pobox-Relay-ID: FF3F2824-FC42-11ED-83AD-C2DA088D43B2-48001098!pb-smtp20.pobox.com Subject: [NTG-context] \doifelseoddpage not working as expected X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Berend de Boer via ntg-context Reply-To: mailing list for ConTeXt users Cc: Berend de Boer Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" Dear all, I need something like \doifelseoddpage, but this does not work as expected. See below example. You will notice that on page two you still get the ODD text, with page number 1. What's going on? Is there a proper way to detect what page I'm on? Example: \starttext \dorecurse{70}{\doifelseoddpage{ODD \currentpage\par}{EVEN \currentpage\par}} \stoptext My system: context --version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /home/berend/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2023.05.08 17:39 mtx-context | main context file: /home/berend/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2023.05.08 17:39 -- All the best, Berend de Boer ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________