From: martin f. krafft Date: Fri, 25 Oct 2013 15:01:51 +0000 (+0200) Subject: vertrag improvements X-Git-Url: https://git.madduck.net/etc/texmf.git/commitdiff_plain/ac4bd2cc7a7e6d820e3cba473baeace6e0d00c7b vertrag improvements --- 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}}