diff --git a/latex/utuftthesis.cls b/latex/utuftthesis.cls index 7551202d7006cb38cabbe4b5f57d180d7a0921c6..3d33c6bd5b28504a33095840b6889711d532649b 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}% \\ }