%%
%% This is file `fhACtitlepage.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fhACtitlepage.dtx  (with options: `package')
%% fhACtitlepage: A LaTeX2e package to create a titlepage for a diploma
%%                thesis at Fachhochschule Aachen.
%% 
%% Copyright (C) 2006 Juergen A. Lamers <jaloma@dokutransdata.de>
%% 
\def\fileversion{1.0}
\def\filedate{01 Apr 2006 17:05:29 CEST}
\def\filename{fhACtitlepage.dtx}
\def\Copyright{Copyright (C) 2006 Juergen A. Lamers,
   DokuTransData, Aachen, Germany}
\NeedsTeXFormat{LaTeX2e}[1998/06/01]
\ProvidesPackage{fhACtitlepage}
  [2006/04/01 v1.0 titlepage for diploma thesis with scrreprt.cls]
\typeout{Package 'fhACtitlepage' <\filedate>.}
\typeout{\Copyright}
\newif\if@declaration
\@declarationfalse
\DeclareOption{declaration}{\@declarationtrue}
\newif\if@colored
\@coloredfalse
\DeclareOption{colored}{\@coloredtrue}
\newif\if@sectionheader
\@sectionheaderfalse
\DeclareOption{sectionheader}{\@sectionheadertrue}
\providecommand*{\@thesistype}{Diploma Thesis}
\providecommand*{\advis@r}{Adviser}
\providecommand*{\@Advisedby}{This thesis was advised by}
\providecommand*{\@presentedby}{presented by}
\providecommand*{\@advisedby}{advised by}
\providecommand*{\@sign}{Sign}
\providecommand*{\@declarationtext}{}
\DeclareOption{german}{
  \renewcommand{\@thesistype}{Diplomarbeit}
  \renewcommand{\advis@r}{Betreuer}
  \renewcommand{\@presentedby}{vorgelegt von}
  \renewcommand{\@advisedby}{betreut von}
  \renewcommand{\@Advisedby}{Diese Arbeit wurde betreut von}
  \renewcommand{\@sign}{Unterschrift}
  \renewcommand{\@declarationtext}{Diese Diplomarbeit ist von mir selbstst"andig abgefertigt und
    verfasst. Es sind keine anderen als die angegebenen Quellen und
    Hilfsmittel benutzt worden.
    }
}
\ProcessOptions*
\RequirePackage{color}
\if@colored
\definecolor{sectcolor}{rgb}{0.0,0.2,0.4}
\definecolor{ssectcolor}{rgb}{0.0157,0.3804,0.9804}
\definecolor{sssectcolor}{rgb}{0.0,0.4,1.0}
\else
\definecolor{sectcolor}{rgb}{0.0,0.0,0.0}
\definecolor{ssectcolor}{rgb}{0.0,0.0,0.0}
\definecolor{sssectcolor}{rgb}{0.0,0.0,0.0}
\fi

\newcommand{\bssectfont}{\sffamily\bfseries\color{ssectcolor}}
\newcommand{\bsssectfont}{\sffamily\bfseries\color{sssectcolor}}

\if@sectionheader
\renewcommand{\sectfont}{\sffamily\bfseries\color{sectcolor}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
  {-3.25ex\@plus -1ex \@minus -.2ex}%
  {1.5ex \@plus .2ex}%
  {\raggedsection\normalfont\size@subsection\bssectfont}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  {-3.25ex\@plus -1ex \@minus -.2ex}%
  {1.5ex \@plus .2ex}%
  {\raggedsection\normalfont\size@subsubsection\bsssectfont}}
