From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109389 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: "page i/n" in footer Date: Sun, 8 Nov 2020 14:51:02 +0100 Message-ID: References: <6be9508b-4693-ee0c-1f0b-518faf8a56d0@gmx.es> <357b8ccf-608b-0aa5-8be5-c89d9dd3d8d7@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3665703497517657200==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20331"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 08 14:55:44 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kblAV-0005BJ-Tg for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 14:55:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2A4761AA3B5; Sun, 8 Nov 2020 14:51:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-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 01FTChh9uRVK; Sun, 8 Nov 2020 14:51:16 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 54B041AA38B; Sun, 8 Nov 2020 14:51:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 144001AA36C for ; Sun, 8 Nov 2020 14:51:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-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 0BBx6X1ECuJD for ; Sun, 8 Nov 2020 14:51:15 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.177; helo=mail-il1-f177.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 121011A9CD5 for ; Sun, 8 Nov 2020 14:51:15 +0100 (CET) Original-Received: by mail-il1-f177.google.com with SMTP id g7so5894536ilr.12 for ; Sun, 08 Nov 2020 05:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7EOLmeREW6pHUTJ0p/KWSugLaDS0NLKk/7ZQE/Cg17I=; b=gJ9U83297igICs/INfEcbZpIMZ8Yet4mFFAHX1CiAueS7FUjoYQzF/Xy0IIVW6QSJ7 +LrNGiAKgyfHgU2fXwyx63R+I9m495RjSjoCyLEf773jaQ9wXs/ibPPs/WBzvRf66dWO ustLyOGy9DoEfuoC0DD6+OMREv2J43HA1hATtD5gjnQGR3uoI0NwBdxhTKFzDsUdVfVc M+lfQoy+XnnvFB9Pi5F3hmn6FscxWYEzk5mGq/EJ5PureXzhmtaEsa1JZTdnFlg8nile wAlggqpZfhLhni3osS3M+R1J3r35t6dO/o6jnn+fCh10ggV8u3D8osVmvoCnPiFlMpGR 9KTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7EOLmeREW6pHUTJ0p/KWSugLaDS0NLKk/7ZQE/Cg17I=; b=jTdZW0c+ckQa70sqfumwaKLfbs9eQcS6UHa9wm/ldjeYvYKJZIaIZm001MdXsBe9Pm UxHaa26OhTJKKx9p2exOxigwegnew7JAztJCFKAvyXO8/9PUcQszqxr+PAtszjbvemjW QIFYy8u/QYMVNrwzj767QWDOfKqgME68DWo81nDzWU0wdcjvBJTRRQNUYsx/N/wMMcmG r2LO4gu+BeIN6pyl3EUBOGD+dzfPE2CjGmtv1F6DLcrMW3CHbk1RK2s6qvnnOVgD5IO4 qktqeougXNIEf8wnFofQczbxqDS0qFrqpVy+c7gZ+xdWIVwoly6Oy5bDkEl2ezUuiQgq in1w== X-Gm-Message-State: AOAM530mfJQ4OWJ0e/KxErqT5GpZVE7RBf1OIkWuSLmhBtvyK8tW5GAa aKjy/fIPRZRGMnztmb/Cod+w0AMElnNEyaZ7KuOpghPRsWs= X-Google-Smtp-Source: ABdhPJzTyqrA4n45wtLmJMZ7NfcycEhUYQceOh4KbtpRZJhMIKy8WzOnXNiBjnEF1JlM91n+te9GqDtNF76nTL3/kbc= X-Received: by 2002:a05:6e02:105:: with SMTP id t5mr6350993ilm.174.1604843473934; Sun, 08 Nov 2020 05:51:13 -0800 (PST) In-Reply-To: <357b8ccf-608b-0aa5-8be5-c89d9dd3d8d7@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:109389 Archived-At: --===============3665703497517657200== Content-Type: multipart/alternative; boundary="0000000000002f1e3505b398bd19" --0000000000002f1e3505b398bd19 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 8 Nov 2020 at 13:44, Pablo Rodriguez wrote: > On 11/8/20 11:48 AM, Sylvain Hubert wrote: > > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for > > the help!. > > > > Btw, do you know whether there is any difference between \lastpagenumbe= r > > and \lastuserpagenumber mentioned both by Wolfgang and by the excursion > > book ? > > Besides Wolfgang=E2=80=99s reply (way far more authoritative than mine), = my > approach is basic. > > grep the and read the source: > > $ grep -irl lastpagenumber ~/lmtx > ~/lmtx/mlib-int.lua > ~/lmtx/mlib-int.lmt > ~/lmtx/meta-pag.mkiv > ~/lmtx/mult-def.lua > ~/lmtx/strc-pag.mkxl > ~/lmtx/strc-pag.mkiv > > ~/lmtx is only a symlink for > ~/context/tex/texmf-context/tex/context/base/mkiv/. > > I created that symlink, because grepping for commands or options is a > way to learn by reading the code. > > Not that I understand the whole, but I see which options are available > and I can check some samples included. > > strc-pag.mkxl is your friend here. There are three page series. You > could even create more page series (not normally needed). > Thank you very much for the pointers. It does save me from drowning in the code base as I have been for multiple occasions. Sylvain --0000000000002f1e3505b398bd19 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 8 Nov 2020 at 13:44, Pablo Rodriguez <oinos@gmx.es> wrote:
On 11/8/20 11:48 AM, Sylvain Hubert wrote:
> Indeed, \setupfooterexts is much clearer for page numbering. Thanks fo= r
> the help!.
>
> Btw, do you know whether there is any difference between \lastpagenumb= er
> and \lastuserpagenumber mentioned both by Wolfgang and by the excursio= n
> book <http://www.pragma-ade.com/genera= l/manuals/ma-cb-en.pdf>?

Besides Wolfgang=E2=80=99s reply (way far more authoritative than mine), my=
approach is basic.

grep the and read the source:

=C2=A0 $ grep -irl lastpagenumber ~/lmtx
=C2=A0 =C2=A0 ~/lmtx/mlib-int.lua
=C2=A0 =C2=A0 ~/lmtx/mlib-int.lmt
=C2=A0 =C2=A0 ~/lmtx/meta-pag.mkiv
=C2=A0 =C2=A0 ~/lmtx/mult-def.lua
=C2=A0 =C2=A0 ~/lmtx/strc-pag.mkxl
=C2=A0 =C2=A0 ~/lmtx/strc-pag.mkiv

~/lmtx is only a symlink for
~/context/tex/texmf-context/tex/context/base/mkiv/.

I created that symlink, because grepping for commands or options is a
way to learn by reading the code.

Not that I understand the whole, but I see which options are available
and I can check some samples included.

strc-pag.mkxl is your friend here. There are three page series. You
could even create more page series (not normally needed).
<= div>
Thank you very much for the pointers. It does save me fr= om drowning in the code base as I have been for multiple occasions.

Sylvain
--0000000000002f1e3505b398bd19-- --===============3665703497517657200== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3665703497517657200==--