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.


2 Answers 2


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.


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”.

  • 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, 2012 at 7:14
  • 1
    Wiki - Font Switching
    – Marco
    Oct 17, 2012 at 7:20

You must log in to answer this question.

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