I am using this to place headers within my document:

\setupheadertexts[{Birds of South America \getmarking[chapter]}][][][]

I tried to place the title on a different line, using \\, \crlf, \vskip, \frame, but all of these commands are either ignored or give errors.

I tried this:

\setupheadertexts[{Birds of South America \\ \getmarking[chapter]}][][][]

I also tried this:

\setupheadertexts[{\framed{Birds of South America \\ \getmarking[chapter]}}][][][]

It should look like this, with "Bolivia" on a second line.

Birds of South America

How can I have headers with multiple lines in ConTeXt?

  • Did you try to use a parbox inside it?
    – Sigur
    Jun 20, 2013 at 1:40
  • \parbox seems to be a LaTeX command.
    – Village
    Jun 20, 2013 at 3:58
  • In these layout elements the vertical space commands are suppressed, see page-txt.tex. If you must, you can hack your way around this limitation like this: \let\forceline\crlf \setupheadertexts[{\framed[align=left]{foo\forceline bar}}][pagenumber] Jun 20, 2013 at 9:57

1 Answer 1


By default, the header texts are a \hbox. To get multiple lines, you need a \vbox. The easiest way to get a \vbox in ConTeXt is to use \framed[align=normal]. Here is an example demonstrating that:


\startsetups headertext
  \framed[frame=off, align=normal]
      {Birds of South America \\ \getmarking[chapter]}


\startchapter[title={First chapter}]
  \input knuth

\startchapter[title={Second chapter}]
  \input knuth


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .