%
% do not indent paragraphs
%
%
% switch off extra space after punctuation marks
%
\frenchspacing

\newcommand{\documentname}{S2-AEI-TN-3002}
\newcommand{\documentdate}{\today}

%Schriftgroesse, Layout, Papierformat, Art des Dokumentes
\documentclass[fleqn,10pt,twoside,a4paper,DIV11]{scrartcl}

\setlength{\parindent}{0pt}
\setlength{\parskip}{0.5cm}

\usepackage{changebar}
\usepackage{color}
%\usepackage{fmtcount}
\usepackage{upgreek}
\usepackage{multirow}


% Wird gebraucht.
\usepackage[english]{babel}

%
% make document useable for latex and pdflatex
%
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
\pdftrue
\fi
\ifpdf
\usepackage[pdftex]{graphicx}   % to include graphics
\pdfcompresslevel=9
%
% use package hyperref to create a pdf file with hyperlinks
% the package wants to be loaded as last packages, since it overrides settings
%
\usepackage[pdftex,     % sets up hyperref to use pdftex driver
plainpages=false,   % allows page i and 1 to exist in the same document
breaklinks=true,    % link texts can be broken at the end of line
colorlinks=true,
% pdftitle=,    % keine Umlaute oder Sonderzeichen
pdfauthor= Martin Hewitson
]{hyperref}      % should be the last package that is loaded according to docsumentation
%
% to create thumbnails in pdf files
%
%\usepackage{thumbpdf}
\else
\usepackage{graphicx}       % to include graphics
\usepackage{hyperref}       % to simplify the use of \href
\fi

%Umlaute ermoeglichen
%\usepackage [applemac]{inputenc} %ggf. \usepackage[latin9]{inputenc}

%weitere Pakete
\usepackage[T1]{fontenc}
\usepackage{ae} % beachte: durch dieses Paket kann im Acrobat nicht mehr nach Woertern mit Umlauten gesucht werden.
%\pdfcompresslevel=9 %(1-9)
%\pdfinfo{info keys for example: Title, Creator, Author}


%\raggedbottom
%Packages aus alten Dokumenten%%%%%%%%%%%%%%%
\usepackage[intlimits]{amsmath}
\usepackage{amssymb}
\usepackage[headinclude,footinclude]{scrpage2}
%\usepackage[pdftex]{graphicx}
\usepackage{verbatim}
\usepackage{rotating}
\usepackage{colortbl}
\usepackage{lastpage}
\usepackage{calc}
\usepackage{mcode}
\usepackage{tabularx}
% \usepackage[numbered,framed]{mcode}

%\usepackage{hyperref}
\DeclareGraphicsExtensions{.pdf}

