Skip to content
Snippets Groups Projects

New title page formatting and changes to date formatter

Closed Jarko Papalitsas requested to merge new-titlepage into master
1 file
+ 24
24
Compare changes
  • Side-by-side
  • Inline
+ 24
24
@@ -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}%
\\
}
Loading