![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
Dear list, inspired by strc-pag.mkiv, I have the following sample: \setuppagenumbering[alternative=doublesided] \setupsubpagenumber[way=bychapter] \starttext \dorecurse{5}{\startchapter[title=My Chapter] \userpagenumber/\lastuserpagenumber--- \subpagenumber/\lastsubpagenumber \stopchapter} \stoptext I need that chapters start on an odd page. Is there any way to avoid that \lastsubpagenumber counts the blank page that might be placed among two chapters? Many thanks for your help, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Pablo Rodriguez schrieb am 08.05.2019 um 20:14:
Dear list,
inspired by strc-pag.mkiv, I have the following sample:
\setuppagenumbering[alternative=doublesided] \setupsubpagenumber[way=bychapter] \starttext \dorecurse{5}{\startchapter[title=My Chapter] \userpagenumber/\lastuserpagenumber--- \subpagenumber/\lastsubpagenumber \stopchapter} \stoptext
I need that chapters start on an odd page.
Is there any way to avoid that \lastsubpagenumber counts the blank page that might be placed among two chapters? You have to reset the subpage counter at the end of each chapter.
\startsetups [chapter:after] \page \resetsubpagenumber \stopsetups \setuphead [chapter] [aftersection=\directsetup{chapter:after}] Wolfgang
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 5/8/19 9:28 PM, Wolfgang Schuster wrote:
[...]
Is there any way to avoid that \lastsubpagenumber counts the blank page that might be placed among two chapters? You have to reset the subpage counter at the end of each chapter.
\startsetups [chapter:after] \page \resetsubpagenumber \stopsetups
\setuphead [chapter] [aftersection=\directsetup{chapter:after}]
Many thanks for your fast reply, Wolfgang. It works perfectly fine. It doesn’t work in my real document, but it took me a while to realize that I was using \chapter instead of \startchapter...\stopchapter. Time to get a break... Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Wolfgang Schuster