* issue with page numbering
@ 2019-05-08 18:14 Pablo Rodriguez
2019-05-08 19:28 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2019-05-08 18:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: issue with page numbering
2019-05-08 18:14 issue with page numbering Pablo Rodriguez
@ 2019-05-08 19:28 ` Wolfgang Schuster
2019-05-08 20:03 ` Pablo Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2019-05-08 19:28 UTC (permalink / raw)
To: mailing list for ConTeXt users, Pablo Rodriguez
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-08 20:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08 18:14 issue with page numbering Pablo Rodriguez
2019-05-08 19:28 ` Wolfgang Schuster
2019-05-08 20:03 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).