Compare commits

...

16 Commits

Author SHA1 Message Date
fc90604094 moved Mastercroft improvements to main-dissertation and rudissertation.sty 2025-10-15 22:20:16 +00:00
f44b567332 Merge pull request #19 from Mastercroft/master
Copyright page update, about to be adjusted for 2025 updates
2025-10-15 22:07:38 +00:00
7e98217b76 Merge branch 'master' into master 2025-10-15 22:06:34 +00:00
77cc29a868 moved hyperref setup into hook begindocument/before 2025-10-15 21:58:51 +00:00
4252ee3b78 Merge pull request #22 from Mastercroft/Metadata
Suggested add: Metadata to pdf file
2025-10-15 21:45:35 +00:00
b1901c02be Merge branch 'master' into Metadata 2025-10-15 21:45:05 +00:00
e0c32da503 Switched to a placeholder logo with instructions to download 2025-10-15 18:59:12 +00:00
000abd9fee updating where to get RU logo (WIP) 2025-10-15 17:54:44 +00:00
04e3160248 MSc. formatting matches Ragna recommendations (I think) 2025-10-15 17:44:55 +00:00
5bb2f1efbe PhD split off formatting 2025-10-15 17:44:45 +00:00
Mastercroft
4d26da2d3a Adding metadata to pdf file 2023-03-16 12:37:36 +00:00
Hákon Örn
80f862b943 Merge pull request #1 from Mastercroft/Front-page
Orcidlink change and removing links to printers/paper
2023-03-16 11:58:39 +00:00
Mastercroft
e69b146bd8 Separating metadata from this branch. 2023-03-16 11:53:34 +00:00
Mastercroft
8b093bb572 Implemented changes and suggestions from @mkyas 2023-03-16 11:49:39 +00:00
Mastercroft
f689e293c1 Pdf metadata 2023-03-15 10:02:11 +00:00
Mastercroft
52aa342854 Copyright page update 2023-03-15 09:37:59 +00:00
7 changed files with 572 additions and 114 deletions

BIN
graphics/ru-logo.pdf Normal file

Binary file not shown.

