In my document I want all my headers and footers to be the same, so I use this code for that purpose:
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancypagestyle{plain}
\fancyhf{}
\fancyhead[C]{}
\fancyfoot[C]{}
\fancyhead[RE,LO]{Manuel Alonso Cousido}
\fancyhead[LE,RO]{History}
\fancyfoot[RE,LO]{\thepage}
\fancyfoot[LE,RO]{\leftmark}
However, only some pages display the headers and footers. The first page of each chapter and the TOC pages have no header nor footer.
Do I have to use \thispagestyle{fancy}
for every first page of chaper? In that case, how can I ensure that all the TOC pages get a footer and a header?
Best Answer
You can use pagestyle
fancyplain
insteadfancy
to get the same header and footer forplain
andfancy
pages. If there should be a headrule onplain
pages too, redefine\plainheadrulewidth
.Example:
If there should be different entries for
plain
andfancy
pages use\fancyplain
.Example: