Hi Charles,
On Sun, May 26, 2024 at 11:39 AM Charles Doherty via ntg-context
<[email protected]> wrote:
>
> Dear Wolfgang,
>
> I have a book in preparation with running heads.
>
>
> Pagenumber marking | marking Pagenumber
>
> The chapter title page has empty headings.
>
> The publisher would like the page number centered on the Chapter title page.
> I manage to put it there but I don’t want it to run on the following pages. I
> have made various attempts but can’t manage it.
>
> I have
>
> \setuplayout[location=doublesided]
> \setuppagenumbering[location=,alternative=doublesided]
>
> \setupheadertexts[chapter][][pagenumber]
> \setupheadertexts[{\getmarking[chapter]}][pagenumber]
>
> Can anyone show me code to achieve this?
>
> Thanks,
> Charlie
I notice that you addressed Wolfgang, but you also sent to the list.
One way could be to condition on being on a chapter page:
\setupheadertexts
[\doifelsefirstsectionpage{chapter}{\userpagenumber}{}]
\setupheadertexts
[\doifelsefirstsectionpage{chapter}{}{\getmarking[chapter]}]
[\doifelsefirstsectionpage{chapter}{}{\userpagenumber}]
/Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________