\renewcommand\minisec[1]{\@afterindentfalse \vskip 1.5ex
  {\parindent \z@ \raggedsection\sectfont #1\par\nobreak}%
  \@afterheading}
\fi
\newcommand{\@submitdate}{}
\newcommand{\submitdate}[1]{\gdef\@submitdate{#1}}
\newcommand{\@submitdatetown}{}
\newcommand{\submitdatetown}[1]{\gdef\@submitdatetown{#1}}
\newcommand{\@uniname}{}
\newcommand{\uniname}[1]{\gdef\@uniname{#1}}
\newcommand{\@abtname}{}
\newcommand{\abtname}[1]{\gdef\@abtname{#1}}
\newcommand{\@deptname}{}
\newcommand{\deptname}[1]{\gdef\@deptname{#1}}
\newcommand{\@profname}{}
\newcommand{\profname}[1]{\gdef\@profname{#1}}
\newcommand{\thesistype}[1]{\gdef\@thesistype{#1}}
\newcommand{\@logofile}{}
\newcommand{\logofile}[1]{\gdef\@logofile{#1}}
\newcommand{\@obtaining}{}
\newcommand{\obtaining}[1]{\gdef\@obtaining{#1}}
\newcommand{\@principaladviser}{}
\newcommand{\principaladviser}[1]{\gdef\@principaladviser{#1}}
\newcommand{\principaladvisor}[1]{\gdef\@principaladviser{#1}}
\InputIfFileExists{fhACtitlepage.cfg}
  {\typeout{Using fhACtitlepage.cfg}}
  {}
\renewcommand{\maketitle}{
  \begin{titlepage}
 \setlength{\headheight}{0mm}
 \setlength{\headsep}{\footskip}
 \setlength{\voffset}{-1in}
 \setlength{\hoffset}{-1in}
 \setlength{\oddsidemargin}{20mm}
 \setlength{\evensidemargin}{25mm}
 \setlength{\topmargin}{20mm}%evensidemargin}
 \setlength{\textwidth}{\paperwidth}
 \addtolength{\textwidth}{-\oddsidemargin}
 \addtolength{\textwidth}{-\evensidemargin}
 \setlength{\textheight}{\paperheight} %\addtolength{\textheight}{+2\topmargin}
 \addtolength{\textheight}{-\headheight}
 \addtolength{\textheight}{-\headsep}
 \@titlep{}
 \if@twoside \next@tpage\cleardoublepage \fi
 \if@declaration
 \@declarationp{}
 \fi
\end{titlepage}
}
\newcommand{\@titlep}{%
        \pagestyle{empty}%
        \null%\vskip1.5cm%
        \begin{center}
          {\bf\sffamily\Huge\color{sectcolor}\expandafter{\@uniname}}

        \ifx\empty\@logofile%
        \else%
\vskip1ex%
          \includegraphics{\@logofile}
\vskip1ex%
        \fi
          {\bf\sffamily\LARGE\color{sectcolor}\expandafter{\@abtname}}\\

          {\bf\sffamily\Large\color{sectcolor}\expandafter{\@deptname}}\\
          {\bf\sffamily\Large\color{sectcolor}\expandafter{\@profname}}
        \vskip10ex%
\parbox{\textwidth}{\hrulefill}\\[1.75ex]
                {\sffamily\Large\color{sectcolor}\uppercase\expandafter{\@title}}
\parbox{\textwidth}{\hrulefill}

    \ifx\@subject\@empty \else
        {\bf\sffamily\Large \@subject \par}
        \vskip 3em
    \fi
        \vfill

          {\bf\sffamily\LARGE\color{sectcolor} \expandafter{\@thesistype}}\\[2ex]
\sffamily \expandafter{\@obtaining}

        \vfill

                {\sffamily\normalsize \@presentedby\\
                \Large\color{sectcolor}\@author}%\\
\ifx\empty\@principaladviser%
\else
        \vskip0.5ex
{\centering
                \sffamily\normalsize \@advisedby\\
                \Large\color{sectcolor}\centering\@principaladviser\\[2.5ex]
}
\fi
         \vfill
           \@submitdatetown
        \end{center}
        \vskip0.5ex
        \newpage
}
\newcommand{\@declarationp}{
        \thispagestyle{empty}
  \begin{minipage}[t]{.95\textwidth}
    \@declarationtext\par
    \vspace*{3ex}
    \hfill\begin{tabular}{l@{}c}
      \@author,&\parbox{6cm}{\hrulefill}\\
      &\@sign\\
    \end{tabular}
  \end{minipage}
  \vfil
  \noindent
  \@Advisedby:\\
  \@principaladviser
  \if@twoside \next@tpage\cleardoublepage \fi
}
\providecommand*{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
\endinput
%%
%% End of file `fhACtitlepage.sty'.