\pagestyle{scrheadings}
\renewcommand{\headheight}{2.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Kopfzeile
%Kopfzeile links bzw. innen
\ihead{
	\begin{minipage}[b]{3cm}
	\small{\documentname}\\\small{\documentdate\\Issue: Draft\\ Rev. 1}
	\end{minipage}
}
%Kopfzeile rechts bzw. aussen
\ohead{
	\begin{minipage}[b]{1.6cm}
	\includegraphics[width=1.6cm]{AEI_small.png}
	\end{minipage}
	\begin{minipage}[b]{5,5cm}
	\textsc{Max Planck Institute for\\Gravitational Physics\\
	(Albert-Einstein-Institute)}\\
	\end{minipage}\\\vspace{-0.5cm}
}
%Kopfzeile mittig
\chead{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Fusszeile
%Fusszeile rechts bzw. aussen
\ofoot{\pagemark}
%Fusszeile links bzw. innen
\ifoot{}
%Fusszeile mittig
\cfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setheadtopline{1pt}
\setheadsepline{1pt}

%Gummimaße erhöhen
\tolerance 1414
\hbadness 1414
\setlength{\emergencystretch}{1.5em}
\hfuzz 0.3pt
\widowpenalty=10000
\vfuzz \hfuzz
\raggedbottom

%Satz von Floats verbessern (nach FAQ):
\renewcommand{\floatpagefraction}{.7}
\renewcommand{\textfraction}{.15}
\renewcommand{\topfraction}{.8}
\renewcommand{\bottomfraction}{.5}


\newcommand{\utpsmall}[3]{\noindent\vspace{0.3cm}
\begin{tabularx}{\textwidth}{@{}|X|p{#1cm}@{}|@{}}
\hline
#1 &  #2 \\
\hline
\multicolumn{2}{@{}p{\textwidth}@{}}{#3}
\hline
\end{tabularx}\vspace{0.3cm}}

\newcommand{\utp}[4]{\noindent\vspace{0.3cm}
\begin{tabularx}{\textwidth}{@{}|X|p{1cm}@{}|@{}}
\hline
#1 &  #2 \\
\hline
\multicolumn{2}{@{}p{\textwidth}@{}}{#3} \\
\hline
\multicolumn{2}{@{}p{\textwidth}@{}}{#4} \\
\hline
\end{tabularx}\vspace{0.3cm}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

% Macros
%\input{include/macros}

%Titelseite
\titlehead{
	
	% \begin{figure}
	% 	\begin{minipage}[b]{7cm}
	% 		\includegraphics[width=4cm]{LisaPF-logo.jpg}
	% 	\end{minipage}
	% 	\hspace{0.5cm}
	% 	\begin{minipage}[b]{7cm}
	% 		\includegraphics[width=1.6cm]{AEI_small.png}
	% 	\end{minipage}
	% \end{figure}
	% \begin{flushright}
	
	
	\begin{flushright}
	\begin{minipage}[b]{2.6cm}
	\includegraphics[width=2.6cm]{LisaPF-logo.jpg}
	\end{minipage}
	\begin{minipage}[b]{1.6cm}
	\includegraphics[width=1.6cm]{AEI_small.png}
	\end{minipage}
	\begin{minipage}[b]{5.5cm}
	\textsc{Max-Planck-Institute for\\ Gravitational Physics\\
	(Albert-Einstein-Institute)}\\
	\end{minipage}
	\end{flushright}
}


\title{
	LTPDA Unit Test Plan \\
	\vspace{1cm}
	{\large \documentname} \\ \vspace{2cm}
	\author{
		\begin{tabular}{p{4cm}p{9.5cm}}
		\hline
		prepared by     & Martin Hewitson \& Ingo Diepholz \\
		checked by      &  \\
		Issue           & 1 \\
		Revision        & 1 \\
		Status          & draft \\
		Number of pages & \pageref{LastPage}  \\
		date of issue   & \documentdate \\
		approved by     & \\
		\hline
		\end{tabular}
	}
}



\date{}
\maketitle

\textbf{This document and all parts of it are confidential. Any distribution is prohibited without written authorisation from AEI.}

\newpage

%----------------------------------------------------------------------------------

\section{Distribution List}
\begin{tabular}{p{4cm}p{9.5cm}}
\hline \rowcolor[gray]{0.9} Name & Company/ Institute\\
\hline M. Hewitson  &  AEI Hannover\\
\hline I. Diepholz  &  AEI Hannover\\
\hline
\end{tabular}

\newpage

\tableofcontents

\newpage

% <Report>

% <MethodDescription>
\subsection{<<HEADER>>}
<<CONTENT>>

% </MethodDescription>

% <TestDescription>
\subsubsection{<<HEADER>>}
<<CONTENT>>
% </TestDescription>

% <SyntaxDescription>
\noindent\framebox{\begin{minipage}{\textwidth}
Syntax test \hfill n/a
\end{minipage}}
\noindent\framebox{\begin{minipage}{\textwidth}
<<CONTENT>>
\end{minipage}}
% </SyntaxDescription>

% <SyntaxCode>
\bigskip\nopagebreak\noindent\framebox{\begin{minipage}{\textwidth}
\small
<<CONTENT>>
\normal
\end{minipage}}
\pagebreak[3]
% </SyntaxCode>

% <AlgoDescription>
\noindent\framebox{\begin{minipage}{\textwidth}
Algorithm test \hfill n/a
\end{minipage}}
\noindent\framebox{\begin{minipage}{\textwidth}
<<CONTENT>>
\end{minipage}}
% </AlgoDescription>

% <AlgoCode>
\nopagebreak\noindent\framebox{\begin{minipage}{\textwidth}
\small
<<CONTENT>>
\normal
\end{minipage}}
\pagebreak[3]
% </AlgoCode>

% </Report>

\end{document}