[NTG-context] Chapter in header, but not on title page

Pablo Rodriguez oinos at gmx.es
Sat Feb 15 23:20:54 CET 2020


On 2/15/20 9:16 PM, Henning Hraban Ramm wrote:
> I guess I’m stupid.
> I’d like to have my chapter title in the header on right pages, but
> not on the first page of a chapter, that always is a right page.
> Since I’d like to keep the page number in the header on these pages,
> I can’t use header=empty.
> What’s the right setup for me?

Hi Hraban,

I think this is what you intend:

    \usemodule[visual]

    \setuppagenumbering[alternative=doublesided, location=]
    \setupheadertexts[chapter][pagenumber][pagenumber][chapter]
    \definetext[chapter-first][header][][pagenumber]

    \setuphead[chapter][%
      page={yes, header, right},
      header=chapter-first,
    ]

    \starttext

    \dorecurse{5}{
      \startchapter[title={\fakewords{2}{5}}]
      \dorecurse{5}{
        \fakewords{100}{400}\par
      }
      \stopchapter
    }
    \stoptext

Just in case it helps,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list