I have a problem with fancyheader. The pagestyle is defined like this:
\fancypagestyle{companypagestyle}{
\fancyhf{}
\fancyhead[R]{
Page \thepage
}
\fancyhead[L]{
Lorem datasheet
}
\fancyfoot[L]{
\url{http://company.com}
}
\fancyfoot[R]{
\includegraphics[width=2.5cm]{logoCompany.png}
}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{2pt}
\renewcommand{\headrule}{\hbox to\headwidth{%
\color{cyan}\leaders\hrule height \headrulewidth\hfill}}
\renewcommand{\footrule}{\hbox to\headwidth{%
\color{cyan}\leaders\hrule height \footrulewidth\hfill}}
}
Which produces perfectly what I wanted. The problem is the first section is somehow missplaced (closer to the header boundary than other sections).
It looks like this:
Does anybody know what could be the cause? Thank you very much.