From 4d2cff7fc9fa96180e8e868e6b257e3ab0683be7 Mon Sep 17 00:00:00 2001 From: Jannik Dunkelau <jannik.dunkelau@hhu.de> Date: Mon, 28 Jun 2021 16:20:44 +0200 Subject: [PATCH] Add subtitle command --- hhuthesis.cls | 7 +++++++ thesis.tex | 1 + 2 files changed, 8 insertions(+) diff --git a/hhuthesis.cls b/hhuthesis.cls index 37a3a68..96acdb5 100644 --- a/hhuthesis.cls +++ b/hhuthesis.cls @@ -26,6 +26,9 @@ \newcommand{\subject}[1]{\renewcommand{\@subject}{#1}} \newcommand{\@subject}{Informatik} +\newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}} +\newcommand{\@subtitle}{} + %% Allows switching between colour and black/white printing \newif\ifprintblackwhite \printblackwhitefalse @@ -279,6 +282,10 @@ \vspace{3cm} \begin{center} {\fontfamily{\sfdefault}\selectfont \Huge \textbf \@title \par}% + \if\relax\detokenize{\@subtitle}\relax + \else + {\fontfamily{\sfdefault}\selectfont \huge \textbf \@subtitle \par}% + \fi% \vfill \begin{otherlanguage}{ngerman} {{\Large \@degree{}arbeit}\par diff --git a/thesis.tex b/thesis.tex index 0b9d394..afd477b 100644 --- a/thesis.tex +++ b/thesis.tex @@ -24,6 +24,7 @@ %% Der Titel der Arbeit \title{My Extraordinary Thesis} +% \subtitle{Usually not needed} %% Der zu erreichende Abschluss, entweder Bachelor oder Master \graduationtype{Bachelor} -- GitLab