summaryrefslogtreecommitdiff
path: root/info/german/fancyhdr/bsp9.tex
blob: a3e2b718da8f3267d455ba35a3119d67d52f2a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\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}