madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

vertrag improvements
[etc/texmf.git] / .texmf / tex / latex / vertrag.sty
index 28fb90f41a9a330091ecbf49d0c4246ce322c024..029b0e0432b1b07094a8b5a10a0d264dedce83be 100644 (file)
@@ -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}
 \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}}