[NTG-context] \setupheadertexts not working when text contains \subject

Bruce Horrocks ntg at scorecrow.com
Fri Jan 14 00:05:22 CET 2022

I've found an unexpected interaction between \setupheadertexts and the \subject command, and I'm hoping that someone can tell me what I'm doing wrong.

Version:  current version: 2022.01.10 08:36

I'm trying to set a book whereby
- chapter title pages have no headers
- left hand (even) pages have the chapter title in the left header and the book title in the right header
- right hand (odd) pages have the book title in the left header and the author's name in the right header

The following MWE does this perfectly provided the \subject line is commented-out. When the \subject line is included then the author name disappears - there's just a blank space in the header.

  [ alternative=doublesided,
\definefont [stylePageHeader] [Serif at 10pt]
\startsetups ChapterSetup
        [{\stylePageHeader {My Book}}]              [{\stylePageHeader{\structureuservariable{author}}}]
        [{\stylePageHeader{\getmarking[Chapter]}}]  [{\stylePageHeader {My Book}}]	

\definehead [Chapter] [chapter]
  [ page=right,
\startChapter[title={The Strange Case of the Missing Header}] [author={Bruce}]

%\subject{A heading}
\input Knuth


Bruce Horrocks
Hampshire, UK

More information about the ntg-context mailing list