9

I am writing a book and i am using the package fancyhdr. I manage to have the configuration i've been looking for (chapter name in the even page, section name in the odd page ...) but there is one problem; the heading are in capital letter and i don't find a solution to fix it. Here's my code:

\usepackage{fancyhdr}
\pagestyle{fancy}

 \fancyfoot[C]{}    
 \fancyfoot[LE,RO]{\thepage}        
 \fancyhead[RO]{\slshape \rightmark}        
 \fancyhead[LE]{\slshape\leftmark}      
  \fancyhead[RE,LO]{}   

1 Answer 1

11

With fancyhdr you can use \nouppercase in the header and footer fields.

\fancyhead[RO]{\slshape\nouppercase{\rightmark}}
\fancyhead[LE]{\slshape\nouppercase{\leftmark}}

enter image description here

Code:

\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\fancyhead[RO]{\slshape\nouppercase{\rightmark}}
\fancyhead[LE]{\slshape\nouppercase{\leftmark}}

\usepackage{blindtext}% only for dummy text
\begin{document}
\blinddocument
\end{document}
2
  • Thanks a lot, it's working! But, what is the aim of blindtext?
    – J.Darmody
    Apr 22, 2017 at 13:12
  • 1
    Package blindtext provides the command \blinddocument which I have used to get some contents for testing and showing the result. It is not needed for your document.
    – esdd
    Apr 22, 2017 at 13:15

You must log in to answer this question.

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