[Tex/LaTex] fancyhead not in small caps

capitalizationfancyhdrheader-footer

The text in my fancyhead is written in small caps. I would like to have it not in small caps. How can I do?

This is my fancyhead:

\usepackage{fancyhdr}
\lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
\rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
\chead{}\lfoot{}\rfoot{}\cfoot{}
\pagestyle{fancy}

something like that:

enter image description here

Best Answer

To get a format similar to the one in the example page, you can do like this:

\documentclass[a4paper]{book}
\usepackage{fancyhdr}

\pagestyle{fancy}

\makeatletter
\DeclareRobustCommand{\format@sec@number}[2]{{\normalfont\upshape#1}#2}
\renewcommand{\chaptermark}[1]{%
  \markboth{\format@sec@number{\ifnum\c@secnumdepth>\m@ne\@chapapp\ \thechapter. \fi}{#1}}{}}
\renewcommand{\sectionmark}[1]{%
  \markright{\format@sec@number{\ifnum\c@secnumdepth>\z@\thesection. \fi}{#1}}}
\makeatother

\fancyhf{}
\fancyhead[RE]{\itshape\nouppercase{\leftmark}}
\fancyhead[LO]{\itshape\nouppercase{\rightmark}}
\fancyhead[LE,RO]{\thepage}

I assume two-sided printing. Here are the header for an even and an odd page.

enter image description here

enter image description here