Hi, Taco—

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=page, way=bypage]
\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 <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 are not proving successful. The following code shows the nature of the problem.
>
> \definecounter[volpage][type=page, way=bypage]
> \starttext
> \setcounter[volpage][5]
> \dorecurse{3}{\startTEXpage[offset=2pc]
>               \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
___________________________________________________________________________________