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,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27411 invoked from network); 4 Sep 2023 17:01:44 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 4 Sep 2023 17:01:44 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8140248301F for ; Mon, 4 Sep 2023 19:01:06 +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 e9Zu2sEpyL8z for ; Mon, 4 Sep 2023 19:01:05 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0EF42482E02 for ; Mon, 4 Sep 2023 19:00:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 45159482490 for ; Mon, 4 Sep 2023 19:00:11 +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 vWY4hNLN74xT for ; Mon, 4 Sep 2023 19:00:11 +0200 (CEST) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id F337948235F for ; Mon, 4 Sep 2023 19:00:10 +0200 (CEST) Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4RfZd66Wfmz5n; Mon, 4 Sep 2023 17:00:10 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4RfZd64496z2y13; Mon, 4 Sep 2023 17:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1693846810; bh=y7kvezj1ng1UkTxqpKQnWvSb2C5iIYe1ORpVsMg3oCY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=KcuitShIs0IAEpUMZdeY/TIeUiy3QkVrqGgzpvNuN5nQyf2nwDNOUMEbf4l7vmH8a Q845ihO0euMBD3XrMDJ50w5gUeWGtFYG1uDrwU8+hMbXFjbKP8a/fFBpE3b7ImIQNv 0OgdNQNCudf0dA6edDaXlSYldz0qZiCDs7s+qPIA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1693846810; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dzVx3HbPC+ueoApfoSkWfBKQymoVcO83ePe4YPf0cUo=; b=dkjH0IHLhmhnLRaTVcm3l03peZwjIuLYWXNEqdxz6EjxR+YZEU2xLIBuhgJjgvyenIXD4c 8o0cvVi+6Jpatdp3yaA21uxeD7EmlM9w6B5yU2w1RrnVDlpFgvZnLjGXuCXMA1syZkUAWd mygMGbctTM1uizuqIaxn+rrqAksG8Fw= ARC-Seal: i=1; s=default; d=freedom.nl; t=1693846810; a=rsa-sha256; cv=none; b=ncEpmy9Po6txbTzRakw2ZuuP2ILRzlxSRQi0gj2cpxgJVMIxyNCoVq+b13yIyS1K3B/C07 6UcPTtZuDLMAV66/P9nwo5SpF5dND8i1q7xLk69jvbOyC5y9VR5zCMhcIrvcGYloMyLXuj AN+f9Alf9w2A42Bm0NiJiqD6ihv9d3k= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <509fccc7-ad9e-559e-0bf8-ed202ce601f6@freedom.nl> Date: Mon, 4 Sep 2023 19:00:08 +0200 MIME-Version: 1.0 Content-Language: en-US To: Jeroen , mailing list for ConTeXt users References: X-Soverin-Authenticated: true In-Reply-To: Message-ID-Hash: 3Q3LCKYLQR3B2MPYTPCKL2R5UNPJ6TFV X-Message-ID-Hash: 3Q3LCKYLQR3B2MPYTPCKL2R5UNPJ6TFV X-MailFrom: j.hagen@freedom.nl 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: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 9/4/2023 6:09 PM, 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? > > > > \setupfootertexts > [title] > [\pagenumber{} of \totalnumberofpages] > > \setcounter > [userpage] > [0] > > \setuppagenumbering > [location=] > > \startdocument > > \setupfooter[state=stop] > \startfrontmatter > frontpage > \stopfrontmatter > \setupfooter[state=start] > > \startbodymatter > \dorecurse{10}{\samplefile{lorem}} > \stopbodymatter > > \stopdocument \setupfootertexts [title] [\pagenumber\space of \lastpagenumber] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________