aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kuhnert2009-11-27 12:38:26 +0000
committerSebastian Kuhnert2009-11-27 12:38:26 +0000
commitf8863b8ba21071180accdfdcd9098f7bad7bbc81 (patch)
tree947279aae8f56e422484ec2cc1fe70bbc82a692e
parentdee8b303267c2567d9bb8e847bcbb45480bacf5c (diff)
downloadexercisesheets-f8863b8ba21071180accdfdcd9098f7bad7bbc81.tar.gz
exercisesheets-f8863b8ba21071180accdfdcd9098f7bad7bbc81.tar.bz2
exercisesheets-f8863b8ba21071180accdfdcd9098f7bad7bbc81.zip
add svn-based dynamic version information
-rw-r--r--exercisesheets.sty11
-rw-r--r--exercisesheets.tex12
2 files changed, 17 insertions, 6 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty
index 42470e5..c319632 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -1,12 +1,13 @@
-\def\fileversion{0.5g}
-\def\filedate{2009/02/09}
+%\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+\RequirePackage{svn-prov}
+\def\exsh@version{0.5h}
+\ProvidesPackage{$ID: $}[\exsh@version\space Typesetting of exercise sheets \revinfo]
+\GetFileInfoSVN*
+\message{`Typesetting of exercise sheets' \exsh@version <\filedate> \revinfo}
% TODO: allow \and in author and solutionsby
% TODO: fix "above hint skip"
-%\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{exercisesheets}[\filedate\space\fileversion\space Typesetting of exercise sheets]
-\message{`Typesetting of exercise sheets' \fileversion\space <\filedate>}
\RequirePackage{etoolbox}[2008/06/28]
\RequirePackage{scrlfile}
diff --git a/exercisesheets.tex b/exercisesheets.tex
index 751735a..cc1dfb0 100644
--- a/exercisesheets.tex
+++ b/exercisesheets.tex
@@ -33,9 +33,19 @@
\newcommand{\opt}[1]{\textcolor{green!50!black}{#1}}
\newcommand{\option}[1]{{\normalfont\texttt{\color{blue!50!black}#1}}}
+\usepackage{isodate}
+\usepackage[all,autokw]{svn-multi}
+\svnidlong
+{$HeadURL$}
+{$LastChangedDate$}
+{$LastChangedRevision$}
+{$LastChangedBy$}
+\svnid
+{$Id$}
+
\title{The \exsh Package}
\author{Sebastian Kuhnert}
-\date{February 9th, 2009}
+\date{\printdate{\svnday.\svnmonth.\svnyear}}
\begin{document}
\maketitle