2

I have a problem with the headers. I want to keep the image header but remove the text header (small word contents).

enter image description here

Below is the code:

\documentclass[11pt,a4paper,titlepage]{article}

\usepackage{lipsum}
\usepackage{graphicx}
\usepackage[a4paper,margin=1.0in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength\headheight{80.0pt}
\addtolength{\textheight}{-80.0pt}
\chead{\includegraphics[width=\textwidth]{Header}}
\cfoot{\includegraphics[width=\textwidth]{Footer}}

\begin{document}
\title{\vspace{-30mm}\Huge Compressed Air} 
\date{\Large ATLAS COPCO}
\maketitle
\tableofcontents
\thispagestyle{fancy}
\end{document}

1 Answer 1

0

It's usually best practice to clear the header and footer first before setting it using

\fancyhf{} % Clear header/footer

otherwise document elements that address header/footer location you have not updated may still influence it. In your case, you haven't cleared what is contained in \lhead, \rhead, \lfoot and \rfoot. The above macro is shorthand for and clears all six locations (including \chead and \cfoot).

So, add the above in your preamble just after loading fancyhdr or at the start of setting your fancy page style.

You must log in to answer this question.

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