Time for action – customizing headers with the fancyhdr package
The default shape of the page headings is slanted. Furthermore, they are written in capital letters. We shall use bold typeface instead and we will use capital letters only for the chapter title. We will load the fancyhdr package and use its commands to achieve that:
Load the first version of our example. Insert the highlighted lines:
\documentclass[a4paper,12pt]{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{fancyhdr} \fancyhf{} \fancyhead[LE]{\leftmark} \fancyhead[RO]{\nouppercase{\rightmark}} \fancyfoot[LE,RO]{\thepage} \pagestyle{fancy} \begin{document} \chapter{Exploring the page layout} In this chapter we will study the layout of pages. \section{Some filler text} \blindtext \section{A lot more filler text} More dummy text will follow. \subsection{Plenty of filler text} \blindtext[10] \end{document}
Typeset—the footers will contain the page number on their outer side and the headers should look like the...