summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/vhistory/doc/vh_set_example.tex
blob: f1f18050a9625bcbab2828acba73f9791b5a7f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DON'T FORGET TO COPY THE FILES sets.sty AND
% vhistory.sty IN THIS DIRECTORY, IF YOU TRY
% TO COMPILE THIS EXAMPLE!!!!!!!!!!!!!!!!!!!!
%

\documentclass{scrartcl}

% Definition of shortcuts for authornames
% This has to be done before the first usage
% of \vhListAllAuthorsLong or \vhListAllAuthorsLongWithAbbrev
% (otherwise only the shortcuts are printed)
\newcommand{\JW}{Jochen Wertenauer}
\newcommand{\PF}{Peter Foo}
\newcommand{\MB}{Mary Bar}

\usepackage{vhistory, hyperref}
\hypersetup{pdfauthor={\vhListAllAuthorsLong}, colorlinks=true}

\newcommand{\docTitle}{}

\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}

\ifoot{An example for vhistory---Version \vhCurrentVersion}
\cfoot[]{}
\ofoot[\thepage]{\thepage}

\begin{document}

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

\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}