Files
mip/Documentation/SupportingDocumentation/WEBMIP_TEX/andy.tex
2009-06-24 09:47:27 +00:00

85 lines
1.8 KiB
TeX

\documentclass{book}
\usepackage{graphicx}
\usepackage{booktabs}
\newsavebox{\titleimage}
\sbox{\titleimage}{\includegraphics[width=15.98cm]{TitleImage}}
\newcommand\version{Version unknown}
\newcommand{\setversion}[1]{\renewcommand{\version}{Version #1}}
\newcommand\restriction{}
\newcommand{\setrestriction}[1]{\renewcommand{\restriction}{#1}}
\newcommand\restrictedto{Unrestricted}
\newcommand{\setrestrictedto}[1]{\renewcommand{\restrictedto}{Restricted to #1}}
\newcommand\ouraddress{
Advantica \newline
Holywell Park \newline
Ashby Road \newline
Loughborough \newline
Leicestershire \newline
LE11 3GR \newline
United Kingdom
}
\newcommand{\setouraddress}[1]{\renewcommand{\ouraddress}{#1}}
\newcommand\customeraddress{Customer address not set}
\newcommand{\setcustomeraddress}[1]{\renewcommand{\customeraddress}{#1}}
\newcommand\customer{Customer not set}
\newcommand{\setcustomer}[1]{\renewcommand{\customer}{#1}}
\makeatletter
\def\maketitle{%
\null
\thispagestyle{empty}%
\usebox{\titleimage}
\begin{flushright}
\begin{tabular}{ p{4.25cm} p{6.75cm} }
\version & \@date
\\
\midrule
\multicolumn{2}{c}{
\Huge{\@title}
}
\\
\midrule
\restriction & \restrictedto
\\
\end{tabular}
\end{flushright}
\vfill
\begin{tabular} { p{5.97cm} p{9.47cm}}
Prepared for: & Prepared by:
\\
\customer & \@author
\\
\customeraddress & \ouraddress
\\
\end{tabular}
\null
\clearpage
}
\makeatother
\author{Isidore Ducasse, Comte de Lautréamont}
\author{Lautréamont}
\title{Les Chants de Maldoror}
\date{\today}
\author{jamie priest}
\setversion{0.4}
\setcustomer{Martin Hansford}
\setcustomeraddress{
Somewhere \newline
Sometown \newline
Here
}
\begin{document}
\maketitle
\end{document}