Am 26.12.2025 um 16:39 schrieb Hraban Ramm:
Hi, I found a solution for this problem, but I think it’s ugly, because I re-setup the header texts all the time. Is there a better (more elegant…) way?

Hraban

"""
\usemodule[visual] \setuppagenumbering[alternative=doublesided,location=,] \setupheadertexts[chapter][pagenumber][pagenumber][?] % completely empty left page: \definepagebreak[leftempty][yes,header,footer,right] \setuphead[chapter][   page=leftempty, before={\setupheadertexts[chapter][pagenumber][pagenumber][?]}, aftersection={\setupheadertexts[END][pagenumber][pagenumber][END]}, ] \starttext \dorecurse{5}{ \startchapter[title={\fakewords{2}{5}}] \dorecurse{7}{\fakewords{50}{300}\par} \stopchapter } \stoptext
"""

\usemodule[visual]

\setuppagenumbering
  [alternative=doublesided,
   location=none]

\setuphead
  [chapter]
  [page={yes,header,footer,right},
   aftersection={\setupheader[state=chapterend]}]

\setupheadertexts
  [chapter] [pagenumber]
  [pagenumber] [?]

\definetext
  [chapterend] [header] [text]
  [END] [pagenumber]
  [pagenumber] [END]

\starttext

\dorecurse{5}
  {\startchapter[title={\fakewords{2}{5}}]
   \dorecurse{7}{\fakewords{50}{300}\par}
   \stopchapter}

\stoptext

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to