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

I use \setupheadertexts [][section][chapter][] to get the section- and chapter-title in the header of the odd- and even pages. How to change the font, like its size, or making it bold or italic? The way \setupheadertexts [][\it section][chapter][] does not work, as "section" is than interpreted as text, and not as variable.

share|improve this question
Now there is some info about styles on the wiki. – Philipp Gesang Oct 17 '12 at 19:18
up vote 6 down vote accepted

Rather than using an explicit font switch in \setupheadertexts it is better to set the style of the header (or other page markup areas like footer, top, and bottom) using \setupheader. If you want to change the style of all header elements use


If you want to use separate styles for left and right header, use

\setupheader[leftstyle=italic, rightstyle=bold]

Of course, like all setup commands that accept style key, you can use the color (and leftcolor and rightcolor) key to set the color as well.

share|improve this answer

You can use \getmarking[section] instead. Since you use brackets inside brackets, you have to wrap it in an extra pair of braces.

  [] [{\italic\getmarking[section]}]

More information in the manual in the section about “Marking”.

share|improve this answer
Thanks. And how to change the size, like \tiny{} in LaTeX, I searched the manual for that briefly, but did not found the equivalent command. – Mustafa Oct 17 '12 at 7:14
Wiki - Font Switching – Marco Oct 17 '12 at 7:20

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.