I tried \afterpage{\headsep 10pt} (or whatever the size is) and other examples of \afterpage, but it does not seem to execute. I can't do a hard page break; I don't know how much content will be on the page since it's generated automatically. Here it my code so far:
Code: Select all
\documentclass[11pt]{article}
\usepackage{afterpage}
\usepackage[strict]{changepage}
\usepackage{ifthen}
\usepackage{endfloat}
\usepackage{lastpage}
\usepackage{amsmath}
\usepackage[left=2cm,top=0cm,right=2cm,bottom=3cm,nohead,nofoot]{geometry}
\usepackage{fancyhdr}
\headheight 0pt
\fancyheadoffset[R]{0in}
\fancyhead[R]{Header}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
\begin{document}
\afterpage{\setlength{\headheight}{53pt}}
\thispagestyle{plain}
Text! Insert a lot of lines here to see the effect I'm talking about.
\newpage
\pagebreak[4]
Text!
\newpage
\pagebreak[4]
More text!
\end{document}