From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107666 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: problem with counters (page) Date: Wed, 10 Jun 2020 09:05:52 -0400 Message-ID: References: <526665FC-759C-4B90-8F64-70B8E9DD572F@elvenkind.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3597050367907248119==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="4826"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 10 15:06:36 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 1jj0R9-00017m-6X for gctc-ntg-context-518@m.gmane-mx.org; Wed, 10 Jun 2020 15:06:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1759C1631E8; Wed, 10 Jun 2020 15:06:06 +0200 (CEST) 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 ud73UWnIuW2w; Wed, 10 Jun 2020 15:06:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3765B1631DA; Wed, 10 Jun 2020 15:06:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CE96B1631DA for ; Wed, 10 Jun 2020 15:06:04 +0200 (CEST) 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 Q0ku-1eAcES1 for ; Wed, 10 Jun 2020 15:06:03 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.48; helo=mail-ej1-f48.google.com; envelope-from=bowenalan03@gmail.com; receiver= Original-Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 DBD3E161705 for ; Wed, 10 Jun 2020 15:06:03 +0200 (CEST) Original-Received: by mail-ej1-f48.google.com with SMTP id p20so2446309ejd.13 for ; Wed, 10 Jun 2020 06:06:03 -0700 (PDT) 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=E1oBkCmhiu1MEMaet6TX93vwF5ctU8u+iOdZ5NINZ7M=; b=VrVCIk7c0OmB2Ewss7MkiWz+FhG9dKrvW/WvDKZmIoiFhXXBRdangq/qEc1Kf45fx8 tsHAUk+ABMaLgGLoz/CeYARElK6A6I3545Xu6llJHyS/q75YmX/D7BSTtPNtnIUnsyza pNAeT8LtPbFmFVqL+XX5QxdJAVAD000+D1jT14HJBMsL7vicRKyL7iEgMqisuC6gj452 09C7XFzF6fbcGqNGvP70YIfeC4DluTm2Xz7maosUPaYECRJ9LQF6cZVjewYo5UgDogzH n6eVZM5IO7N3CFecUX00cBr4vyAJxNiLb64VarG7YIWngdmKbuh/J9AsOJ6GyXfORqHD 31hw== 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=E1oBkCmhiu1MEMaet6TX93vwF5ctU8u+iOdZ5NINZ7M=; b=sjyTTMNNAj0gJLcI11DgHl3NHwpKhDL2AOs4CflTtJHxhDUHll4X0wiextGeguelgg wG3z6Hvjf/IYz2AyOfq5V8t7/wHYGudrdfUS9aGYMXPBxAVSFBDMWAyA7JJLDZ1bE/nF J2K1KMWmI8egKbQKRhCpnh8a90065tVamZyOch2y/npx4pN2UhjhFNBlq7xlmYpBreQw 7DPAyRKM7TjwIIcNn5e/MyYuPdFoUieD/gRFgnH9XKMf9wW0ylhMRPeYO0+kuUm4RmEU uHzzPA2pIybP/jFQJltlO5QqmPGr7LSfEMlD+OfZjSRXmFf5UWkSHmvFbgRYep5rR/Sa QQ+g== X-Gm-Message-State: AOAM531oESCIvF+kTKr15ZLfq4V4jzUi0bnPJUoPy65v0f7ZlWkRRFhU mlutYCfL2wua8694azaPQpF6VSInzrrwGoV9awM+dGeeTdM= X-Google-Smtp-Source: ABdhPJwcjIo7FNT/GmKndHKkV273QuXy2H4moPT9996HvlBw4QZiOMOpSHDE4ev4z6bMRYGGnI2A5hnTc5CqoVErdWY= X-Received: by 2002:a17:906:3cf:: with SMTP id c15mr3194176eja.186.1591794363188; Wed, 10 Jun 2020 06:06:03 -0700 (PDT) In-Reply-To: <526665FC-759C-4B90-8F64-70B8E9DD572F@elvenkind.com> 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:107666 Archived-At: --===============3597050367907248119== Content-Type: multipart/alternative; boundary="00000000000092c9ad05a7ba81c2" --00000000000092c9ad05a7ba81c2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Taco=E2=80=94 Thanks for the suggestion. I have tried it with \incrementcounter before and after the TEXpage. Sadly, neither worked. This mwe is an attempt to capture the failure of the following in processing a product with numerous components: \definecounter[volpage][type=3Dpage, way=3Dbypage] \setupfootertexts[text] [] [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} \incrementcounter[volpage]}] [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} \incrementcounter[volpage]}] [] If your suggestion had worked, I would have had difficulty in applying it. Alan On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater wrote: > Hi, > > Incrementing the counter outside of the TEXpage should work. > > Best wishes, > Taco > > > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > > > My efforts to set up a new page counter in the footertexts of a book ar= e > not proving successful. The following code shows the nature of the proble= m. > > > > \definecounter[volpage][type=3Dpage, way=3Dbypage] > > \starttext > > \setcounter[volpage][5] > > \dorecurse{3}{\startTEXpage[offset=3D2pc] > > \input ward > > \blank[medium] > > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > > \stopTEXpage} > > \stoptext > > > > As you will see, the counter is not incremented on pages 2 and 3. > > > > I expect that I have missed something important. But what? > > > > Alan > > > _________________________________________________________________________= __________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > Taco Hoekwater > Elvenkind BV > > > > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000092c9ad05a7ba81c2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Taco=E2=80=94

Thanks for the suggestion. I have tried it with= \incrementcounter before and after the TEXpage. Sadly, neither worked.

This mwe is an attempt to capture the f= ailure of the following in processing a product with numerous components:

\definecounter[volpage][type=3Dpage, way=3Dbypage]
[]
[{\centerline{\raise\NumberRaise\hbox{\ra= wcounter[volpage]}}
\incrementcounter[volpage]}]
[{\centerline{\raise= \NumberRaise\hbox{\rawcounter[volpage]}}
\incrementcounter[volpage]}]
[]
=C2=A0
If your suggestion=C2= =A0had worked, I would have had difficulty in applying it.
Alan

On Wed, Jun 10, 2020 at 3:14 AM Tac= o Hoekwater <taco@elvenkind.com> wrote:
Hi,

Incrementing the counter outside of the TEXpage should work.

Best wishes,
Taco

> On 9 Jun 2020, at 23:34, Alan Bowen <
bowenalan03@gmail.com> wrote:
>
> My efforts to set up a new page counter in the footertexts of a book a= re not proving successful. The following code shows the nature of the probl= em.
>
> \definecounter[volpage][type=3Dpage, way=3Dbypage]
> \starttext
> \setcounter[volpage][5]
> \dorecurse{3}{\startTEXpage[offset=3D2pc]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\input ward
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\blank[medium] >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\centerline{\red= \tfa\rawcounter[volpage]\incrementcounter[volpage]}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stopTEXpage} > \stoptext
>
> As you will see, the counter is not incremented on pages 2 and 3.
>
> I expect that I have missed something important. But what?
>
> Alan
> ______________________________________________________________________= _____________
> If your question is of interest to others as well, please add an entry= to the Wiki!
>
> maillist : ntg= -context@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________

Taco Hoekwater
Elvenkind BV




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

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://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: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000092c9ad05a7ba81c2-- --===============3597050367907248119== 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== --===============3597050367907248119==--