2

I am adding the following lines to add a customized footer to my pdf document, found here.

header-includes:
  - \usepackage{fancyhdr}
  - \pagestyle{fancy}
  - \fancyfoot[LE,RO]{My fancy footer}

The issue is, I get also a header, which includes first and second chapter titles. As my chapter titles sometimes are long, they overlap. I wanted to ask how to remove the header and keep the footer. If it is easier, I am interested to keep only the first titles in the header.

Masood Sadat
  • 1,247
  • 11
  • 18

2 Answers2

1

Adding \fancyhead{} will get you an empty header. Check the user manual for the fancyhdr LaTeX package to find out how to create custom headers and footers.

Zé Loff
  • 275
  • 1
  • 8
0

If you'd like to remove both the header and the header horizontal rule, you can add the following to your doc preamble:

\fancyhead{}
\renewcommand{\headrule}{}

You can find a similar answer at How to remove the top horizontal bar in fancyhdr.

lowndrul
  • 3,715
  • 7
  • 36
  • 54