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
Branches
No related tags found
No related merge requests found
...@@ -50,8 +50,8 @@ Im Wurzelverzeichnis finden Sie ein \texttt{Makefile}. ...@@ -50,8 +50,8 @@ Im Wurzelverzeichnis finden Sie ein \texttt{Makefile}.
\section{Bilder und Co.} \section{Bilder und Co.}
\subsection{Bilder}% \subsection{Bilder}%
\label{sec:figures} \label{sec:figures}
\begin{figure}[h] \begin{figure}[h]
\includegraphics[width=4cm]{img/the.png} \includegraphics[width=4cm]{img/the.png}
\caption{Initial thesis draft.}% \caption{Initial thesis draft.}%
......
\NeedsTeXFormat{LaTeX2e} \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. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback.
\ProcessOptions\relax \ProcessOptions\relax
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
\RequirePackage{helvet} \RequirePackage{helvet}
\renewcommand{\familydefault}{\sfdefault} \renewcommand{\familydefault}{\sfdefault}
\pagestyle{headings}
\setlength{\textwidth}{15cm} \setlength{\textwidth}{15cm}
\setlength{\oddsidemargin}{35mm} \setlength{\oddsidemargin}{35mm}
...@@ -78,7 +80,7 @@ ...@@ -78,7 +80,7 @@
\RequirePackage{graphicx} \RequirePackage{graphicx}
\newcommand\@maketitle{% \newcommand{\@makeheader}{
%% "Header" %% "Header"
\vspace*{-5.5cm} \vspace*{-5.5cm}
\hspace{-1cm} \hspace{-1cm}
...@@ -99,7 +101,9 @@ ...@@ -99,7 +101,9 @@
{\scriptsize Universit\"atsstr. 1 \hspace{7mm} D--40225 D\"usseldorf} {\scriptsize Universit\"atsstr. 1 \hspace{7mm} D--40225 D\"usseldorf}
\end{center} \end{center}
\end{minipage} \end{minipage}
%% Actual title }
\newcommand\@maketitle{%
\vspace{3cm} \vspace{3cm}
\begin{center} \begin{center}
{\LARGE \textbf \@title \par}% {\LARGE \textbf \@title \par}%
...@@ -125,6 +129,7 @@ ...@@ -125,6 +129,7 @@
\let\footnote\thanks \let\footnote\thanks
\null\vfil \null\vfil
\vskip 60\p@ \vskip 60\p@
\@makeheader
\@maketitle \@maketitle
\@thanks \@thanks
\vfil\null \vfil\null
...@@ -147,6 +152,7 @@ ...@@ -147,6 +152,7 @@
} }
\else \else
\renewcommand\maketitle{\par \renewcommand\maketitle{\par
\@makeheader
\begingroup \begingroup
\renewcommand\thefootnote{\@fnsymbol\c@footnote}% \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
...@@ -319,3 +325,26 @@ ...@@ -319,3 +325,26 @@
\fi} \fi}
{\if@twocolumn\else\endquotation\fi} {\if@twocolumn\else\endquotation\fi}
\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 @@ ...@@ -169,37 +169,20 @@
\begin{document} \begin{document}
\frontmatter \frontmatter
\pagestyle{headings} %% Set up title page, declaration of authorship, abstract, acknowledgements
\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
\tableofcontents \tableofcontents
\cleardoublepage
\mainmatter \mainmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Der Inhalt der Arbeit %% %% 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} \input{contents.tex}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment