| 1 |
\documentclass[12pt]{report} |
| 2 |
|
| 3 |
% Traditional way to include keywords: |
| 4 |
\usepackage{svn-multi}[2009/03/03] |
| 5 |
% Version control information: |
| 6 |
\svnidlong |
| 7 |
{$HeadURL: svn://server/dir/example_main.tex $} |
| 8 |
{$LastChangedDate: 2008-12-03 13:29:19 +0000 (Wed, 03 Dec 2008) $} |
| 9 |
{$LastChangedRevision: 146 $} |
| 10 |
{$LastChangedBy: martin $} |
| 11 |
% The extra Id to access the file name is not needed anymore because it is |
| 12 |
% extracted from the URL: |
| 13 |
%\svnid{$Id: example_main.tex 146 2008-12-03 13:29:19Z martin $} |
| 14 |
% |
| 15 |
% Don't forget to set the svn property 'svn:keywords' to |
| 16 |
% 'HeadURL LastChangedDate LastChangedRevision LastChangedBy' or |
| 17 |
% 'Id' or both depending if you use \svnidlong and/or \svnid |
| 18 |
|
| 19 |
% Alternative you can use the auto-keyword feature to extract the keywords from |
| 20 |
% the Subversion working directory: |
| 21 |
%\usepackage[autokw=all]{svn-multi}[2009/03/28] |
| 22 |
|
| 23 |
\usepackage{hyperref} |
| 24 |
|
| 25 |
\usepackage{fancyhdr} |
| 26 |
\renewcommand{\headrulewidth}{0.4pt} |
| 27 |
\renewcommand{\footrulewidth}{0.4pt} |
| 28 |
\setlength{\headheight}{14.5pt} |
| 29 |
% This will display the last changed revision of the current chapter. |
| 30 |
% Change \svnfilerev to \svnrev if you like to have the |
| 31 |
% document revision. |
| 32 |
\newcommand{\svnfooter}{Last Changed Rev: \svnfilerev} |
| 33 |
|
| 34 |
\pdfinfo{% |
| 35 |
/CreationDate (D:\svnpdfdate) |
| 36 |
} |
| 37 |
|
| 38 |
\svnRegisterAuthor{johnd}{John Doe} |
| 39 |
\svnRegisterAuthor{maryd}{Mary Doe} |
| 40 |
\svnRegisterAuthor{martin}{Martin S.} |
| 41 |
\svnRegisterRevision{15}{Version~1} |
| 42 |
|
| 43 |
\listfiles |
| 44 |
\begin{document} |
| 45 |
|
| 46 |
\begin{titlepage} |
| 47 |
\vspace{8ex} |
| 48 |
{\huge Title\par} |
| 49 |
\vspace{2ex} |
| 50 |
{\large \noindent This is an small example document for the \texttt{svn-multi} |
| 51 |
(aka \texttt{svnkw}) package. Please also look at the LaTeX source code of this |
| 52 |
document. An advanced example which includes keyword groups is shown in |
| 53 |
\url{group\_example.pdf}} |
| 54 |
\vfill |
| 55 |
\flushleft\sffamily |
| 56 |
Version control information:\\ |
| 57 |
Head URL: \svnnolinkurl{\svnmainurl}\\ |
| 58 |
%or with hyperlink: Head URL: \url{\svnurl}\\ |
| 59 |
Last changed file: \texttt{\svnfname}\\ |
| 60 |
Last changed date: \svndate\\ |
| 61 |
Last changes revision: \svnrev\\ |
| 62 |
Version: \svnFullRevision*{\svnrev}\\ |
| 63 |
Last changed by: \svnFullAuthor*{\svnauthor}\\ |
| 64 |
\end{titlepage} |
| 65 |
|
| 66 |
% Include chapters |
| 67 |
\include{example_chap1} |
| 68 |
%\include{example_chap2} |
| 69 |
%\include{example_chap3} |
| 70 |
|
| 71 |
\end{document} |