I'm trying to make the header "margin" bigger. It is to close to the edge.
I've been trying to make \setlength{\headheight}{10pt}
larger but then the page number moves to much down?
Any thoughts?
\documentclass[a4paper,12pt]{report}
\usepackage[margin=2cm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\nouppercase{\leftmark}} % Set chapter in left header.
\rhead{\nouppercase{My University}} % Set my university name in right header.
\setlength{\headheight}{10pt} % ??????????????????
\begin{document}
\chapter{First Chapter} %
First chapter's content.
\clearpage
\section{Hello}
The header is to close to the edge..
\end{document}
Best Answer
You get a warning;
fancyhdr
tells you that header should be 14.4999pt high atleast. So make it16pt
to be safe. And do it withgeometry
package.headsep=0.1in,heightrounded
are other settings just for achieving perfection. In addition, you can increase the top margin as above.