Skip to content
Snippets Groups Projects
Commit f5892788 authored by Jannik Dunkelau's avatar Jannik Dunkelau
Browse files

Move frontmatter stuff into \makefrontmatter command in hhuthesis.cls

parent 7f0cae79
No related branches found
No related tags found
No related merge requests found
......@@ -50,8 +50,8 @@ Im Wurzelverzeichnis finden Sie ein \texttt{Makefile}.
\section{Bilder und Co.}
\subsection{Bilder}%
\label{sec:figures}
\begin{figure}[h]
\includegraphics[width=4cm]{img/the.png}
\caption{Initial thesis draft.}%
......
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{hhuthesis}[2019/09/04 HHU Thesis LaTeX document class v1.0.0]
\ProvidesClass{hhuthesis}[2019/09/04 HHU Thesis LaTeX document class v1.1.0]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback.
\ProcessOptions\relax
......@@ -49,6 +49,8 @@
\RequirePackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\pagestyle{headings}
\setlength{\textwidth}{15cm}
\setlength{\oddsidemargin}{35mm}
......@@ -78,7 +80,7 @@
\RequirePackage{graphicx}
\newcommand\@maketitle{%
\newcommand{\@makeheader}{
%% "Header"
\vspace*{-5.5cm}
\hspace{-1cm}
......@@ -99,7 +101,9 @@
{\scriptsize Universit\"atsstr. 1 \hspace{7mm} D--40225 D\"usseldorf}
\end{center}
\end{minipage}
%% Actual title
}
\newcommand\@maketitle{%
\vspace{3cm}
\begin{center}
{\LARGE \textbf \@title \par}%
......@@ -125,6 +129,7 @@
\let\footnote\thanks
\null\vfil
\vskip 60\p@
\@makeheader
\@maketitle
\@thanks
\vfil\null
......@@ -147,6 +152,7 @@
}
\else
\renewcommand\maketitle{\par
\@makeheader
\begingroup
\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
......@@ -319,3 +325,26 @@
\fi}
{\if@twocolumn\else\endquotation\fi}
\fi
%%% Simple command to set up frontmatter
\newcommand{\makefrontmatter}{
\maketitle
\cleardoublepage
\makedeclaration % Declaration of Authorship
\cleardoublepage
\begin{abstract}
\input{abstract.tex}
\end{abstract}
\cleardoublepage
\ifacknowledgements % Only show if \showacknowledgements was set above
\begin{acknowledgements}
\input{acknowledgements.tex}
\end{acknowledgements}
\fi
\cleardoublepage
}
......@@ -169,37 +169,20 @@
\begin{document}
\frontmatter
\pagestyle{headings}
\maketitle
\cleardoublepage
\makedeclaration % Declaration of Authorship
\cleardoublepage
\begin{abstract}
\input{abstract.tex}
\end{abstract}
\cleardoublepage
\ifacknowledgements % Only show if \showacknowledgements was set above
\begin{acknowledgements}
\input{acknowledgements.tex}
\end{acknowledgements}
\fi
\cleardoublepage
%% Set up title page, declaration of authorship, abstract, acknowledgements
\makefrontmatter
\tableofcontents
\cleardoublepage
\mainmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Der Inhalt der Arbeit %%
%% %%
%% Hier können Sie die schriftliche Ausarbeitung ihrer Arbeit %%
%% niederschreiben. Der Übersichthalber bietet sich jedoch an, dies in einer %%
%% oder mehreren separaten Dateien zu tun, welche mittels \input eingebunden %%
%% werden --- wie auch in der Vorlage geschieht. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{contents.tex}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment