%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DON'T FORGET TO COPY THE FILES sets.sty AND
% vhistory.sty IN THIS DIRECTORY, IF YOU TRY
% TO COMPILE THIS EXAMPLE!!!!!!!!!!!!!!!!!!!!
%

\documentclass{scrartcl}
\usepackage{hyperref, vhistory}

%% Setting up headers and footers
\usepackage{scrpage2}
\pagestyle{scrheadings}
\ifoot{An example for vhistory---Version \vhCurrentVersion}
\cfoot[]{}
\ofoot[\thepage]{\thepage}

\begin{document}

%% Shortcuts for author names
\newcommand{\JW}{Jochen Wertenauer}
\newcommand{\PF}{Peter Foo}
\newcommand{\MB}{Mary Bar}

%% Title
{\renewcommand{\setseparator}{ \and }
\title{An example for vhistory}
\author{\vhListAllAuthorsLong}
\date{Version \vhCurrentVersion\ from \vhCurrentDate}
\maketitle
}

%% History of versions
\begin{versionhistory}
  \vhEntry{1.0}{22/01/04}{JW|PF}{Creation}
  \vhEntry{1.1}{23/01/04}{JW|MB}{Error correction}
  \vhEntry{1.2}{03/02/04}{JW|MB}{Revised after review}
  \vhEntry{1.3}{03/02/04}{JW|MB|PF}{Final version}
\end{versionhistory}

\tableofcontents
\clearpage

\section{Introduction}
\subsection{Overview}
bla bla bla

\subsection{Target audience}
more bla bla bla

\section{bla bla}
even more bla bla.

\end{document}
