%% LaTeX2e file `tuhhtitle.sty'
%% generated by the `filecontents' environment
%% from source `titlepage' on 2007/12/10.
%%
% Titelseite für die Universität Duisburg-Essen 
% Copyright (c) Markus Kohm, 2007
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3b
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3b or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `unmaintained'.
%
% This work consists of the file tuhhtitle.sty only.
%
\ProvidesPackage{tuhhtitle}[2007/05/01 v0.1a BETA title like
<http://www.tuhh.de/studium/promotion/deckbl_o.html>]
\ProcessOptions\relax
\newcommand*{\@grade}{%
  \PackageError{tuhhtitle}{\string\grade\space missing}{%
    You have to use \string\grade\space to set up the grade,\MessageBreak
    e.g. `\string\grade{Doktor-Ingenieur}'.}%
}
\newcommand*{\grade}[1]{\gdef\@grade{#1}}
\newcommand*{\@birthplace}{%
  \PackageError{tuhhtitle}{\string\birthplace\space missing}{%
    You have to use \string\birthplace\space to set up the place of the
    author's birth.}%
}
\newcommand*{\birthplace}[1]{\gdef\@birthplace{#1}}
\newcommand*{\@experts}{%
  \PackageError{tuhhtitle}{\string\experts\space missing}{%
    You have to use \string\experts\space to set up the experts,\MessageBreak
    e.g. `\string\experts{Name of the First Expert\string\and\space
      Name of the Second Expert}'.}%
}
\newcommand*{\experts}[1]{\gdef\@experts{#1}}
\newcommand*{\dateoforalexamination}[1]{\gdef\@date{#1}}
\newcommand*{\@examinationyear}{\@arabic{\year}}
\newcommand*{\examinationyear}[1]{\gdef\@examinationyear{#1}}
\renewcommand*{\maketitle}{%
  \begin{titlepage}
		  \sffamily
    \centering
	\par\vspace*{2cm}
    {\large\strut\ignorespaces\@title\par}\vfill
    \@ifundefined{otherlanguage}{%
      \PackageWarningNoLine{tuhhtitle}{%
        You should use babel package.\MessageBreak
        Simply add `\string\usepackage[ngerman,<your main language>]{babel}'
        to the\MessageBreak
        document preamble.}%
    }
	\small
	Von der Fakultät für Ingenieurwissenschaften	\\[.5cm] 
	der Universit\"at Duisburg-Essen\\[.5cm]
    zur Erlangung des akademischen Grades eines\\[.5cm]
    \strut\ignorespaces\@grade\\[.5cm]
    genehmigte Dissertation\\[.5cm]
    von\\[.5cm]
    {\strut\ignorespaces\@author\\[.5cm]}
    aus \@birthplace\par
    \vskip\baselineskip
	\par\vspace{3cm}
	{\raggedright
    Referent: Prof.\ Dr.\ Norbert Fuhr \\[.5cm]
	Korreferent: Prof.\ Dr. Jürgen Krause \\[.5cm]
	Tag der mündlichen Prüfung: 5.\,6.\,2008\\
	}

      \end{titlepage}
}
