TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In LaTeX the fancyhdr package provides the lhead, chead and rhead macros that allow me to create the left, center and right parts of the header. These macros also enable me to treat each part of the header as a column. For example the following MWE:



\lhead{\textbf{A\\ B}}
\chead{\textbf{C\\ D}}


Some Text


Produces the following document: MWE

Notice how A and B are stacked on top of each other.

How can I achieve this in ConTeXt?

share|improve this question
up vote 7 down vote accepted

See \setupheadertexts on the ConTeXt wiki and the ConTeXt user manual.

Also see the header and footer section on the ConTeXt wiki.

% The default header is bigger, and by default, the header is top aligned.
% So change the header size

% By default, no frames are drawn around the header.
% Change that to draw a rule at the bottom of the header.
\setupbackgrounds[header][text][frame=off, bottomframe=on]

% Set the headers in bold.

% By default, the header is a \hbox. We define a dedicated \vbox to 
% place multiple lines in the header.

\setupheadertexts[\headerframed{C \\ D}]
\setupheadertexts[\headerframed{A \\ B}][\headerframed{E \\ F}]

\input knuth

which gives

enter image description here

share|improve this answer
This worked perfectly, thanks @Aditya. – Zameer Manji Nov 27 '12 at 17:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.