From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Adjust pagenumbering while skipping first page
Date: Mon, 4 Sep 2023 18:41:32 +0200 [thread overview]
Message-ID: <b47a855f-db89-8f1d-80cf-ba096a2bbf02@gmx.es> (raw)
In-Reply-To: <CAPtmdbN0o8Qk_X057sEM7D08r4TjvTU0pvUj=Ks=HTWQa1JP9g@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-09-04 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-04 16:09 [NTG-context] " Jeroen
2023-09-04 16:41 ` Pablo Rodriguez [this message]
2023-09-04 22:03 ` [NTG-context] " Jeroen
2023-09-04 17:00 ` Hans Hagen via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b47a855f-db89-8f1d-80cf-ba096a2bbf02@gmx.es \
--to=oinos@gmx.es \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).