From 05a43eedfd75b3d8de6582f43ef32d3a0152955c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kristj=C3=A1n=20O=2E=20Ragnarsson?= Date: Fri, 10 Apr 2026 15:28:07 +0000 Subject: [PATCH] Support for subtitles Added etoolbox possibly can be removed --- main.tex | 1 + ruthesis.sty | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.tex b/main.tex index b94bc0a..2ea2a8a 100644 --- a/main.tex +++ b/main.tex @@ -39,6 +39,7 @@ %%%%%%%%%%%%%%%%%Information for the Title page %%%%%%%%%%%%%%%%% \title{Thesis and Project Report Template for \theInstitution{}} +\subtitle{subtitle allowed} \author{Joseph~T.~Foley and Marcel~Kyas} \date{November, 2025}%Generally this is set to the day of the defense \publocation{Reykjavik, 2025}% Publisher info: Place, Year diff --git a/ruthesis.sty b/ruthesis.sty index f1869bc..3c4319f 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -127,10 +127,11 @@ \rulogo{} \par\end{center}\vspace{0.7cm} } +\RequirePackage{etoolbox} %% TODO: investigate why bold isn't working on the title %\droptitle{}% length moves the title position up and down \pretitle{\begin{center}\bfseries\Huge} -\posttitle{\par\end{center}\vspace{1.55cm}} +\posttitle{\ifstrempty{\thesubtitle}{}{\\\normalfont{\LARGE \thesubtitle}}\par\end{center}\vspace{1.55cm}} \preauthor{\begin{center}\Large} \postauthor{\par\end{center}\vfill} \renewcommand{\maketitlehookc}{\begin{center}\textbf{\Large \theDegreeAbbrv{} \theDocumentType{} in \theProgram}\par\end{center}\vspace{1cm}} -- 2.43.0