I'm trying to include a logo in the footer area of an amsart document. I use fancyhdr to achieve that, but the problem I run into is that the body of the text runs into the footer area – as illustrated by the example below:
\documentclass[a4paper,reqno,11pt]{amsart}
\usepackage{fancyhdr}
\usepackage[latin]{babel}
\usepackage{blindtext}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.1pt}
\lfoot{\rule{0.4cm}{0.4cm}} %The logo would go here
\cfoot{Page \thepage}
\begin{document}
\title{Sample Doc}
\maketitle
\thispagestyle{fancy}
\blinddocument
\end{document}
Has anybody run into a similar problem or know of a quick fix? Many thanks in advance!
Best Answer
The
amsart
way to this is to increase\footskip
, decrease the default\textheight
correspondingly and then issue\calclayout
:The command
\calclayout
is specific to the AMS classes. One specifies an initial\textheight
that includes headers, but not footers, and also one specifies\textwidth
,\headsep
,\headheight
,\paperwidth
and\paperheight
.\calclayout
then computes the correct value of page margins, ensuring some reasonable minimum values, and then\textheight
is set to the height of the textblock. Looking at the code, the calculations ignore the footers. By default no adjustment is made to e.g.\headheight
for the font size. The class is really designed to work with the default10pt
option.The initial values given to
\textheight
in the above code, are those fromamsart.cls
fora4paper
andletterpaper
(the only paper options the class accepts).