From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/svn-multi/example_main.tex | 71 +++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 macros/latex/contrib/svn-multi/example_main.tex (limited to 'macros/latex/contrib/svn-multi/example_main.tex') diff --git a/macros/latex/contrib/svn-multi/example_main.tex b/macros/latex/contrib/svn-multi/example_main.tex new file mode 100644 index 0000000000..ef4ebce0f3 --- /dev/null +++ b/macros/latex/contrib/svn-multi/example_main.tex @@ -0,0 +1,71 @@ +\documentclass[12pt]{report} + +% Traditional way to include keywords: +\usepackage{svn-multi}[2009/03/03] +% Version control information: +\svnidlong +{$HeadURL: svn://server/dir/example_main.tex $} +{$LastChangedDate: 2008-12-03 13:29:19 +0000 (Wed, 03 Dec 2008) $} +{$LastChangedRevision: 146 $} +{$LastChangedBy: martin $} +% The extra Id to access the file name is not needed anymore because it is +% extracted from the URL: +%\svnid{$Id: example_main.tex 146 2008-12-03 13:29:19Z martin $} +% +% Don't forget to set the svn property 'svn:keywords' to +% 'HeadURL LastChangedDate LastChangedRevision LastChangedBy' or +% 'Id' or both depending if you use \svnidlong and/or \svnid + +% Alternative you can use the auto-keyword feature to extract the keywords from +% the Subversion working directory: +%\usepackage[autokw=all]{svn-multi}[2009/03/28] + +\usepackage{hyperref} + +\usepackage{fancyhdr} +\renewcommand{\headrulewidth}{0.4pt} +\renewcommand{\footrulewidth}{0.4pt} +\setlength{\headheight}{14.5pt} +% This will display the last changed revision of the current chapter. +% Change \svnfilerev to \svnrev if you like to have the +% document revision. +\newcommand{\svnfooter}{Last Changed Rev: \svnfilerev} + +\pdfinfo{% + /CreationDate (D:\svnpdfdate) +} + +\svnRegisterAuthor{johnd}{John Doe} +\svnRegisterAuthor{maryd}{Mary Doe} +\svnRegisterAuthor{martin}{Martin S.} +\svnRegisterRevision{15}{Version~1} + +\listfiles +\begin{document} + +\begin{titlepage} + \vspace{8ex} + {\huge Title\par} + \vspace{2ex} + {\large \noindent This is an small example document for the \texttt{svn-multi} + (aka \texttt{svnkw}) package. Please also look at the LaTeX source code of this + document. An advanced example which includes keyword groups is shown in + \url{group\_example.pdf}} + \vfill + \flushleft\sffamily + Version control information:\\ + Head URL: \svnnolinkurl{\svnmainurl}\\ + %or with hyperlink: Head URL: \url{\svnurl}\\ + Last changed file: \texttt{\svnfname}\\ + Last changed date: \svndate\\ + Last changes revision: \svnrev\\ + Version: \svnFullRevision*{\svnrev}\\ + Last changed by: \svnFullAuthor*{\svnauthor}\\ +\end{titlepage} + +% Include chapters +\include{example_chap1} +%\include{example_chap2} +%\include{example_chap3} + +\end{document} -- cgit v1.2.3