PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : fancyhdr



hick.hack
25-10-2005, 00:10
Hallo ich habe ein Problem mit folgendem Minimalbeispiel. Auf der ersten Seite wird die Fußzeile viel zu tief dargestellt, obwohl ich textheight auf 100 gesetzt habe - was aber völlig ignoriert wird. Was ich will ist, das die Fußzeile von Seite 1 so aussieht wie von Seite zwei.



\documentclass[a4paper, 12pt, german]{article}

\usepackage{fancyhdr}
\usepackage[ngerman]{babel} % Neue Rechtschreibung

% Standard Kopf- und Fußzeilen
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\bfseries }
\fancyhead[LE,RO]{\slshape \rightmark}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

% Für Begin einer Section oder Verzeichnis
\fancypagestyle{sectionpage}{%
\fancyhf{} % clear all header and footer fields
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\headsep}{104pt}
\renewcommand{\textheight}{100pt}
\renewcommand{\footrulewidth}{0.4pt}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
}

\begin{document}

\clearpage
\thispagestyle{sectionpage}
\section{Minimalbeispiel}
\vspace{2cm}
some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text

\subsection{much more text}
much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text much more text

some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text

some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text

\end{document}


sorry für den vielen Text, aber Danke für eure Hilfe

Gruß hick.hack

rais
30-10-2005, 19:03
Moin moin,

Was ich will ist, das die Fußzeile von Seite 1 so aussieht wie von Seite zwei.

Warum machst Du Dir dann das Leben so schwer? Wenn es Dir nur darum geht, die Kopfzeile bei Sektorstart zu unterdrücken:


:
\pagestyle{fancy}
\fancyhf{}
\rhead{\bfseries }
\fancyhead[LE,RO]{\slshape \rightmark}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\cfoot{\thepage}
% Für Begin einer Section oder Verzeichnis
\fancypagestyle{sectionpage}{%
\fancyhead{} % clear all header fields
\renewcommand{\headrulewidth}{0pt}
}

\begin{document}
:
\end{document}


":" steht hier für unveränderten Code...;)
Und schau Dir bitte an, was ein richtiges Minimalbeispiel ist :rolleyes:
Alternativ könntest Du natürlich auch report/book Klasse nehmen, da ist das für \chapter schon drin;)

MfG,