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
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 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
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
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 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
___________________________________________________________________________________
Hi Alan, Sorry, I should have actually tried your MWE. You do *not* want way=bypage here, as that resets the counter to one at the start of the next page (it is useful for footnotes that are numbered per-page, but not for actual page counters). \definecounter[volpage][type=page] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium] \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext
On 10 Jun 2020, at 15:05, Alan Bowen
wrote: 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
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 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 ___________________________________________________________________________________ ___________________________________________________________________________________ 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
Thanks, Taco! That works in my mwe. I added way=bytext in my env file and
the output is just what I need.
Best, Alan
On Wed, Jun 10, 2020 at 9:44 AM Taco Hoekwater
Hi Alan,
Sorry, I should have actually tried your MWE. You do *not* want way=bypage here, as that resets the counter to one at the start of the next page (it is useful for footnotes that are numbered per-page, but not for actual page counters).
\definecounter[volpage][type=page] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium]
\centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext
On 10 Jun 2020, at 15:05, Alan Bowen
wrote: 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
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 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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
Alan Bowen schrieb am 10.06.2020 um 17:04:
Thanks, Taco! That works in my mwe. I added way=bytext in my env file and the output is just what I need.
Why don't you use sub pages? \starttext %\setupsubpagenumber[start=5]\resetsubpagenumber \setcounter[subpage][5] \startTEXpage \samplefile{ward} \blank \midaligned{\subpagenumber} \stopTEXpage \startTEXpage \samplefile{ward} \blank \midaligned{\subpagenumber} \stopTEXpage \stoptext Wolfgang
participants (3)
-
Alan Bowen
-
Taco Hoekwater
-
Wolfgang Schuster