X-Git-Url: https://git.madduck.net/etc/texmf.git/blobdiff_plain/3c01058cf284eacdb505afa88e1e328f9735b8ab..7456b7a3a8aa6f87d81761b3446b94beb0e4305d:/.texmf/tex/latex/vertrag.sty

diff --git a/.texmf/tex/latex/vertrag.sty b/.texmf/tex/latex/vertrag.sty
index 28fb90f..a5cc89f 100644
--- a/.texmf/tex/latex/vertrag.sty
+++ b/.texmf/tex/latex/vertrag.sty
@@ -8,7 +8,13 @@
 \fi
 \RequirePackage[german]{babel}
 \RequirePackage{scrjura}
-\RequirePackage{fullpage}
+\RequirePackage{totpages}
+\RequirePackage{geometry}
+
+\geometry{margin=1in}
+
+\RequirePackage{fancyhdr}
+\pagestyle{fancy}
 
 \setlength{\parindent}{0pt}
 \setlength{\parskip}{0.5em}
@@ -16,22 +22,27 @@
 \setkeys{contract}{preskip=2\parskip, postskip=\parskip}
 
 \addtokomafont{title}{\rmfamily}
-\addtokomafont{contract.Paragraph}{\rmfamily}
 
-\newenvironment{Vertrag}[2]
+\newenvironment{Vertrag}[3]
 {%
+  \title{#1}
+  \date{}
   \maketitle
-  \vspace{-4em}
+  \thispagestyle{fancy}
+  \vspace{-6em}
   \begin{contract}
   Zwischen
 
-  #1
+  #2
 
   und
 
-  #2
+  #3
 
   wird folgendes vereinbart:
+  \cfoot{\footnotesize \textit{#1 vom \today}}
+  \rfoot{\footnotesize Seite \thepage\ von \pageref{TotPages}}
+
 }%
 {\end{contract}}
 
