From 449b2c25cd4f514c63e96e1b829b9c8235ad630b Mon Sep 17 00:00:00 2001
From: Roland Hieber <rohieb@rohieb.name>
Date: Sun, 8 Jan 2012 04:19:24 +0100
Subject: [PATCH] Protokolle: fancy Headers mit Datum und Seitennummer

---
 Vorstandssitzung 2011-08-30.tex | 18 ++++++++++++++++--
 Vorstandssitzung 2011-12-11.tex | 19 ++++++++++++++++---
 2 files changed, 32 insertions(+), 5 deletions(-)

diff --git a/Vorstandssitzung 2011-08-30.tex b/Vorstandssitzung 2011-08-30.tex
index e3bc2be..757bfda 100644
--- a/Vorstandssitzung 2011-08-30.tex	
+++ b/Vorstandssitzung 2011-08-30.tex	
@@ -4,14 +4,28 @@
 \usepackage[ngerman]{babel}
 \usepackage{libertine} % kann man notfalls auch ignorieren, wenns nicht da ist
 \usepackage{textcomp} % für €
+\usepackage{lastpage}
+\usepackage{fancyhdr}
 
 \renewcommand{\labelenumi}{(\arabic{enumi})}
 \renewcommand{\labelitemi}{--}
 \makeatletter\renewcommand*\thesection{TOP\ \@arabic\c@section:}\makeatother
 \setcounter{section}{-1}
 
-\title{Vorstandssitzung des Stratum~0~e.~V.}
-\date{30. August 2011}
+\newcommand{\mytitle}{Vorstandssitzung des Stratum~0~e.~V.}
+\newcommand{\mydate}{30. August 2011}
+
+\title{\mytitle}
+\date{\mydate}
+\pagestyle{fancy}
+\fancyhf{}
+\chead{\mytitle{} -- \mydate}
+\cfoot{Seite \thepage\ von \pageref{LastPage}}
+\fancypagestyle{plain}{%
+  \renewcommand{\headrulewidth}{0pt}%
+  \fancyhf{}%
+  \fancyfoot[C]{Seite \thepage\ von \pageref{LastPage}}%
+}
 
 \begin{document}
 \maketitle
diff --git a/Vorstandssitzung 2011-12-11.tex b/Vorstandssitzung 2011-12-11.tex
index 53698df..b9a6da9 100644
--- a/Vorstandssitzung 2011-12-11.tex	
+++ b/Vorstandssitzung 2011-12-11.tex	
@@ -4,15 +4,28 @@
 \usepackage[ngerman]{babel}
 \usepackage{libertine} % kann man notfalls auch ignorieren, wenns nicht da ist
 \usepackage{textcomp} % notfalls für €
+\usepackage{lastpage}
+\usepackage{fancyhdr}
 
 \renewcommand{\labelenumi}{(\arabic{enumi})}
 \renewcommand{\labelitemi}{--}
 \makeatletter\renewcommand*\thesection{TOP\ \@arabic\c@section}\makeatother
 \setcounter{section}{-1}
 
-\title{Vorstandssitzung des Stratum~0~e.~V.}
-\date{11. Dezember 2011}
-
+\newcommand{\mytitle}{Vorstandssitzung des Stratum~0~e.~V.}
+\newcommand{\mydate}{11. Dezember 2011}
+
+\title{\mytitle}
+\date{\mydate}
+\pagestyle{fancy}
+\fancyhf{}
+\chead{\mytitle{} -- \mydate}
+\cfoot{Seite \thepage\ von \pageref{LastPage}}
+\fancypagestyle{plain}{%
+  \renewcommand{\headrulewidth}{0pt}%
+  \fancyhf{}%
+  \fancyfoot[C]{Seite \thepage\ von \pageref{LastPage}}%
+}
 \begin{document}
 \maketitle
 
-- 
GitLab