\pagestyle{empty}

\makeatletter  %to avoid error messages generated by "\@". Makes Latex treat "@" like a letter

\linespread{1.5}
\def\submitdate#1{\gdef\@submitdate{#1}}

\def\supervisors#1{\gdef\@supervisors{#1}}

\def\maketitle{
  \begin{titlepage}{
    %\linespread{1.5}
    \Large TECHNISCHE UNIVERSIT{\"A}T M{\"U}NCHEN \\
    %\linebreak
    Institute for Cognitive Systems
    \rm
    \vskip 2in
    \Large \bf \@title \par
  }
  \vskip 0.3in
  \par
  {\Large \@author}
  \vskip 1in
  \centerline{\textbf{\large{Supervisors:}}}\par
  {\large \@supervisors} 
 \vspace*{10ex}
  \par
  TU M{\"u}nchen, \@submitdate
  \vfil
  \thispagestyle{empty}
  \end{titlepage}
}

\def\titlepage{
  \newpage
  \centering
  \linespread{1}
  \normalsize
  \vbox to \vsize\bgroup\vbox to 9in\bgroup
}
\def\endtitlepage{
  \par
  \kern 0pt
  \egroup
  \vss
  \egroup
  \clearpage
}

\def\preface{
    \pagenumbering{roman}
    \pagestyle{plain}
    \doublespacing
}

\def\generatebody{
    \clearpage    
    \tableofcontents
    \clearpage
    
    \listoffigures
    \clearpage
    \pagenumbering{arabic}
    \linespread{1.0}
}

\makeatother  %to avoid error messages generated by "\@". Makes Latex treat "@" like a letter
