See the previous question. This is how my letter looks like

\documentclass[a4paper, 11pt]{article}


\newcommand{\DocumentTitle}{Motivation Letter}
\newcommand{\Author}{John Smith}

\setmainfont{Times New Roman}
\newfontfamily\hdrfont[ LetterSpace=5.0, WordSpace=1.0, Scale=0.9, Color=FFFFFF ]{Arial}

\usepackage[hmargin=1in,vmargin=0.4in, includehead, includefoot]{geometry}
\parskip 11pt

\fancyhf{} % clear all header and footers
\fancyhead[L]{\hdrfont\textbf{\DocumentTitle} \\ \emph{\Author}}
\fancyfoot[L]{\hdrfont\textbf{\DocumentTitle} \\ \emph{\Author}}


\renewcommand{\today}{ February 16, 2009 }

{ \vspace*{0.5in} }

\hspace{0.5in}To Whom It May Concern,

My Letter




What like the pdf looks like

--------------------------------------- PAGE BEGIN
--------------------------------------- HEADER RULE
To Whom It May Concern,---------------- TEXT BEGIN
My Letter
Respectfully,-------------------------- closing
John Smith----------------------------- signature
--------------------------------------- TEXT END
--------------------------------------- FOOTER RULE
--------------------------------------- PAGE END

On the first page it looks ok and H=F. Starting from the second page F is surprisingly small. Do you have any ideas?

This is the resulting PDF (with some text):

enter image description here

  • You can include a scrreenshot for the result.
    – percusse
    Nov 16 '12 at 16:37
  • Updated. I added the pdf.
    – user14416
    Nov 16 '12 at 16:50
  • 2
    You are receiving the warning Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 24.73766pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. Set \headheight to 25pt.
    – egreg
    Nov 16 '12 at 17:09
  • This is problem when I define \headheight then H != F.
    – user14416
    Nov 16 '12 at 17:20

If you set the head height to a value that fancyhdr thinks wrong (and it is wrong, by the way), it seizes the initiative and corrects it from the second page on, thus destroying your setting.

Actually with your setting, H and F are different: you get 0.4 in from the upper page margin to the top of "Motivation Letter" and from the page lower margin to the baseline of "Motivation Letter", not of "John Smith" at the bottom.

If you want a more precise spacing, just do

\usepackage[hmargin=1in,top=0.4in, bottom=\dimexpr0.4in+1.2\baselineskip\relax,
  includehead, includefoot,headheight=25pt]{geometry}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.