I have created a custom simple layout with the fancyhdr
package. Because the header I must use is somewhat big, LaTeX instructed me to increase the headheight
to at least a minimum value. The problem is, the footer gets moved down until it eventually disappears.
Here is a MWE, where the footer can still be seen at the bottom:
\documentclass[12pt,a4paper,oneside]{article}
\usepackage[utf8]{inputenc}
\usepackage[landscape,left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}
\usepackage{fancyhdr}
\setlength{\headheight}{60pt}
\pagestyle{fancy}
\lhead{This is header \\ This is header \\ This is header \\ This is header \\ This is header}
\chead{}
\rhead{}
\lfoot{}
\cfoot{This is the footer}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\begin{document}
First line of the document.
Second line of the document.
\end{document}
Now change 60pt
for 80pt
and compile again. Goodbye, footer!
Is there any way to fix this? I can't change the header, and I must have both header and footer.
Edit: The amount of support is incredible, 3 answers plus comments in one hour! Upvoting you all, and choosing most simple and idiot-proof solution as correct. Thanks!