On 20 Mar 2024, at 18:45, Andres Conrado Montoya
wrote: 2. As far as I have found, including the chapter/section number in the marking is not really a trivial task. I usually hack something using \headnumber and \getmarking, like so:
You can do the following: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title={This is my section}] This is a section\par \dorecurse{6}{\input knuth }\input math-kontinuitet-sv \stopsection \stopchapter } \stoptext Caveat: it needs an if...then test around the section number for when a section hasn't started. — Bruce Horrocks Hampshire, UK