If you write documents in Norwegian using LaTeX and let Subversion track your changes, it makes sense to use a package like svn-multi and maybe customize some of the features found in that package.

Below is the template I use nowadays for the majority of my LaTeX files. Don’t forget to set the property svn:keywords to Author Date HeadURL Header Id Revision for each of your LaTeX files. You might be better off by using the auto-props feature of your favorite Subversion client.

\documentclass[a4paper,12pt]{article} % -*- coding: utf-8 -*-

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[norsk]{babel}
\usepackage{booktabs}
\usepackage{textcomp}
\usepackage{pdflscape}

\usepackage[all]{svn-multi}

\svngroup{Globalt}

\svnidlong
{$HeadURL$}
{$LastChangedDate$}
{$LastChangedRevision$}
{$LastChangedBy$}

%\svnid{$Id$}

% Nødløsning for svn-multi eldre enn 2.4b.
% Stor takk til Martin Scharrer for snarrådig løsning.
\newcommand*\T[1]{\csname T#1\endcsname}

% Norske tilpasninger for svn-multi:
\makeatletter
\renewcommand{\svnrevisionsname}{Revisjoner}

\renewcommand{\svnbeforetable}{\noindent Filene som utgjør dette
  dokumentet er registrert i revisjonssystemet Subversion.  Under
  vises katalogstrukturen og de enkelte filene, deres nyeste
  revisjonsnummer, hvem som sist endret filene og når siste
  endring ble registrert.\par\bigskip}

\renewcommand{\svntable}{\svntablebooktabsbegin}
\renewcommand{\endsvntable}{\svntablebooktabsend}
%\newcommand{\svntablebooktabsbegin}{\begin{tabular}{p{0.425\textwidth}rll}\toprule}
\newcommand{\svntablebooktabsbegin}{\begin{tabular}{p{0.7\textwidth}rll}\toprule}
%\newcommand{\svntablebooktabsbegin}{\begin{tabular}{lrll}\toprule}
\newcommand{\svntablebooktabsend}{\bottomrule\end{tabular}}
\renewcommand{\svntablehead}{Navn & Revisjon & Forfatter & Dato \\\midrule}
\renewcommand{\svntabglobal}{Dokument}
%\renewcommand{\svntabglobal}{Hovedfil}
\renewcommand{\svntabgroup}[1]{Gruppe «#1»}
\renewcommand{\svn@tabsubgroup}[1]{\endgroup Undergruppe «\texttt{\small #1}»}
\renewcommand{\svn@tabfile}[1]{\endgroup Filen «\texttt{\small #1}»}
\makeatother

\svnRegisterAuthor{svn-brukernavn}{Fullt navn}

\usepackage[pdftex]{hyperref}
\hypersetup{
  unicode=false,
  pdftoolbar=true,
  pdfmenubar=true,
  pdffitwindow=false,
  pdfstartview={FitH},
  pdftitle={Tittel},
  pdfauthor={Forfatter},
  pdfsubject={Emne},
  pdfkeywords={Nøkkelord},
  pdfnewwindow=true,
  colorlinks=true,
  linkcolor=red,
  citecolor=green,
  filecolor=magenta,
  urlcolor=cyan
}
\usepackage[all]{hypcap}

\newcommand{\strek}{\textemdash}
\renewcommand{\labelitemi}{\strek}
\renewcommand{\labelitemii}{\labelitemi}
\renewcommand{\labelitemiii}{\labelitemii}
\renewcommand{\labelitemiv}{\labelitemiii}

\title{\textbf{Tittel}}
\author{Forfatter}
\date{20.\ mars 2011}

\begin{document}
\maketitle
\thispagestyle{empty}

\tableofcontents
\newpage

\begin{landscape}
  \tableofrevisions
\end{landscape}

\section{Første overskrift}
\label{sec:forste-merkelapp}

Her skrives teksten inn.

% Denne snutten kan brukes dersom det bare er én eneste fil.
%\vskip0pt plus1filll
%\noindent
%\texttt{\$\svn{$Id$}\$}

\end{document}

Local Variables:
TeX-PDF-mode:t
End:

Subfiles \inputed in the master file, can use this as a starting point.

% -*- coding: utf-8 -*-

\svnidlong
{$HeadURL$}
{$LastChangedDate$}
{$LastChangedRevision$}
{$LastChangedBy$}

%\svnid{$Id$}

\section{Ny overskrift}
\label{sec:en-annen-merkelapp}

Her skrives teksten inn.

% Local Variables:
% TeX-master: "navn-på-hovedfil"
% End:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>