From 476c77e8f2c7b079bb9ee05b2af8184bd732a71a Mon Sep 17 00:00:00 2001 From: Jarko Papalitsas <jastpa@utu.fi> Date: Fri, 22 Apr 2022 10:39:08 +0300 Subject: [PATCH] New title page formatting, modifications to DTMMonth --- latex/utuftthesis.cls | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/latex/utuftthesis.cls b/latex/utuftthesis.cls index 7551202..3d33c6b 100644 --- a/latex/utuftthesis.cls +++ b/latex/utuftthesis.cls @@ -246,11 +246,9 @@ \RequirePackage{fvextra} % minted \RequirePackage{csquotes} % quotations - -\langfin{ - \RequirePackage[fi,en-US]{datetime2} % month names -}{ - \RequirePackage[en-US,fi]{datetime2} % month names +% Datetime must be loaded after babel/polyglossia but the DTMsave must be called early enough +\AtEndPreamble{ + \RequirePackage[useregional, calc]{datetime2} } @@ -312,8 +310,9 @@ %% @see http://ftp.acc.umu.se/mirror/CTAN/macros/latex/contrib/datetime2/datetime2.pdf %% note: for some languages (en), need to provide a macro such as %% DTM<language>Monthname -> DTM<language>monthname -\newcommand{\DTMenglishMonthname}[1]{\DTMenglishmonthname{#1}} -\newcommand{\monthname}[1]{\csname DTM#1Monthname\endcsname} +% Lines below were commented out as DTMMonthname macro should work as good +%\newcommand{\DTMenglishMonthname}[1]{\DTMenglishmonthname{#1}} +%\newcommand{\monthname}[1]{\csname DTM#1Monthname\endcsname} %% -- end of localization -- @@ -457,27 +456,27 @@ \vspace*{\stretch{1}} \vspace{3mm} \noindent - \rule{\linewidth}{1 mm} \renewcommand{\baselinestretch}{1.05}\normalsize - \begin{flushright} + \begin{center} \Huge{\@title} - \end{flushright} - \rule{\linewidth}{1 mm} + \end{center} \vspace*{\stretch{4}} \renewcommand{\baselinestretch}{1}\normalsize \begin{adjustbox}{minipage=65mm,right} - \thesistype{\l@nguage}\\ - \university{\l@nguage}\\ - \department{\l@nguage}\\ - \labname{\l@nguage}\\ - \ye@r\\ - \@author - \ifdefstring{\s@pervisors}{none}{}{\\ - \\ - \supervisorstext: - \expandafter\forcsvlist\expandafter\\\expandafter{\s@pervisors} + \begin{flushright} + \textsc{\university{\l@nguage}}\\ + \department{\l@nguage}\\ + \thesistype{\l@nguage}\\ + \labname{\l@nguage}\\ + \DTMMonthname{\m@nth} \ye@r \\ + \@author{}% + \ifdefstring{\s@pervisors}{none}{}{\break + \\ + \supervisorstext: + \expandafter\forcsvlist\expandafter\\\expandafter{\s@pervisors} } + \end{flushright} \end{adjustbox} \vspace*{\stretch{1}}% \ifutuftthesis@turnitinchecked @@ -486,9 +485,9 @@ \thispagestyle{empty} \vspace*{\stretch{1}} \else - \\ + \par \fi - \scriptsize \noindent{\turnitin} + \scriptsize \begin{center} \noindent{\turnitin} \end{center} \fi \end{titlepage} @@ -517,9 +516,10 @@ \thesistype{#1}, % \pagecounttext{#1} \\ \labname{#1} \\ - \monthname{#1}{\m@nth} \ye@r\\ + \DTMMonthname{\m@nth} \ye@r\\ \rule{\linewidth}{1 pt}% \setlength{\parindent}{0em}% + \setlength{\parskip}{1em}% \\ } -- GitLab