MSc. formatting matches Ragna recommendations (I think)

This commit is contained in:
2025-10-15 17:44:55 +00:00
parent 5bb2f1efbe
commit 04e3160248
2 changed files with 108 additions and 89 deletions

View File

@@ -48,6 +48,13 @@ UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]
%% ---------------- Page and Margin Sizes -----------------------------
\setxlvchars{}\setlxvchars{}
\pageaiv{}
\setlrmarginsandblock{25.4mm}{25.4mm}{*}
\setulmarginsandblock{25.4mm}{25.4mm}{*}
\setpagecc{\paperheight}{\paperwidth}{*}%page area on middle center for cutting
\checkandfixthelayout% implement the margins if we weren't using canonic
%% ---------------- Graphics ------------------------------
\RequirePackage{graphicx}
@@ -77,34 +84,87 @@ BoldItalicFont={*-BoldItalic}]
%% simple: pagenum and marks on top outer edges
%\makeoddhead{chapter}{}{}{} %to change only one side
%% Information about Institution, Author, Degree, and Program
\newcommand{\thesubtitle}{\quad}
\newcommand{\theInstitution}{Reykjav\'{\i}k University}%
\newcommand{\theDocumentType}{Dissertation}
\newcommand{\theDegreeAbbrv}{Ph.D.}
\newcommand{\theDegreeLong}{Doctorate}
\newcommand{\theProgram}{\LaTeX{} Magic}
\newcommand{\theECTS}{30}
\newcommand{\theSchool}{School of Awesomeness}
\newcommand{\DocumentInfo}[6]{
\renewcommand{\theDocumentType}{#1}
\renewcommand{\theDegreeAbbrv}{#2}
\renewcommand{\theDegreeLong}{#3}
\renewcommand{\theProgram}{#4}
\renewcommand{\theECTS}{#5}
% ECTS Only applicable on BSc. and MSc.
% Leave blank
\renewcommand{\theSchool}{#6}
}
\newcommand{\subtitle}[1]{\renewcommand{\thesubtitle}{#1}}
\newcommand{\supervisors@ruthesis}{\item No Advisor}
\newcommand{\Supervisors}[1]{\renewcommand{\supervisors@ruthesis}[1]{#1}}
\newcommand{\supervisorheading@ruthesis}{Supervisor}
\newcommand{\SupervisorHeading}[1]{\renewcommand{\supervisorheading@ruthesis}{#1}}
\newcommand{\examiners@ruthesis}{\item No Examiner}
\newcommand{\Examiners}[1]{\renewcommand{\examiners@ruthesis}[1]{#1}}
\newcommand{\examinerheading@ruthesis}{Examiner}
\newcommand{\ExaminerHeading}[1]{\renewcommand{\examinerheading@ruthesis}{#1}}
\newcommand{\docdesc@ruthesis}{\theDocumentType{} of \theECTS{} ECTS credits
submitted to the \theSchool{} at \theInstitution{} in partial fulfillment
of the requirements for the degree of \theDegreeLong}
\newcommand{\DocumentDescription}[1]{\renewcommand{\docdesc@ruthesis}{#1}}%nop for now
\newcommand{\pubplaceyear@ruthesis}{Reykjavik, 2025}
\newcommand{\publocation}[1]{\renewcommand{\pubplaceyear@ruthesis}{#1}}
\newcommand{\logo@ruthesis}{graphics/smiley-logo}
\newcommand{\logo}[1]{\renewcommand{\logo@ruthesis}{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%% TITLE PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Memoir titlepage definition and info at p.64
\renewcommand{\pretitle}{\begin{center}}%
\renewcommand{\posttitle}{\par\end{center}}
% \renewcommand{\maketitlehookb}{\begin{center}\titletextfont{}by\end{center}\vspace{1mm}}
% 1mm adjustment to center the "by". I've disabled it because I think the "by" looks unprofessional.
\renewcommand{\preauthor}{\begin{center}\large\par}
\renewcommand{\postauthor}{\par\end{center}}
\newcommand{\titledetails}[1]{\renewcommand{\maketitlehookc}{#1}}
\renewcommand{\predate}{\begin{center}\large}
\renewcommand{\postdate}{\par\end{center}}
%% \title is ignoring formatting for reasons I don't understand
\renewcommand{\maketitlehooka}{
\begin{center}
\includegraphics[width=0.3\textwidth]{\logo@ruthesis}
\par\end{center}\vspace{0.7cm}
}
%% 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}}
\preauthor{\begin{center}\Large}
\postauthor{\par\end{center}\vfill}
\renewcommand{\maketitlehookc}{\begin{center}\textbf{\Large \theDegreeAbbrv{} \theDocumentType{} in \theProgram}\par\end{center}\vspace{1cm}}
\predate{\begin{center}\large Graduation }
\postdate{\par\end{center}\vspace*{0.4cm}}
\renewcommand{\maketitlehookd}{\begin{center}
\textbf{{\Large \theSchool}}\par\end{center}
}
\aliaspagestyle{title}{empty}
\aliaspagestyle{titlinpage}{empty}
%% ----- COPYRIGHT PAGE -----------------------------------------------------------------------
%% ----- Inside Cover is COPYRIGHT page-----------------------------------------------------------------------
\RequirePackage{ccicons}% need for copyright \textcopyright{}
\hyphenation{Non-Com-mercial}
\newcommand{\copyrightpage}[1]{
% actually in books, this is often on the left side
\begin{coverleft}
\begin{vplace}[1.0] % ratio of space above and below
\begin{coverleft}
\begin{vplace}[1.0] % ratio of space above and below
\setlength{\parskip}{\baselineskip}%without indents, we need blank line separators
\begin{flushleft}
#1
Copyright \textcopyright{} \the\year{} \theauthor{} \ccbyncnd{}
\end{flushleft}
\raggedright{}
{\Large \thetitle}\\\vspace{\baselineskip}
% Subtitle add later
\textbf{\supervisorheading@ruthesis:} \supervisors@ruthesis\par\\
\textbf{\examinerheading@ruthesis:} \examiners@ruthesis\par\vspace*{1.5cm}
Thesis of \theECTS{} ECTS credits submitted to the \theSchool{} at Reykjavik University
in partial fulfilment of the requirements for the degree of \theDegreeAbbrv{} in \theProgram{}.\par\vspace*{1.5cm}
Copyright \textcopyright{} \the\year{} \theauthor{} \ccbyncnd{}\\
This document is licensed under a Creative Commons Attribution 4.0 (CC BY-NC-SA) (\url{http://creativecommons.org/licenses/by-nc-nd/4.0/}) license.
However, this license does not cover the Reykjavik University logo (word- and figurative mark).
The Reykjavik University logo is a registered trademark and remains the intellectual property of Reykjavik University.
@@ -118,12 +178,30 @@ If you remix, transform or build upon the material, you may not distribute the m
The images or other third party material in this thesis are included in the book's Creative Commons license, unless indicated otherwise in a credit line to the material.
If material is not included in the book's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
The use of general descriptive names, registered names, trademarks, service marks, etc.
in this publication does not imply, even in the absence of a specific statement that such names are exempt from the relevant protective laws and regulations and therefore free for general use.
in this publication does not imply, even in the absence of a specific statement that such names are exempt from the relevant protective laws and regulations and therefore free for general use.\par
\pubplaceyear@ruthesis
\end{vplace}
\end{coverleft}
\clearpage
}
% %% names moved to inside cover
% % change \personinfo to make the entries needed
% % Because this is inside a command, we escape the #1 as ##1
% \renewcommand{\personinfo}[5]{\item[] ##1, ##2\\##3, ##4, ##5}
% % \setlength{\pltopsep}{0.5\baselineskip} % first/top space
% % \setlength{\plparsep}{0.5\baselineskip} % space between entries
% % \setlength{\plitemsep}{0.5\baselineskip} % space between lines
% \begin{itemize}[label={}]
% \item \supervisorheading@ruthesis{}:
% \begin{itemize}[label={}]\setlength\itemsep{\baselineskip}
% \supervisors@ruthesis{}
% \end{itemize}
% \end{itemize}
% }\vfill}
%% ---------- Page Styles --------------------------------------------------------------
%% ---------------------------------------------------------------------------------------------
%% Setup the formatting at the beginning of the document (Front material)
@@ -229,38 +307,6 @@ in this publication does not imply, even in the absence of a specific statement
%% Allowing ragged bottoms keeps the spacing consistent between paragraphs
%% Alternatively: \setlength{\parskip}{0pt}
%% Information about Institution, Author, Degree, and Program
\newcommand{\theInstitution}{Reykjav\'{\i}k University}%
\newcommand{\theDocumentType}{Dissertation}
\newcommand{\theDegreeAbbrv}{Ph.D.}
\newcommand{\theDegreeLong}{Doctorate}
\newcommand{\theProgram}{\LaTeX{} Magic}
\newcommand{\theECTS}{30}
\newcommand{\theSchool}{School of Awesomeness}
\newcommand{\DocumentInfo}[6]{
\renewcommand{\theDocumentType}{#1}
\renewcommand{\theDegreeAbbrv}{#2}
\renewcommand{\theDegreeLong}{#3}
\renewcommand{\theProgram}{#4}
\renewcommand{\theECTS}{#5}
% ECTS Only applicable on BSc. and MSc.
% Leave blank
\renewcommand{\theSchool}{#6}
}
\newcommand{\supervisors@ruthesis}{\item No Advisor}
\newcommand{\Supervisors}[1]{\renewcommand{\supervisors@ruthesis}[1]{#1}}
\newcommand{\supervisorheading@ruthesis}{Supervisor}
\newcommand{\SupervisorHeading}[1]{\renewcommand{\supervisorheading@ruthesis}{#1}}
\newcommand{\examiners@ruthesis}{\item No Examiner}
\newcommand{\Examiners}[1]{\renewcommand{\examiners@ruthesis}[1]{#1}}
\newcommand{\examinerheading@ruthesis}{Examiner}
\newcommand{\ExaminerHeading}[1]{\renewcommand{\examinerheading@ruthesis}{#1}}
\newcommand{\personinfo}[5]{
\item[] #1, #2\\#3, #4, #5 %Stub to be customized later
}
%% Clean up some formatting for the text
@@ -272,27 +318,10 @@ in this publication does not imply, even in the absence of a specific statement
\renewcommand{\bibname}{Bibliography} %Renaming the bibliography section (if omitted it will be named "references")
%% ----- INTERNAL TITLE PAGE WITH COMMITTEE ---------------------------------------------------
\newcommand{\DocumentDescription}[1]{\renewcommand{\maketitlehookc}{{\begin{center}#1\par\end{center}}}}
%% maketitlehookd is after the date
\renewcommand{\maketitlehookd}{{%
\vspace{2\baselineskip}
% change \personinfo to make the entries needed
% Because this is inside a command, we escape the #1 as ##1
\renewcommand{\personinfo}[5]{\item[] ##1, ##2\\##3, ##4, ##5}
% \setlength{\pltopsep}{0.5\baselineskip} % first/top space
% \setlength{\plparsep}{0.5\baselineskip} % space between entries
% \setlength{\plitemsep}{0.5\baselineskip} % space between lines
\supervisorheading@ruthesis{}:
\begin{itemize}[label={}]\setlength\itemsep{\baselineskip}
\supervisors@ruthesis{}
\end{itemize}
}\vfill}
\renewenvironment{abstract}
{\begin{cover}{\centering%
{{\Large \thetitle}\\}%%
{{\Large \@title}\\}%%
\vspace{\baselineskip}
\theauthor\\%
\vspace{\baselineskip}