From ac4bd2cc7a7e6d820e3cba473baeace6e0d00c7b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 25 Oct 2013 17:01:51 +0200 Subject: [PATCH 1/1] vertrag improvements --- .texmf/tex/latex/vertrag.sty | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.texmf/tex/latex/vertrag.sty b/.texmf/tex/latex/vertrag.sty index 28fb90f..029b0e0 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} @@ -18,20 +24,26 @@ \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}} -- 2.39.5