summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/svn-multi/example_chap1.tex
blob: 6881ebe6ab6bb57883b93d88b9126d8b01924f48 (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
% Version control information:
\svnidlong
{$HeadURL: file://somewhere/example_chap1.tex $}
{$LastChangedDate: 2006-05-26 14:37:12 +0100 (Fri, 26 May 2006) $}
{$LastChangedRevision: 14 $}
{$LastChangedBy: johnd $}
\svnid{$Id: example_chap1.tex 14 2006-05-26 14:37:12Z johnd $}

\chapter{Example Chapter}

\section{Version}
\subsection*{This chapter}
% \url is needed because there is an underscore in the name
% The package 'underscore' seems not to work properly, so the 'hyperref'
% package is used which is not the best solution. Avoid underscore in LaTeX filenames.
Filename: \svnnolinkurl{\svnkw{Filename}}\\
URL: \url{\svnkw{HeadURL}}\\
% Something like \href{\svnkw{HeadURL}}{Download} works also!
\textbf{Last change}\\
Revision: \svnfilerev\\
Date: \svnfiledate\\
Year: \svnfileyear\\
Time: \svnfilehour:\svnfileminute:\svnfilesecond\ \svnfiletimezone00\\
Author: \svnfileauthor\\

\subsection*{Whole document}
Filename: \svnnolinkurl{\svnmainfilename}\\
URL: \url{\svnmainurl}\\
\textbf{Last change}\\
Revision: \svnrev\\
Date: \svndate\\
Year: \svnyear\\
Time: \svnhour:\svnminute:\svnsecond\ \svntimezone00\\
Author: \svnauthor\\
% [...]

\section{Tests}
\svnRegisterRevision{14}{Test}

Registered author name: \svnFullAuthor{\svnfileauthor}\\
Registered revision name: \svnFullRevision{\svnfilerev}\\
Registered author name (*): \svnFullAuthor*{\svnfileauthor}\\
Registered revision name (*): \svnFullRevision*{\svnfilerev}\\

\subsubsection*{Behaviour if value is not registered:}
Not registered user name: \svnFullAuthor{someusername}\\
Not registered revision name: \svnFullRevision{12}\\
Not registered user name (*): \svnFullAuthor*{someusername}\\
Not registered revision name (*): \svnFullRevision*{12}\\