With geometry
, the placement of the header is set by specifying the distance from the text body below to the header above with headsep
:
\documentclass{article}
\usepackage[showframe, headsep = 5mm]{geometry}
\usepackage{lipsum, fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{A header plus the page number: \thepage}
\begin{document}
\lipsum
\end{document}
In MS Word, on the other hand, the placement of the header is set by specifying the distance from the page margin above to the header below:
My problem now is that I am given a guide that tells me the settings in MS Word, and I have to figure out how to translate that into LaTeX. And this setting I can't figure out. How can I with the help of geometry
set the distance from the page margin above to the header below (in which case I would just set headsep = 0pt
)?
Best Answer
You should specify
top
together with theincludehead
setting:From the
geometry
user's manual, Figure 2 displays the meaning ofincludehead
(andincludefoot
):If you now want to specify the distance from the top of the page (margin) to the top of the text body, additionally set
headsep
andheadheight
. For example, we can setheadheight
to\baselineskip
by default, and then setto have the top of the body text exactly
25mm
from the page top margin.