I wanted a document with a header/footer on the first page and only a slighlty different footer on every other page. If I do it like suggested in different places:
\documentclass[12pt,a4paper,ngerman]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman,german]{babel}
\usepackage{lastpage}
\usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}
\title{title}
\author{some name}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\lfoot{Some Text}
\rfoot{\thepage/\pageref{LastPage}}
\fancypagestyle{seite1}
{
\fancyhf{}
\renewcommand{\headrulewidth}{0.5pt}
\lhead{some\\text}
\chead{~\\even more text}
\rhead{text\\\today}
\rfoot{\thepage/\pageref{LastPage}}
\headheight 40pt
\headsep 10pt
}
\begin{document}
\thispagestyle{seite1}
\section*{Aufgabe 1:}
\newpage
\section*{Aufgabe 1:}
\end{document}
When I do it like that, all text after the first page is moved slightly to the top of the page. I figured out that the header is the problem. When I put the header on every page the text moves slightly down.
How can I get rid of the skip?
And after I achieved that how can I let the text start on the second and following pages on the same height as the header on the first page?
Best Answer
Put
\headheight 40pt \headsep 10pt
outside thefancypage
definition:But you shouldn't use `fancyheadings. In your log file you get a warning:
So use
fancyhdr
instead.Edit
To start the text on the second and following pages on the same height as the header on the first page:
However, IMO, this spoils the consistency of page layout.