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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HK_RANDOM_FROM,HTML_MESSAGE, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7408 invoked from network); 4 Sep 2023 22:05:57 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 4 Sep 2023 22:05:57 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9282C482EC8 for ; Tue, 5 Sep 2023 00:04:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UP8Ih8vnmIUT for ; Tue, 5 Sep 2023 00:04:49 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D51D6482F78 for ; Tue, 5 Sep 2023 00:04:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1AC31482DD8 for ; Tue, 5 Sep 2023 00:03:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4FHt2n-PM5pn for ; Tue, 5 Sep 2023 00:03:42 +0200 (CEST) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id F2DC0482DB0 for ; Tue, 5 Sep 2023 00:03:41 +0200 (CEST) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-26d5970cd28so990597a91.2 for ; Mon, 04 Sep 2023 15:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693865020; x=1694469820; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=80hZatrY+Qcfo6wzRC99AeIJVolr3ffFHyavxPNamHQ=; b=F/ihgYx30GJ8gCmzMS2qYqL0CVKGfuFBDWRChk/mGStcxevhp0i/KxaAsupS3JHv9Y tyiyWMBiIRBpFGdaCWgqTpCIk+UqKOe0QNkYLkolfZ68facCxbXGl4KbioE/zzVTaueQ gMGbiqMv0OYeRJiU/KTo23IURJnfLL0V+ldFPrkLVUcQNru06r6KyMbdhm06f+HGyA/o zcRddtZ15Hw6ODe394BVD9M5IEwkINk0Ta3EXb05PtsKZk4vOizkgnBva4OwyPM+ug1+ 0VX53Id6cJORCWXXsqo3UeNH9pDufNEYVVL3Yw+ct4IOcubAeRmz+SI3UgaJdqKZELLO Dk5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693865020; x=1694469820; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=80hZatrY+Qcfo6wzRC99AeIJVolr3ffFHyavxPNamHQ=; b=lhd9FUSH/m93SRvpfqy5qvLhx1aHY/6zp4zhRn+XDC6U3BSUsmtsDCK58SAwGty2U0 CKH7TW+AwjHiMgWUEtUwiI6lfWnWNcgm3+7eL/gYv/b5iy/90NtTayz8JK9nYVDu3qeh /OccNgqFSNb49sJwrObLM0JcUwz5+aAiyv5PHgbz3Q8+aZMEgRrNVaaDDbY+jtnQIcv/ WOPhThoYMXF5NysRuMJUFyLyf3eAh7AExF8ebkkthvus6+Yd9fEXRwsqVKTeD8p3t6JP reK4vpyZW8uHPGHcSTziflUmsn1yz6AdHCigO+hcwFnuh/jmj+clldGlXyD4g/aMjG97 Ql9g== X-Gm-Message-State: AOJu0Yx/xrS/Pur/MSdIFfRZhYBcMfXxG+mt9VmWkq5eHCQlTC+nFm9o i6TVI7XbN6EWZAcdBsb1OadCxuBIy3vIX8noMvVqz8LjzH52wo1Jg8w= X-Google-Smtp-Source: AGHT+IGT/+Q2P1BGsUjEZnZxMaNId50IeUg0K9LQNVuB6+F2ERPqhjs7Td8FIJVXD57PXp6dIhspEhNEA5NBDS3CVF0= X-Received: by 2002:a17:90a:7e02:b0:26d:2b1d:1982 with SMTP id i2-20020a17090a7e0200b0026d2b1d1982mr7609478pjl.24.1693865019401; Mon, 04 Sep 2023 15:03:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jeroen Date: Tue, 5 Sep 2023 00:03:27 +0200 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: UFBMKUW4XRFXWRHIBXIEAPIVUMPSNK37 X-Message-ID-Hash: UFBMKUW4XRFXWRHIBXIEAPIVUMPSNK37 X-MailFrom: contextntg@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Adjust pagenumbering while skipping first page List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6641901337366480932==" --===============6641901337366480932== Content-Type: multipart/alternative; boundary="000000000000c76a6606048fae5e" --000000000000c76a6606048fae5e Content-Type: text/plain; charset="UTF-8" Pablo, Thanks, even though I use LMTX, only this form works: [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax] Thanks Jeroen Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez : > On 9/4/23 18:09, Jeroen wrote: > > The following MWE shows pagenumbering starting at the second page with > > page number 1. With the totalnumberofpages we end up with one page too > > many. Is there a way to reduce this with 1? > > Hi Jeroen, > > this might do the work (LMTX only): > > [\pagenumber{} of \the\numexpr{\totalnumberofpages - 1}] > > For MkIV, you would need: > > [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax] > > Just in case it helps, > > Pablo > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ --000000000000c76a6606048fae5e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Pablo,

Thanks, even though I use LMTX, = only this form works:

[\pagenumber{} of \the\numex= pr\totalnumberofpages - 1\relax]

Thanks
<= div>Jeroen

Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez <oinos@gmx.es>:
On 9/4/23 18:09, Jeroen wrote:
> The following MWE shows pagenumbering starting at the second page with=
> page number 1. With the totalnumberofpages=C2=A0we end up with one pag= e too
> many. Is there a way to reduce this with 1?

Hi Jeroen,

this might do the work (LMTX only):

=C2=A0 [\pagenumber{} of \the\numexpr{\totalnumberofpages - 1}]

For MkIV, you would need:

=C2=A0 [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]

Just in case it helps,

Pablo
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--000000000000c76a6606048fae5e-- --===============6641901337366480932== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============6641901337366480932==--