\documentclass[10pt,a5paper,twoside,titlepage]{article} \usepackage{german} \usepackage{graphicx} \usepackage[DIV12]{typearea} \usepackage{fancyhdr} \usepackage{pslatex} \pagestyle{fancy} \fancyhf{} \fancyhead[EC]{Hans Friedrich Steffani} \fancyhead[OC]{Beispiele zu \texttt{fancyhdr}} \fancyhead[EL,OR]{Seite \thepage} \addtolength{\headwidth}{\marginparsep}% Die Kopfzeile soll \addtolength{\headwidth}{0.5\marginparwidth}% verbreitert werden \renewcommand{\headrulewidth}{0pt}% Keine Linie \title{Beispiele zu \texttt{fancyhdr}} \author{Hans Friedrich Steffani} \begin{document} \maketitle \section{Beispiel 9} \begin{verbatim} \pagestyle{fancy} \fancyhf{} \fancyhead[EC]{Hans Friedrich Steffani} \fancyhead[OC]{Beispiele zu \texttt{fancyhdr}} \fancyhead[EL,OR]{Seite \thepage} \addtolength{\headwidth}{\marginparsep}% Die Kopfzeile soll \addtolength{\headwidth}{0.5\marginparwidth}% verbreitert werden \renewcommand{\headrulewidth}{0pt}% Keine Linie \end{verbatim} \input{beispiel} \end{document}