I'm trying to set up a simple letter with a multi-line header on the first page, and a different multi-line header on all subsequent pages. The problem is that my headers push the text body completely off the bottom of the page. Here is the code I'm using.
\documentclass[10pt]{article}
\usepackage{fancyhdr}
\usepackage{ifthen}
\usepackage{everypage}
\usepackage[top=2in, bottom=2.5in, left=1in, right=1in]{geometry}
\AddEverypageHook{%
\ifthenelse{\value{page}=1}%
\renewcommand{\lhead{RECIPIENT \\ \today \\ Page Number \thepage \\~\\~\\~\\}{\chead{}}}%
\newpage%
}
\textwidth = 7 in
\textheight = 10 in
\oddsidemargin = 0pt
\evensidemargin = 0pt
\topmargin = -50pt
\headheight = 82.5pt
\headsep = 0pt
\parskip = 4pt
\parindent = 0.0in
\marginparwidth = 0pt
\marginparsep = 0pt
\hoffset = -18pt
\footskip = 8.5pt
\raggedright
\begin{document}
\pagestyle{fancy}
\pagenumbering{arabic}
\setcounter{page}{1}
\chead{ {COMPANY} \\ {Street Address} \\ {City, State Zip}\\~\\ {Tel. (XXX) XXX-XXXX} \\ {Email}}
\renewcommand{\headrulewidth}{0.4pt}
% main section
This is the body of the letter.
\end{document}
I would like the text to flow naturally from page to page, without the need for manual page breaks, and always have about a 1in bottom margin. Any ideas how to accomplish this?
Thanks.
Last edited by lawlist on Mon Mar 25, 2013 7:12 pm, edited 3 times in total.
Under certain circumstances the \usepackage[]{geometry} definition fails to properly control the bottom margin on the first page. When this initial definition fails (e.g., due to an inability to play nice with fancyhdr), it is possible to use the \newgeometry command as a workaround.