84
graphics/ru-logo.svg Normal file
View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="51.588085mm"
height="51.588085mm"
viewBox="0 0 194.9786 194.97859"
version="1.1"
id="svg1"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
sodipodi:docname="ru-logo.svg"
inkscape:export-filename="ru-logo.pdf"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showguides="true"
inkscape:zoom="4.4979297"
inkscape:cx="97.266972"
inkscape:cy="97.489296"
inkscape:window-width="1920"
inkscape:window-height="1128"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-232.34182,-117.14594)">
<circle
style="fill:#ffaaaa;stroke:#ff5555;stroke-width:3.04703;stroke-dasharray:none"
id="path1"
cx="329.83112"
cy="214.63524"
r="95.965782" />
<text
xml:space="preserve"
style="text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:none;stroke:#000000;stroke-width:3.77953;stroke-dasharray:none"
x="353.2673"
y="238.07146"
id="text4"><tspan
sodipodi:role="line"
id="tspan4"
x="353.2673"
y="238.07146" /></text>
<text
xml:space="preserve"
style="text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:none;stroke:#000000;stroke-width:3.77953;stroke-dasharray:none"
x="329.78912"
y="203.67149"
id="text5"><tspan
sodipodi:role="line"
id="tspan5"
x="329.78912"
y="203.67149"
style="text-align:center;text-anchor:middle;fill:#000000;stroke:none">Get ru-logo.pdf</tspan><tspan
sodipodi:role="line"
x="329.78912"
y="218.67149"
style="text-align:center;text-anchor:middle;fill:#000000;stroke:none"
id="tspan6">from </tspan><tspan
sodipodi:role="line"
x="329.78912"
y="233.67149"
style="text-align:center;text-anchor:middle;fill:#000000;stroke:none"
id="tspan7">help.ru.is</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -31,15 +31,22 @@ Critical information: The current version of the template uses Lua\LaTeX{} for
{\em It will not work on PDF\LaTeX{} nor classic \LaTeX.}
On debian based systems, you will need to install the \verb|texlive-luatex| package.
\begin{itemize}
\begin{description}
\item [Overleaf Template:] \url{https://www.overleaf.com/latex/templates/reykjavik-university-project-report-and-thesis-template/fcwvcgnstrjs}
\item [Actively developed code:] \url{https://github.com/foleyj2/ru-thesis}
\item Current maintainers: Joseph Timothy Foley and Marcel Kyas.
Questions, comments, complaints should be submitted at \url{https://github.com/foleyj2/ru-thesis/issues}
\end{itemize}
\end{description}
\subsection{Frequently Asked Questions}
\begin{itemize}
\item {\em Why isn't there the RU logo on the front of the template on Overleaf/Git?}
The official cover for these documents is generated by the Reykjavik University department.
Putting the RU logo on GitHub or Overleaf's templates is incompatible with their licensing rules due to the font surrounding it, so we cannot legally include it.
A cropped version is available at RU Help \url{https://uthelp.refined.site/space/UKB/312279050/Final+Project+%2F+Thesis+%2F+Dissertation+Template}
Take this file and put it into the \path{graphics} folder and the logo should update.
The official source of the logo for print can be found at \url{https://hr.kreatives.is/wp-content/uploads/2021/12/HR_Logo_Colors_2017.pdf}
For Dissertations, see Section~\ref{sec:coverpage} about how to integrate the cover from Communications into your document.
\item {\em How do I use APA citations?}
The template is setup to use IEEE citations by default.
For those who want to use APA, you will need to adjust lines at the top of \path{main.tex}
@@ -49,25 +56,21 @@ On debian based systems, you will need to install the \verb|texlive-luatex| pack
As mentioned in the Abstract, this template was optimized for the B5 paper size so that it in print copy it has the same size as a standard textbook that fits on a standard bookshelf.
This size also has the benefit of being similar to an e-Reader screen.
\item {\em Why isn't there the RU logo on the front of the template on Overleaf/Git?}
The official cover for these documents is generated by the Reykjavik University department.
Putting the RU logo on GitHub or Overleaf's templates is incompatible with their licensing rules, so we cannot legally include it.
See Section~\ref{sec:coverpage} about how to integrate the cover with the RU logo into your document.
\item {\em My advisor doesn't like this format and asked me to change it.
What should I do?}
Please contact the head of Graduate Affairs in your Department about what is required in the thesis format and who determines the formatting.
What should I do?}
Please contact the head of Graduate Affairs in your Department about what is required in the thesis format and who determines the formatting.
The Reykjavik University library is officially in charge of the outside of the thesis and suggested templates.
\item {\em Why are there all these blank pages?}
In printed books, content in the main body of the book traditionally starts on the Right i.e. ``Recto'' side.
The template puts blank pages so that the Abstract, Table of Contents, and Chapters always start on the right side which may involve putting blank pages.
\item {\em I've been told to use a Word Template. Where is it?}
There is no officially supported MS Word Template as of 2024-10-23 as far as the authors know.
The template authors tested MS Word to see if could properly typeset according to standard practice and found it had insufficient enforcement of formatting and margins.
In addition, MS Word is unable to hyphenate Icelandic properly which results in very ugly typesetting.
If you need a WYSIWYG editor to generate an Icelandic document, we recommend OpenOffice or LibreOffice with the extension developed at University of Iceland: \url{https://extensions.openoffice.org/fr/project/icelandic-hyphenation-dictionary}
As of 2025-10-15, the RU Library has been working on an Word template for non-technical users.
The template authors tested MS Word to see if could properly typeset according to standard practice and found it had insufficient enforcement of formatting and margins.
In addition, MS Word is unable to hyphenate Icelandic properly which results in very ugly typesetting.
If you need a WYSIWYG editor to generate an Icelandic document, we recommend OpenOffice or LibreOffice with the extension developed at University of Iceland: \url{https://extensions.openoffice.org/fr/project/icelandic-hyphenation-dictionary}
The authors do not recommend using MS Word for any document that must be printed as a book\footnote{Publishers accept MS Word documents then pay people in Asia to extract the content and convert it into XML or LaTeX.}.

View File

@@ -74,7 +74,13 @@
%% TODO: get the official cover graphic and have the system fill in the fields for you
\maketitle{}
\disableindents{}%frontmatter material mostly doesn't need indents
\copyrightpage{}
\copyrightpage{RU Report Template}{0000-0000-0000-0000}{100}{ISBN 978-XXXX-XXXX-X-X (print version)\\
ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: RU Printing osf.}{Printed on 900g Cardboard paper}
% If this is a PhD, register for an ISSN and ISBN, then:
% \copyrightpage{<Short title>}{<ORCID>}{<total number of pages>}{ISBN 978-XXXX-XXXX-X-X (print version)\\
% ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: <Name of printer>}{Printed on <type of paper>}
% For submitting in Skemman the ISBN can be replaced with the url handle ( \url{http://hdl.handle.net/1946/xxxx} )
% Inside ruthesis.sty, the copyrightpage can be edited - there is an option to include a stamp/icon of the printer
% If this is a PhD, register for an ISSN and ISBN, then:
% \copyrightpage{ISSN xxxx-yyyy\\ISBN 978-xxxxxxxxxx\\\url{http://hdl.handle.net/1946/xxxx}\\}

View File

@@ -1,10 +1,7 @@
%%%% This is the general thesis/project report template for most users
%%%% Make sure you have lualatex installed!!! (package texlive-luaatex)
\documentclass[showtrims, b5paper]{rubook}
%% a4paper or b5paper: paper stock size.
%% If A4, show cut lines for the printer. If b5, no cut lines.
\documentclass[12pt, a4paper]{memoir}
\usepackage{ruthesis}%% RU Thesis formatting
%% What language is the document in?
%% English must always be available for biblatex/biber to work properly
%% If you are doing your thesis in Icelandic switch the order
@@ -26,8 +23,6 @@
\usepackage{biblatex-IS}%%loads Icelandic translations for things polyglossia missed
%%%%%% Packages and Macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{rusignaturepage}%enable this if you need \signaturepage{}
\usepackage{custom}
%% Commonly-used packages and macros are in custom.sty
%% Put any additional packages after this line
@@ -42,14 +37,14 @@
%% LaTeX will search from left to right in the list, so you can put "cropped" versions
%% in the graphics-cropped folder to speed up processing.
\PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links
\usepackage{hyperref}%This must be the last package loaded
%%%%%%%%%%%%%%%%%Information for the Title page %%%%%%%%%%%%%%%%%
\logo{graphics/ru-logo}%Get RU logo from help.ru.is at
% https://uthelp.refined.site/space/UKB/312279050/Final+Project+%2F+Thesis+%2F+Dissertation+Template
% and put it in the graphics folder
\title{Thesis and Project Report Template for \theInstitution{}}
\author{Joseph~T.~Foley and Marcel~Kyas}
\date{\today}%Generally this is set to the day of the defense
\date{November, 2025}%Generally this is set to the day of the defense
\publocation{Reykjavik, 2025}% Publisher info: Place, Year
%\DocumentInfo{TYPE}{ABBREVIATION}{DEGREE}{PROGRAM}{ECTS}{School/Department}
\DocumentInfo{Thesis}{M.Sc.}{Master of Science}{Mechatronics}{30}{Department of Engineering}
@@ -59,26 +54,19 @@
% Change \DocumentDescription if you need a custom title or if it needs to be in Icelandic
%% PhD only have Thesis Committee with roles. Examiner is part of committee.
\SupervisorHeading{Thesis Committee}
\Supervisors{
\personinfo{Superior A. Teacher}{Supervisor}{Professor}{Reykjavik University}{Iceland}
\personinfo{Helpful A. Teacher}{Co-advisor}{Assistant Professor}{University of Iceland}{Iceland}
\personinfo{Tough E. Questions}{Examiner}{Associate Professor}{Massachusetts Institute of Technology}{USA}
}
\SupervisorHeading{Supervisors}
\Supervisors{Superior A. Teacher, Ph.D. and Helpful A. Teacher, Ph.D.}
\ExaminerHeading{Examiner}
\Examiners{Tough E. Questions}
\hyphenation{Jo-seph Fo-ley}
% If you need to enforce hyphenation in English or Icelandic, put a space separated list in the hyphenation macro.
\begin{document}
%% TODO: get the official cover graphic and have the system fill in the fields for you
\maketitle{}
\disableindents{}%frontmatter material mostly doesn't need indents
\copyrightpage{}
%\signaturepage{} %Generally only for Print copies & now defunct in the Engineering department.
% If this is a PhD, register for an ISSN and ISBN, then:
% \copyrightpage{ISSN xxxx-yyyy\\ISBN 978-xxxxxxxxxx\\\url{http://hdl.handle.net/1946/xxxx}\\}
%\signaturepage{} %Generally only for Print copies and needs the rusignaturepage package
%\begin{dedications}% Optional
% I dedicate this to my spouse/child/pet/power animal.
@@ -95,20 +83,18 @@
%% This list demonstrates the "siunitx" package capabilities
\begin{tabular}{lll}\toprule
Symbol &Description &Value/Units\\\midrule
$E$ &Energy &\si{\joule}\\ %New function: \unit{} in Livetex 2021
$m$ &Mass &\si{\gram}\\ %New function: \unit{} in Livetex 2021
$E$ &Energy &\si{\joule}\\
$m$ &Mass &\si{\gram}\\
$c$ &Speed of Light &\SI{2.99E9}{\meter\per\square\second}\\\bottomrule
% New function: \qty{} in Livetex 2021
\end{tabular}
\enableindents{}% turn on/off paragraph indents
\newpage
\begin{abstract}
The goal of this template is to produce electronic output to be uploaded to Skemman that can be later printed out and bound into a professional looking textbook that fits on standard library shelves.
It is important to note that A4 paper when bound requires taller shelf spacing, so the B5 paper format was chosen instead.
When binding a book, the edges that face outward need to be very smooth to reduce contamination and dust from entering the book when it sits on a shelf; this is why traditionally a larger paper size is cut down to the book size.
If your print house expects the stock to be A4, then make sure the rubook has the ``a4paper'' option.
If they prefer to deal with preparation themselves from a B5 pdf, then the default ``b5paper'' option is correct.
In 2019, an attempt was made to unifiy the templates such that it was the same across the Bachelor's ``project report'', Master's ``thesis'', and Doctoral ``dissertation.''
In 2024, the Reykjavik University Library was given the authority and responsibility to determine the formatting of the template which we follow.
To best serve this new direction, the dissertation was moved to a separate file to be printed in B5 and the main template was revised to focus on A4 sized content.
The template is designed to work only with lualatex.
The abstract goes here in English or Icelandic.

337
rudissertation.sty Normal file
View File

@@ -0,0 +1,337 @@
%% ---------------------------------------------------------------------------------------------
%% LaTeX Base Package Reykjavík University PhD Dissertations,
%% ---------------------------------------------------------------------------------------------
%% Original Author: Bjórn Þór Jónsson (bjorn AT ru.is)
%% Refactored/Simplified on 2020-02-03: Joseph Timothy Foley <foley AT ru.is>
%% Questions, comments, complaints: latex@RU.IS
%% Created on 2020-02-03
%% This code is distributed under the MIT license
%% Details at LICENSE.md
%% --------------- Identification ----------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rudissertation}[2024/11/15 RU Thesis Formatting V3.2]
%% --------------- Option Processing--------------------------
%% The forcegraphics option renders graphics even in draft mode
\DeclareOption{forcegraphics}{%
\PassOptionsToPackage{final}{graphicx}
\PassOptionsToPackage{final}{pdfpages}
\PassOptionsToPackage{final}{hyperref}
%% add any other elements that should be included in draft
\finalifforcegraphics{graphicx}%We have to catch graphicx early
\typeout{rudissertation option: forcegraphics}%
}%
%%% Memoir test: Memoir Manual 21.2 p.367
%% Only works with the memoir class!!!!!!!!!!!!!!!
\@ifclassloaded{memoir}{\let\endrudissertation\relax}{\let\endrudissertation\endinput
\PackageError{rudissertation}{The rudissertation package only works with the memoir class}%
{\@ehd}}
\endrudissertation
%%---------------- Execution of Options -----------------------------
\ProcessOptions\relax% this stops searching for a * in \ProcessOptions*
%% Read page 20 of http://latex-project.org/guides/clsguide.pdf
%% carefully before modifying any of the execution and previous section.
%% ---------------- Package Loading -----------------------------
%% ---------------- Internationalization -----------------------------
% Font setup
% Standardized STIX2 fonts that print well, display on
% e-readers/screens clearly, and have compatible licensing
% requirements
% allows UTF encoding, needed for Icelandic and other accented characters
\RequirePackage{unicode-math}% loads STIX and math unicode characters
\setmathfont{STIX Two Math}
\setmainfont{STIX Two Text}[
Extension={.otf},
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]
%% ---------------- Graphics ------------------------------
\RequirePackage{graphicx}
%% GraphicsX converts and includes graphics intelligently which is needed for jpg, png, etc.
%% ---------------- URLs and Paths -----------------------------
\PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url}
\RequirePackage{xurl}
%% The xurl package typesets \url{} and unix file \path{} nicely.
%% Watch out that you leave a space after a last \ e.g. \path{C:\ }
%% Warning: allowmove makes URLs not-fragile, so they can go in things that move
%% If this breaks you will get very very weird errors
%% ---------------- Main Code -----------------------------
%% Remember that we can declare commands (to make fragile things safe)
%% The * form is for ``short'' commands, not longer than a paragraph
%% \DeclareRobustCommand{cmd}[num][default]{definition}
%% \DeclareRobustCommand*{cmd}[num][default]{definition}
%% For checking if commands are redefined
%% \CheckCommand{cmd}[num][default]{definition}
%% Comprehensive list of styles for memoir is in 7.2 (page 106)
%% If you need to adjust the style on the chapters, modify chapter
%% predefined styles:
%% empty: no header nor footer
%% plain: page num in bot center
%% simple: pagenum and marks on top outer edges
%\makeoddhead{chapter}{}{}{} %to change only one side
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%% 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}}
\aliaspagestyle{title}{empty}
\aliaspagestyle{titlinpage}{empty}
%% ----- COPYRIGHT PAGE -----------------------------------------------------------------------
\RequirePackage{ccicons}% need for copyright \textcopyright{}
\RequirePackage{orcidlink}
\PassOptionsToPackage{hidelinks, bookmarks=true, breaklinks=true}{hyperref}
\newcommand{\copyrightpage}[6]{
% actually in books, this is often on the left side
\begin{coverleft}
\begin{vplace}[1.0] % ratio of space above and below
\begin{flushleft}
\thetitle \\[\baselineskip]
Short title: #1\\
\theauthor\ \orcidlink{#2} (ORCID iD #2)\\[\baselineskip]
Copyright \textcopyright{} \the\year{} \ccbyncnd \\
\end{flushleft}
This work is licensed under the \href{http://creativecommons.org/licenses/by-nc-nd/4.0/}{Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License}.
You may copy and redistribute the material in any medium or format, provide appropriate credit, link to the license and indicate what changes you made.
You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
You may not use the material for commercial purposes.
If you remix, transform or build upon the material, you may not distribute the modified material.
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.
\end{vplace}
\begin{flushleft}
Bibliographic information:
\theauthor{}, \the\year{}, \textit{\thetitle{}}, \theDegreeAbbrv{} \theDocumentType{}, \theSchool{}, \theInstitution{}, #3 pp.\\
\vspace*{1\baselineskip}
#4 \\
\vspace*{1\baselineskip}
% \begin{figure}[h!]
% \includegraphics[scale=0.5]{graphics/Printer_Logo.svg}
% \end{figure}
#5\\
#6\\
\end{flushleft}
\vfill
\vspace*{2\baselineskip}
\end{coverleft}
\clearpage
}
%% ---------- Page Styles --------------------------------------------------------------
%% ---------------------------------------------------------------------------------------------
%% Setup the formatting at the beginning of the document (Front material)
%% See Memoir documentation, page 73
%%%%%%%%% PARAGRAPH ADJUSTMENTS %%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\savedparindent}
\newcommand{\disableindents}{\setlength{\parindent}{0pt}}
\newcommand{\enableindents}{\setlength{\parindent}{\savedparindent}}
\AtBeginDocument{
\frontmatter
\setlength{\savedparindent}{\parindent} % save the current parindent
\SingleSpacing%
}
%% Disable clearforchapter on formats that do not need blank pages
%\renewcommand{\clearforchapter}{\newpage}
% waste less blank pages in draft mode
% see p123 http://ctan.uib.no/macros/latex/contrib/memoir/memman.pdf
\newenvironment{cover}% commonalities for the cover material
{ \clearforchapter%
\thispagestyle{cover}%
\disableindents%
\SingleSpacing}%
{%\setlength{\TPMargin}{0mm} %% margins inside the textblock
%% I don't remember why we need to mess with \TPmargin
%% Might be OK to remove --foley
\enableindents{}}%
\newenvironment{coverleft}% material that must be on the even (back) side
{ \cleartoverso%
\thispagestyle{cover}%
\disableindents%
\SingleSpacing}%
{\enableindents{}}%
% \newenvironment{coveranyside}%This is material that can start on even or odd
% { \clearpage%
% \thispagestyle{cover}%
% \disableindents%
% \SingleSpacing}%
% {\enableindents{}}%
%% ----- DEDICATIONS ---------- ---------------------------------------------------------------
\newenvironment{dedications}{\begin{cover}\begin{vplace}[0.33]% ratio of space above and below
\begin{center}\em}
{\end{center}\normalfont\end{vplace}\end{cover}}
%%% Page styles Memoir Manual ch7.2 p109
\aliaspagestyle{book}{simple}
\aliaspagestyle{chapter}{plain}%At the beginning we want page numbers on chapters
\aliaspagestyle{cleared}{simple}
\aliaspagestyle{part}{empty}
\makepagestyle{plain}% Just page numbers in corners
\makeevenhead{plain}{\thepage}{}{}
\makeoddhead{plain}{}{}{\thepage}
\makepagestyle{cover}% The cover pages have no page numbers
\makeoddfoot{cover}{}{}{}
\makeevenfoot{cover}{}{}{}
\newcommand{\frontmatterhead}[1]{{%based upon \chapterhead from memman.pdf p.84
% \clearpage% move to correct page
\disableindents%
\thispagestyle{chapter} % set the page style
\insertchapterspace% space between previous and the title
\chapterheadstart%\beforchapskip space before heading
\printchaptertitle{#1}% title
\addcontentsline{toc}{chapter}{#1}
\afterchaptertitle% \afterchapskip space after title
}}
%%% Section numbering and the Table of Contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
\maxsecnumdepth{subsubsection} % default by \mainmatter in preamble
\maxtocdepth{subsubsection} % default by \mainmatter in preamble
%%% Code to include files if they exist
\newcommand{\InputIfExists}[1]{\IfFileExists{#1}{\input{#1}}{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TWEAKS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Some adjustments to float placement
\setcounter{topnumber}{5} \def\topfraction{1} \setcounter{bottomnumber}{4}
\def\bottomfraction{1} \setcounter{totalnumber}{10} \def\textfraction{0}
\def\floatpagefraction{.5}
%% Penalties for various text placement issues
%% They can cause strange paragraph spacing on some pages
%% Disabling for now --foley
%\clubpenalty=10000%% orphan lines
%\widowpenalty=10000%% widow lines
%\hfuzz=1pt%% avoid overfilled hboxes
%\vfuzz=5pt%% avoid overfilled vboxes
\raggedbottom{}
%% Vertical justification is the default.
%% This causes problems on some pages with figures or chapter headings
%% 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@rudissertation}{\item No Advisor}
\newcommand{\Supervisors}[1]{\renewcommand{\supervisors@rudissertation}[1]{#1}}
\newcommand{\supervisorheading@rudissertation}{Supervisor}
\newcommand{\SupervisorHeading}[1]{\renewcommand{\supervisorheading@rudissertation}{#1}}
\newcommand{\examiners@rudissertation}{\item No Examiner}
\newcommand{\Examiners}[1]{\renewcommand{\examiners@rudissertation}[1]{#1}}
\newcommand{\examinerheading@rudissertation}{Examiner}
\newcommand{\ExaminerHeading}[1]{\renewcommand{\examinerheading@rudissertation}{#1}}
\newcommand{\personinfo}[5]{
\item[] #1, #2\\#3, #4, #5 %Stub to be customized later
}
%% Clean up some formatting for the text
\renewcommand{\thepage}{\roman{page}}
%% Footnote adjustments. These are mostly unnecessary
% \let\footnoterule\relax \null % Turn off the footnote rule line
%\renewcommand{\thefootnote}{\scriptsize\arabic{footnote}} %to fix large footnote text errors in some documents
\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@rudissertation{}:
\begin{itemize}[label={}]\setlength\itemsep{\baselineskip}
\supervisors@rudissertation{}
\end{itemize}
}\vfill}
\renewenvironment{abstract}
{\begin{cover}{\centering%
{{\Large \thetitle}\\}%%
\vspace{\baselineskip}
\theauthor\\%
\vspace{\baselineskip}
\thedate\\%
}%
\enableindents{}
\textbf{Abstract}\par\vspace{1ex}}
{\par\end{cover}\newpage}
%%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%%
\AddToHook{beforedocument/before}{%
%% package hyperref needs to be last, so we use a hook
\PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links
\RequirePackage{hyperref}
\hypersetup{
pdfauthor = {\theauthor{}},
pdftitle = {\thetitle},
%pdfsubject = {Templates},
%pdfkeywords = {\theInstitution{}, Template, Thesis}
}
}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main-dissertation"
%%% TeX-engine: luatex
%%% End:

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,88 @@ 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 +179,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 +308,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 +319,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}
@@ -303,6 +333,18 @@ in this publication does not imply, even in the absence of a specific statement
{\par\end{cover}\newpage}
%%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%%
\AddToHook{beforedocument/before}{%
%% package hyperref needs to be last, so we use a hook
\PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links
\RequirePackage{hyperref}
\hypersetup{
pdfauthor = {\theauthor{}},
pdftitle = {\thetitle},
%pdfsubject = {Templates},
%pdfkeywords = {\theInstitution{}, Template, Thesis}
}
}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"