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'm trying to reduce the number of packages I'm loading in my documents and I read on the KOMA documentation (and elsewhere) that it can define page styles better than fancyhdr. But each time I try to set up scrpage2 I get weird results, such as with the wrong section titles or positioning of elements. How can I rewrite my fancyhdr layout to scrpage2?


\fancyhead[LO]{\textit{\nouppercase{\scshape \mytitle{}}}}
\fancyhead[RE]{\textit{\nouppercase{\scshape \thechapter. \leftmark{}}}}


  \fancyhead[RE]{\textit{\nouppercase{\scshape \leftmark{}}}}
  \fancyhead[LO]{\textit{\nouppercase{\scshape \mytitle{}}}}

The preface style is used for the pages before Chapter 1; other pages just use the default fancy style.

share|improve this question
up vote 7 down vote accepted

Here's a scrpage2 solution that should at least come close to what you want. Some remarks:

  • No head- and footrules is the default setting of scrpage2.
  • Disabling uppercase letters in the header is done by the package option nouppercase.
  • The optional arguments of \lohead, \rehead and \cfoot control the settings for the scrplain pagestyle (which replaces plain).
  • The heading font is controlled by the \headfont macro.

I didn't emulate your separate preface pagestyle (which differs only slightly from your fancy style). Instead, I redefined \chaptermarkformat (which is able to differentiate between numbered and unnumbered chapters).


\lohead[]{(mytitle)}% Placeholder for \mytitle
\renewcommand*{\headfont}{\itshape\scshape}% Will equal \scshape for most fonts



\setcounter{secnumdepth}{-1}% Unnumbered chapters


\setcounter{secnumdepth}{2}% Numbered chapters, sections, and subsections



(The blindtext package is only used to add some dummy text to the example.)

share|improve this answer

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.