Search code examples
headerlatexmarginpage-numberingfootnotes

Make page margin count for footnotes and header as well


I am using the following page geometry:

\documentclass[12pt, a4paper]{report} % A4 paper and 12pt font size
\usepackage[a4paper, top=2.0cm, bottom=1.0cm, left=2.0cm, right=5.0cm, footskip = 1.0cm]{geometry}

I need the "white" margins of the page to be exactly like that, meaning that if there is a footnotes, the margin between the footnote end and the end of the page is 1cm. The same counts for the head, except for the page number. So the margin between the top of the page and the first line of text needs to be 2cm. The page number (top) would ideally be centred in that space.

Somehow I currently end up with 2.4cm in the top and less than one at the bottom.

Thanks in advance!


Solution

  • From the manual for the geometry package (http://texdoc.net/texmf-dist/doc/latex/geometry/geometry.pdf, figure 2 p. 3):

    If includehead is set to true, headheight and headsep are considered as a part of height. In the same way, includefoot takes footskip into height.

    So this

    \usepackage[a4paper, top=2.0cm, bottom=1.0cm, left=2.0cm, right=5.0cm, footskip = 1.0cm, includehead, includefoot]{geometry}
    

    should do the trick?