Compare commits
13 Commits
9aadaece9d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1646abd0b4 | |||
| c8006df8af | |||
| 862e748cf3 | |||
| 83020e0d9f | |||
| 8c0982b712 | |||
| acda0d1b45 | |||
| 6d241574e4 | |||
| 0c1b6634fc | |||
| 2bd7045d65 | |||
| 2afe7889cd | |||
| b5735f1315 | |||
| d2c5c5f6c3 | |||
| 32d7064454 |
3
delete-generatedfiles.sh
Executable file
3
delete-generatedfiles.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "deleting LaTeX generated files (except pdfs)"
|
||||||
|
rm *.aux *.bbl *.bcf *.blg *.fdb_latexmk *.fls *.idx *.ilg *.ind *.lof *.log *.lot *.lox *.out *.run.xml *.synctex.gz *.toc *.xdv
|
||||||
@@ -62,7 +62,7 @@ If you are writing a PhD dissertation, you will want to edit \path{main-disserta
|
|||||||
\item {\em How do I use APA citations?}
|
\item {\em How do I use APA citations?}
|
||||||
The template is setup to use IEEE citations by default.
|
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}
|
For those who want to use APA, you will need to adjust lines at the top of \path{main.tex}
|
||||||
See the comments in the file right after \verb|\usepackage[backend=biber,style=ieee]{biblatex}|
|
See the line: \verb|\usepackage[backend=biber,style=ieee]{biblatex}|
|
||||||
|
|
||||||
\item {\em Why does the margins and page size look weird?}
|
\item {\em Why does the margins and page size look weird?}
|
||||||
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.
|
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.
|
||||||
@@ -106,25 +106,17 @@ If you are writing a PhD dissertation, you will want to edit \path{main-disserta
|
|||||||
|
|
||||||
\section{Coverpage}\label{sec:coverpage}
|
\section{Coverpage}\label{sec:coverpage}
|
||||||
Reykjavik University's communications department insists on a common outer appearance of official printed documentation, which includes Doctoral Dissertations.
|
Reykjavik University's communications department insists on a common outer appearance of official printed documentation, which includes Doctoral Dissertations.
|
||||||
The library has been delegated the role of deciding what the non-printed student theses and project reports should look like.
|
The library has been delegated the role of deciding what the student theses and project reports should look like.
|
||||||
They have stated that since most never are printed, the focus should be on suitability for displaying on a screen and e-reader.
|
They have stated that since most never are printed, the focus should be on suitability for displaying on a screen and e-reader.
|
||||||
The current template in \path{main.tex} implements the cover page and copyright page that go on the inside.
|
The current template in \path{main.tex} implements the cover page and copyright page that go on the inside.
|
||||||
|
|
||||||
Doctoral students need to contact the RU Communications department for slightly different custom cover PDF before the document is to be published\footnote{The author highly suggests doing this 2 weeks before it is due.}.
|
Previously, doctoral students needed contact RU Communications for the outside cover that is printed on heavier paper and bound around the book.
|
||||||
This class supports the RU Communication's desire for the common appearance through the \texttt{rucover} package.
|
This is now included in the template \path{main-dissertation.tex} as of 2026-01-27.
|
||||||
Place \texttt{cover.pdf} into the same directory that you have your thesis' main file.
|
|
||||||
\LaTeX{} includes the file automatically if you add \verb|\usepackage{rucover}| to your preamble.
|
|
||||||
You can control the filename with \verb|\usepackage[filename=name.pdf]{rucover}|.
|
|
||||||
|
|
||||||
|
|
||||||
\section{Files and Directories/Folders}
|
\section{Files and Directories/Folders}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
%\item \path{cls/}: contains the \path{rureport.cls} template used to format these instructions.
|
|
||||||
\item \path{graphics/:} contains the graphics to generate this document.
|
\item \path{graphics/:} contains the graphics to generate this document.
|
||||||
%\item \path{covers/:} contains the official covers (from RU Communications) to be put on the outside of the finished book.
|
|
||||||
\item \path{IEEEtran/:} contains the IEEE citation style files
|
\item \path{IEEEtran/:} contains the IEEE citation style files
|
||||||
%\item \path{deadlines.xlsx}: A deadline calculator that uses the semester's
|
|
||||||
%graduation date
|
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
\section{Limited Access}
|
\section{Limited Access}
|
||||||
@@ -152,10 +144,10 @@ The general submission sequence is:
|
|||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item Defense complete, minor corrections complete after X days of work.
|
\item Defense complete, minor corrections complete after X days of work.
|
||||||
\item Save the completed thesis text as \path{main.pdf}
|
\item Save the completed thesis text as \path{main.pdf}
|
||||||
%\item Get signature pages signed by supervisor(s) and examiner.
|
\item PhD: Get signature pages signed by supervisor(s) and examiner on physical copies.
|
||||||
%\item Sign the library release page.
|
%\item Sign the library release page.
|
||||||
%\item Scan the pages in, put them into the document in the appropriate places.
|
%\item Scan the pages in, put them into the document in the appropriate places.
|
||||||
\item Open the official cover files in \path{cover}, fill in the appropriate fields, and save as a \path{cover.pdf}
|
%\item Open the official cover files in \path{cover}, fill in the appropriate fields, and save as a \path{cover.pdf}
|
||||||
% \item Use a PDF binding tool such as PDFsam \url{https://pdfsam.org} to putthe cover before the first page and save as \path{thesis.pdf}
|
% \item Use a PDF binding tool such as PDFsam \url{https://pdfsam.org} to putthe cover before the first page and save as \path{thesis.pdf}
|
||||||
\item Upload the finished \path{main.pdf} to Skemman.
|
\item Upload the finished \path{main.pdf} to Skemman.
|
||||||
\item An autogenerated email is sent from Skemman.
|
\item An autogenerated email is sent from Skemman.
|
||||||
@@ -171,26 +163,27 @@ Some information is at the top of \path{main.tex} file, this file is for a gener
|
|||||||
\subsection{Preparation}
|
\subsection{Preparation}
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item Find a safe place to work on your thesis document.
|
\item Find a safe place to work on your thesis document.
|
||||||
The author recommends Git on Overleaf, but anywhere data is backed up is a appropriate.
|
The author recommends Overleaf with the git integration\footnote{So you have a copy locally on your computer with all of its history}, but anywhere data is backed up is a appropriate.
|
||||||
If you are working with sensitive information, you should avoid bitbucket, google drive, dropbox, and any other free cloud service.
|
|
||||||
If you think this is unnecessary, just consider how much time you will lose if your computer crashes.
|
If you think this is unnecessary, just consider how much time you will lose if your computer crashes.
|
||||||
Due to Murphy's law, this is likely to happen just before your thesis is due\footnote{This has happened many times.}.
|
Due to Murphy's law, this is likely to happen just before your thesis is due\footnote{This has happened many times.}.
|
||||||
|
If you are working with sensitive information, you should avoid bitbucket, google drive, dropbox, and any other free cloud service.
|
||||||
|
|
||||||
\item Get a LaTeX installation.
|
\item Get a LaTeX installation.
|
||||||
We recommend TeXlive \url{https://www.tug.org/texlive/}
|
We recommend TeXlive \url{https://www.tug.org/texlive/} in general.
|
||||||
For this template on windows, MiKTeX will also work, but will run very slowly the first time you render the template.
|
You will need to figure out which packages you need or just install the whole distribution which is around 6~GB.
|
||||||
{\em As of September 2024, both MikTeX and TexLive did not want to install properly on the author's Windows 11 computer.}
|
|
||||||
You will need to enable the ``miktex'' option in the template to substitute packages.
|
If you wish to install packages as needed, you can use MiKTeX \url{https://miktex.org} by Christian Schenk which exists for Windows, Linux, and Mac.
|
||||||
|
MiKTeX will run very slowly the first time you render the template.
|
||||||
It is very very important that you run the ``MikTeX Update Wizard'' before you start.
|
It is very very important that you run the ``MikTeX Update Wizard'' before you start.
|
||||||
Otherwise you may get errors when you try to build the document.
|
Otherwise you may get errors when you try to build the document.
|
||||||
|
A Mac-focused installer can be found at MacTeX \url{https://tug.org/mactex}
|
||||||
|
|
||||||
Under Apple iOS and linux this is the TexLive series of packages.
|
|
||||||
Linux distributions name the packages differently.
|
Linux distributions name the packages differently.
|
||||||
The author's recommendations for RedHat distributions such as Redhat Enterprise Linux, Centos, Fedora are in Listing~\ref{code:texlive-redhat}.
|
The author's recommendations for RedHat distributions such as Redhat Enterprise Linux, Centos, Fedora are in Listing~\ref{code:texlive-redhat}.
|
||||||
Debian-based distributions including Ubuntu and PopOS would use the packages in Listing~\ref{code:texlive-debian}.
|
Debian-based distributions including Ubuntu and PopOS would use the packages in Listing~\ref{code:texlive-debian}.
|
||||||
|
|
||||||
\begin{lstlisting}[caption={RedHat Packages},label={code:texlive-redhat}]
|
\begin{lstlisting}[caption={RedHat Packages},label={code:texlive-redhat}]
|
||||||
sudo dnf -y install texlive-scheme-medium texlive-collection-{fontsrecommended,luatex,latexrecommended} texlive-biblatex-{apa,apa-doc,ieee,ieee-doc} texlive-{amsfonts,amsmath,canoniclayout,ccicons,eepic,gitinfo2,fixme,makeglos,nomencl,orcidlink,lastpage,lipsum,listings,ltxkeys,pgf,pseudocode,stix2-otf,stix2-type1,siunitx,xurl}
|
sudo dnf -y install texlive-scheme-medium texlive-collection-{fontsrecommended,luatex,latexrecommended} texlive-biblatex-{apa,apa-doc,ieee,ieee-doc} texlive-{amsfonts,amsmath,babel-latin,canoniclayout,ccicons,eepic,gitinfo2,fixme,makeglos,nomencl,orcidlink,lastpage,lipsum,listings,ltxkeys,pgf,pseudocode,stix2-otf,stix2-type1,siunitx,xurl}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
\begin{lstlisting}[caption={Debian/Ubuntu Packages},label={code:texlive-debian}]
|
\begin{lstlisting}[caption={Debian/Ubuntu Packages},label={code:texlive-debian}]
|
||||||
sudo apt-get -y install texlive texlive-luatex texlive-latex-extra texlive-science texlive-generic-extra texlive-lang-european texlive-lang-german latex-xcolor texlive-pictures pgf texlive-bibtex-extra texlive-publishers chktex evince fonts-lmodern lmodern biber
|
sudo apt-get -y install texlive texlive-luatex texlive-latex-extra texlive-science texlive-generic-extra texlive-lang-european texlive-lang-german latex-xcolor texlive-pictures pgf texlive-bibtex-extra texlive-publishers chktex evince fonts-lmodern lmodern biber
|
||||||
|
|||||||
@@ -42,14 +42,15 @@ This image will scale according to the width of the text on the page.
|
|||||||
There is a helpful list of squared numbers in Table~\ref{tab:numbers}.
|
There is a helpful list of squared numbers in Table~\ref{tab:numbers}.
|
||||||
This table is formatted in the style of a book, which is very differerent than the style one is used to in Excel.
|
This table is formatted in the style of a book, which is very differerent than the style one is used to in Excel.
|
||||||
|
|
||||||
The test text ``Lorem Ipsum''\index{Lorem Ipsum} is from an ancient text from 45 B.C. \cite{cicero46deFinibus, lipsomwebsite}\\
|
|
||||||
\lipsum[1-5]
|
|
||||||
\subsection{Subsection}
|
\subsection{Subsection}
|
||||||
\lipsum[6-10]
|
Some text
|
||||||
|
|
||||||
\subsubsection{SubSubsection}
|
\subsubsection{SubSubsection}
|
||||||
\lipsum[11-15]
|
Even more text
|
||||||
|
|
||||||
\section[Section with an extremely long name]{Section with a very very very very very very very very very very very very very very very very very very very very long name}
|
\section[Section with an extremely long name]{Section with a very very very very very very very very very very very very very very very very very very very very long name}
|
||||||
\lipsum[11-18]
|
Lots and lots of text!
|
||||||
|
I took out the Lore Ipsum because of the latin confusing polyglossia and biblatex.
|
||||||
|
|
||||||
%%% Local Variables:
|
%%% Local Variables:
|
||||||
%%% mode: latex
|
%%% mode: latex
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
%%%% This template is for Dissertations (PhD)
|
%%%% This template is for Dissertations (PhD)
|
||||||
%%%% Make sure you have lualatex installed!!! (package texlive-luaatex)
|
%%%% Make sure you have lualatex installed!!! (package texlive-luaatex)
|
||||||
\documentclass[showtrims, b5paper]{rubook}
|
\documentclass[showtrims,b5paper]{rubook}
|
||||||
%% a4paper or b5paper: paper stock size.
|
%% a4paper or b5paper: paper stock size.
|
||||||
%% If A4, show cut lines for the printer. If b5, no cut lines.
|
%% If A4, show cut lines for the printer. If b5, no cut lines.
|
||||||
\usepackage{rudissertation}%% RU PhD Dissertation formatting
|
\usepackage{rudissertation}%% RU PhD Dissertation formatting
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
\usepackage{polyglossia}
|
\usepackage{polyglossia}
|
||||||
\setdefaultlanguage{english}
|
\setdefaultlanguage{english}
|
||||||
\setotherlanguage{icelandic}
|
\setotherlanguage{icelandic}
|
||||||
|
|
||||||
%%% Setup citations: pick one format
|
%%% Setup citations: pick one format
|
||||||
%% IEEE Format
|
%% IEEE Format
|
||||||
\usepackage[backend=biber,style=ieee]{biblatex}
|
\usepackage[backend=biber,style=ieee]{biblatex}
|
||||||
@@ -54,9 +53,11 @@
|
|||||||
%\DocumentInfo{TYPE}{ABBREVIATION}{DEGREE}{PROGRAM}{ECTS}{School/Department}
|
%\DocumentInfo{TYPE}{ABBREVIATION}{DEGREE}{PROGRAM}{ECTS}{School/Department}
|
||||||
\DocumentInfo{Dissertation}{Ph.D.}{Doctor of Science}{Mechanical Engineering}{XX}{Department of Engineering}
|
\DocumentInfo{Dissertation}{Ph.D.}{Doctor of Science}{Mechanical Engineering}{XX}{Department of Engineering}
|
||||||
\DocumentDescription{\theDocumentType{} of \theECTS{} ECTS credits
|
\DocumentDescription{\theDocumentType{} of \theECTS{} ECTS credits
|
||||||
submitted to the \theSchool{} at \theInstitution{} in partial fulfillment
|
submitted to the \theSchool{} at \theInstitution{} in partial fulfillment
|
||||||
of the requirements for the degree of \theDegreeLong}
|
of the requirements for the degree of \theDegreeLong}
|
||||||
% Change \DocumentDescription if you need a custom title or if it needs to be in Icelandic
|
% Change \DocumentDescription if you need a custom title or if it needs to be in Icelandic
|
||||||
|
\bookissn{ISSN XXXX-XXXX}%You need to register for an ISSN to publish a Dissertation
|
||||||
|
|
||||||
|
|
||||||
%% PhD only have Thesis Committee with roles. Examiner is part of committee.
|
%% PhD only have Thesis Committee with roles. Examiner is part of committee.
|
||||||
\SupervisorHeading{Thesis Committee}
|
\SupervisorHeading{Thesis Committee}
|
||||||
@@ -71,10 +72,13 @@
|
|||||||
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\printedcover{}
|
|
||||||
|
\printedcover{\thetitle}%Cover title (in case you have to adjust formatting)
|
||||||
\maketitle{}
|
\maketitle{}
|
||||||
|
|
||||||
\disableindents{}%frontmatter material mostly doesn't need indents
|
\disableindents{}%frontmatter material mostly doesn't need indents
|
||||||
\copyrightpage{RU Report Template}{0000-0000-0000-0000}{100}{ISBN 978-XXXX-XXXX-X-X (print version)\\
|
|
||||||
|
\copyrightpage{\thetitle}{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}
|
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:
|
% 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)\\
|
% \copyrightpage{<Short title>}{<ORCID>}{<total number of pages>}{ISBN 978-XXXX-XXXX-X-X (print version)\\
|
||||||
@@ -82,11 +86,7 @@ ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: RU Printing osf.}{Printed
|
|||||||
% For submitting in Skemman the ISBN can be replaced with the url handle ( \url{http://hdl.handle.net/1946/xxxx} )
|
% 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
|
% 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:
|
% \begin{dedications}% Optional
|
||||||
% \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.
|
% I dedicate this to my spouse/child/pet/power animal.
|
||||||
%\end{dedications}
|
%\end{dedications}
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ It is likely to save you a lot of frustration and errors.
|
|||||||
%% Index, optional. A good idea on longer documents
|
%% Index, optional. A good idea on longer documents
|
||||||
\clearforchapter{}
|
\clearforchapter{}
|
||||||
\printindex{}%%RUM: Not mentioned
|
\printindex{}%%RUM: Not mentioned
|
||||||
|
\backcover{}
|
||||||
\end{document}
|
\end{document}
|
||||||
%%% Local Variables:
|
%%% Local Variables:
|
||||||
%%% mode: latex
|
%%% mode: latex
|
||||||
|
|||||||
1
main.tex
1
main.tex
@@ -8,7 +8,6 @@
|
|||||||
\usepackage{polyglossia}
|
\usepackage{polyglossia}
|
||||||
\setdefaultlanguage{english}
|
\setdefaultlanguage{english}
|
||||||
\setotherlanguage{icelandic}
|
\setotherlanguage{icelandic}
|
||||||
|
|
||||||
%%% Setup citations: pick one format
|
%%% Setup citations: pick one format
|
||||||
%% IEEE Format
|
%% IEEE Format
|
||||||
\usepackage[backend=biber,style=ieee]{biblatex}
|
\usepackage[backend=biber,style=ieee]{biblatex}
|
||||||
|
|||||||
@@ -73,21 +73,47 @@
|
|||||||
%\makeoddhead{chapter}{}{}{} %to change only one side
|
%\makeoddhead{chapter}{}{}{} %to change only one side
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%% COVER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%% Information about Institution, Author, Degree, and Program
|
||||||
\newenvironment{printcover}%Never put a number
|
\newcommand{\theInstitution}{Reykjav\'{\i}k University}%
|
||||||
{\thispagestyle{empty}%
|
\newcommand{\theInstitutionAddress}{Menntavegur 1\\102 Reykjav\'{\i}k\\Iceland}
|
||||||
\pagestyle{empty}%
|
\newcommand{\theInstitutionPhone}{+354-599-6200}
|
||||||
\thispagestyle{empty}%
|
\newcommand{\theInstitutionURL}{www.ru.is}
|
||||||
\clearforchapter% clear to chapter setting
|
\newcommand{\theDocumentType}{Dissertation}
|
||||||
\disableindents%
|
\newcommand{\theDegreeAbbrv}{Ph.D.}
|
||||||
\titletextfont\SingleSpacing}%
|
\newcommand{\theDegreeLong}{Doctorate}
|
||||||
{\setlength{\TPMargin}{0mm} %% margins inside the textblock
|
\newcommand{\theProgram}{\LaTeX{} Magic}
|
||||||
\enableindents{}\newpage}%
|
\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{\theISSN}{XXXX-XXXX}
|
||||||
|
\newcommand{\bookissn}[1]{\renewcommand{\theISSN}{#1}}
|
||||||
|
|
||||||
|
\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
|
||||||
|
}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%% COVER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\RequirePackage{calc}%arithmetic in commands like lengths
|
\RequirePackage{calc}%arithmetic in commands like lengths
|
||||||
%\RequirePackage{printlen}% display lengths in arbitrary units
|
%\RequirePackage{printlen}% display lengths in arbitrary units
|
||||||
\RequirePackage[absolute, verbose]{textpos}
|
\RequirePackage[absolute, verbose]{textpos}%option: showboxes
|
||||||
% option: showboxes for placement
|
|
||||||
\RequirePackage{xcolor}
|
\RequirePackage{xcolor}
|
||||||
\definecolor{rugray}{rgb}{0.2,0.2,0.2}
|
\definecolor{rugray}{rgb}{0.2,0.2,0.2}
|
||||||
\definecolor{rured}{rgb}{0.84,0.10,0.13}
|
\definecolor{rured}{rgb}{0.84,0.10,0.13}
|
||||||
@@ -96,63 +122,80 @@
|
|||||||
%% These commands set the units in \begin{textblock} when not
|
%% These commands set the units in \begin{textblock} when not
|
||||||
%% directly specified
|
%% directly specified
|
||||||
%% We set them to the page sizes so we can align from them
|
%% We set them to the page sizes so we can align from them
|
||||||
\setlength{\TPHorizModule}{\stockwidth}
|
\setlength{\TPHorizModule}{\paperwidth}
|
||||||
\setlength{\TPVertModule}{\stockheight}
|
\setlength{\TPVertModule}{\paperheight}
|
||||||
%\setlength{\TPMargin}{2mm} %% margins inside the textblock*
|
|
||||||
\textblockorigin{0mm}{0mm} % start everything near the top-left corner
|
\textblockorigin{0mm}{0mm} % start everything near the top-left corner
|
||||||
\newlength{\pagecenterx}%
|
\newlength{\pagecenterx}%
|
||||||
\setlength{\pagecenterx}{\stockwidth/2}
|
\setlength{\pagecenterx}{\paperwidth/2}
|
||||||
\newlength{\pagecentery}
|
\newlength{\pagecentery}
|
||||||
\setlength{\pagecentery}{\stockheight/2}
|
\setlength{\pagecentery}{\paperheight/2}
|
||||||
\newlength{\covernowinmarginl}
|
\newlength{\printcoverlmargin}
|
||||||
\setlength{\covernowinmarginl}{30mm}
|
\setlength{\printcoverlmargin}{25mm}
|
||||||
%% Helvetics in package helvet, family code phv
|
%% Helvetics in package helvet, family code phv
|
||||||
\RequirePackage{helvet}
|
\RequirePackage{helvet}
|
||||||
\newfontfamily\phdcoverfont{Nimbus Sans}
|
\newfontfamily\phdcoverfont{Nimbus Sans}
|
||||||
% \def\frontcovertitlefont{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\selectfont}
|
|
||||||
\def\frontcovertitlefont{\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\phdcoverfont}
|
\def\frontcovertitlefont{\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\phdcoverfont}
|
||||||
% \def\frontcovertitletext{\fontfamily{phv}\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\selectfont}
|
\def\frontcovertitletextfont{\fontseries{m}\fontshape{n}\fontsize{14}{18}\phdcoverfont}%extra line space
|
||||||
\def\frontcovertitletextfont{\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\phdcoverfont}
|
|
||||||
\def\titletitlefont{\fontseries{b}\fontsize{17pt}{20pt}\phdcoverfont}
|
\def\titletitlefont{\fontseries{b}\fontsize{17pt}{20pt}\phdcoverfont}
|
||||||
\def\titletextfont{\fontsize{14pt}{16pt}\phdcoverfont}
|
\def\titletextfont{\fontsize{14pt}{16pt}\phdcoverfont}
|
||||||
\def\titleinfofont{\fontsize{12}{14}\phdcoverfont}
|
\def\titleinfofont{\fontsize{12}{14}\phdcoverfont}
|
||||||
|
|
||||||
%% ----- PRINTED FRONT COVER ----------------------------------------------------------
|
%% ----- PRINTED FRONT COVER ----------------------------------------------------------
|
||||||
%% This cover will be on the outside (not with window)
|
%% This cover will be on the outside (not with window)
|
||||||
\newcommand{\printedcover}[2]{
|
\newcommand{\printedcover}[1]{%
|
||||||
\thispagestyle{empty}
|
\pagestyle{empty}\thispagestyle{empty}\SingleSpacing%
|
||||||
\setlength{\TPMargin}{0mm} %% margins inside the textblock*
|
\sffamily%
|
||||||
\sffamily
|
\disableindents\titletextfont\SingleSpacing%
|
||||||
\begin{textblock*}{\textwidth}[0,0](30mm,30mm)%
|
\begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,60mm)%%% Place logo in center of paper
|
||||||
{\rulogo{}}%
|
\begin{center}\rulogo{}\end{center}%
|
||||||
\end{textblock*}
|
|
||||||
%
|
|
||||||
\setSingleSpace{1.8}\SingleSpacing%
|
|
||||||
\begin{textblock*}{\textwidth}[0,0](30mm,110mm)%
|
|
||||||
\noindent\textcolor{rugray}{\frontcovertitlefont#1}\par%UPPERCASE
|
|
||||||
\end{textblock*}%
|
\end{textblock*}%
|
||||||
%
|
\begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,140mm)%
|
||||||
\setSingleSpace{1.5}\SingleSpacing%
|
\raggedright\textcolor{rugray}{\frontcovertitlefont#1}%title
|
||||||
\begin{textblock*}{\textwidth}[0,0](30mm,225mm)%
|
\end{textblock*}%
|
||||||
\noindent\textcolor{rugray}{
|
\begin{textblock*}{\textwidth}[0,1](\printcoverlmargin,\paperheight+\trimtop-15mm)%
|
||||||
\frontcovertitletextfont\textbf{\theauthor}\\%
|
{\color{rugray}%
|
||||||
\theDegreeLong\\%
|
\setlength{\parskip}{0pt}%
|
||||||
\thedate\\%
|
\frontcovertitletextfont\textbf{\theauthor}\par
|
||||||
\theSchool\\%
|
\theDegreeLong\par
|
||||||
\theInstitution
|
\thedate\par
|
||||||
}\par
|
\theSchool\par
|
||||||
\vspace*{5mm}
|
\theInstitution\par}%
|
||||||
\noindent\textcolor{rured}{
|
\vspace*{\baselineskip}%
|
||||||
\frontcovertitlefont\theDocumentType{}
|
{\color{rured}\frontcovertitlefont\theDegreeAbbrv{}~\theDocumentType}\par%
|
||||||
}\par
|
\vspace*{\baselineskip}%
|
||||||
\vspace*{3mm}
|
\color{rugray}\frontcovertitletextfont\scriptsize\theISSN\par%ISSN
|
||||||
{\noindent\scriptsize\color{rugray}#2}%
|
\end{textblock*}
|
||||||
\end{textblock*}
|
\rmfamily\quad%need empty text show that it is a page
|
||||||
\setSingleSpace{1.0}
|
\enableindents{}
|
||||||
\newpage\quad%% I am not sure why we must put this to ensure that the covers don't overlap
|
\newpage
|
||||||
\newpage % without this, page numbers show up. Weird.
|
|
||||||
%% TODO: isolate font and spacing changes from the rest of the document
|
%% TODO: isolate font and spacing changes from the rest of the document
|
||||||
}
|
}
|
||||||
|
%% This command makes the back-cover materials
|
||||||
|
\newcommand{\backcover}{%
|
||||||
|
\thispagestyle{empty}%
|
||||||
|
\pagestyle{empty}%
|
||||||
|
\cleartoevenpage{}% clear to chapter setting
|
||||||
|
\disableindents%
|
||||||
|
\quad%ensure page has content
|
||||||
|
\begin{textblock*}{\textwidth}[0,1](\printcoverlmargin,\paperheight+\trimtop-35mm)%
|
||||||
|
\titleinfofont\SingleSpacing%
|
||||||
|
% \vplace[0.8]{
|
||||||
|
\begin{tabular}{ll}
|
||||||
|
\rulogo{}&
|
||||||
|
\begin{minipage}[b]{10cm}%
|
||||||
|
{\titletextfont\color{rugray}%
|
||||||
|
\theSchool\par
|
||||||
|
\theInstitution\par
|
||||||
|
\theInstitutionAddress\par
|
||||||
|
\theInstitutionPhone\par
|
||||||
|
\theInstitutionURL\par
|
||||||
|
\theISSN\par
|
||||||
|
}
|
||||||
|
\end{minipage}\\%
|
||||||
|
\end{tabular}
|
||||||
|
\enableindents{}%
|
||||||
|
\end{textblock*}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -179,11 +222,12 @@
|
|||||||
\newcommand{\copyrightpage}[6]{
|
\newcommand{\copyrightpage}[6]{
|
||||||
% actually in books, this is often on the left side
|
% actually in books, this is often on the left side
|
||||||
\begin{coverleft}
|
\begin{coverleft}
|
||||||
\begin{vplace}[1.0] % ratio of space above and below
|
\setlength{\parskip}{\baselineskip}%without indents, we need blank line separators
|
||||||
|
%\begin{vplace}[1.0] % ratio of space above and below
|
||||||
\begin{flushleft}
|
\begin{flushleft}
|
||||||
\thetitle \\[\baselineskip]
|
\thetitle \\[\baselineskip]
|
||||||
Short title: #1\\
|
Short title: #1\\
|
||||||
\theauthor\ \orcidlink{#2} (ORCID iD #2)\\[\baselineskip]
|
\theauthor\ \orcidlink{#2} (ORCID iD #2)\\
|
||||||
Copyright \textcopyright{} \the\year{} \ccbyncnd \\
|
Copyright \textcopyright{} \the\year{} \ccbyncnd \\
|
||||||
\end{flushleft}
|
\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}.
|
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}.
|
||||||
@@ -200,7 +244,7 @@ The images or other third party material in this thesis are included in the book
|
|||||||
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.
|
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.
|
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.\par
|
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
|
||||||
\end{vplace}
|
% \end{vplace}
|
||||||
\begin{flushleft}
|
\begin{flushleft}
|
||||||
|
|
||||||
|
|
||||||
@@ -326,40 +370,6 @@ in this publication does not imply, even in the absence of a specific statement
|
|||||||
%% Allowing ragged bottoms keeps the spacing consistent between paragraphs
|
%% Allowing ragged bottoms keeps the spacing consistent between paragraphs
|
||||||
%% Alternatively: \setlength{\parskip}{0pt}
|
%% 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
|
%% Clean up some formatting for the text
|
||||||
\renewcommand{\thepage}{\roman{page}}
|
\renewcommand{\thepage}{\roman{page}}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
\RequirePackage{tgheros}
|
\RequirePackage{tgheros}
|
||||||
\newfontfamily\rufont{TeX Gyre Heros}
|
\newfontfamily\rufont{TeX Gyre Heros}
|
||||||
|
|
||||||
\newcommand\rulogo{\drawrulogo{0.5}}%most documents only need the half-size logo
|
\newcommand\rulogo{\drawrulogo{0.4}}%most documents need a smaller logo
|
||||||
\newcommand{\drawrulogo}[1]{
|
\newcommand{\drawrulogo}[1]{
|
||||||
%ARG: scale based upon 6cm = 1
|
%ARG: scale based upon 6cm = 1
|
||||||
\phantom{bla}
|
\phantom{bla}
|
||||||
|
|||||||
Reference in New Issue
Block a user