Compare commits
42 Commits
ab24ef618d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ee5514c2ca | |||
| c4a41cbcb6 | |||
| 96f006efb6 | |||
| 17574f0bb7 | |||
| 9f6d6f3b92 | |||
| 71f4def04d | |||
| d69d755519 | |||
| 8c55dd2525 | |||
| a2551475a8 | |||
| 1d5cd98676 | |||
| 46572adf66 | |||
| 3b6a5fcc40 | |||
| 60dc155377 | |||
| 5b6aee7bf8 | |||
| 065c016b91 | |||
| df4586e143 | |||
| 4f096756d9 | |||
| b6c4466f0e | |||
|
|
d0b2b3694a | ||
| 52f63e3da1 | |||
| 5cb500573c | |||
| bb979aad87 | |||
| 764cfa6279 | |||
| 5e466b6138 | |||
| 3c63642905 | |||
| fc90604094 | |||
| f44b567332 | |||
| 7e98217b76 | |||
| 77cc29a868 | |||
| 4252ee3b78 | |||
| b1901c02be | |||
| e0c32da503 | |||
| 000abd9fee | |||
| 04e3160248 | |||
| 5bb2f1efbe | |||
|
|
7c2b48a7c0 | ||
|
|
4d26da2d3a | ||
|
|
80f862b943 | ||
|
|
e69b146bd8 | ||
|
|
8b093bb572 | ||
|
|
f689e293c1 | ||
|
|
52aa342854 |
29
code.tex
29
code.tex
@@ -16,27 +16,6 @@ go read the documentation and set these up as below. You
|
||||
will save yourself a lot of effort, especially if you have to fix
|
||||
anything.
|
||||
|
||||
%% This default style make long lines wrap nicely
|
||||
\lstdefinestyle{default}{
|
||||
%basicstyle=\footnotesize\ttfamily,%
|
||||
numbers=left,%
|
||||
numberstyle=\tiny,%
|
||||
numberfirstline=true,%
|
||||
stepnumber=2,%
|
||||
numbersep=5pt,%
|
||||
columns=fullflexible,%
|
||||
tabsize=4,%
|
||||
frame=lines,%
|
||||
breaklines=true,% break long lines
|
||||
prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookleftarrow}}, % red arrow
|
||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow}}, % red arrow
|
||||
% from http://tex.stackexchange.com/questions/116534/lstlisting-line-wrapping
|
||||
}
|
||||
\lstset{%
|
||||
language=,%default similar to verbatim
|
||||
style=default,
|
||||
}
|
||||
|
||||
%% The pre-defined languages we want to use.
|
||||
\lstloadlanguages{Java, XML}
|
||||
|
||||
@@ -67,7 +46,11 @@ anything.
|
||||
showstringspaces=false
|
||||
}
|
||||
|
||||
%%I have put the source code in the \directory{src/} folder.
|
||||
%% I have put the source code in the \directory{src/} folder.
|
||||
\lstinputlisting[language={bash}, firstline=1,
|
||||
caption={File extensions to ignore of LaTeX temporary files},
|
||||
label={src:gitignore-example}]{src/gitignore-example}
|
||||
|
||||
\lstinputlisting[language=Java, firstline=1,
|
||||
lastline=40, caption={Data\_Bus.java: Setting up the class.},
|
||||
label={src:Data_Bus.java}]{src/Data_Bus.java}
|
||||
@@ -76,6 +59,8 @@ label={src:Data_Bus.java}]{src/Data_Bus.java}
|
||||
caption={AndroidManifest.xml: Configuration for the Android UI.},
|
||||
label={src:AndroidManifest.xml}]{src/AndroidManifest.xml}
|
||||
|
||||
|
||||
|
||||
%% TODO: fix wrapping from custom.sty
|
||||
|
||||
%%% Local Variables:
|
||||
|
||||
60
custom.sty
60
custom.sty
@@ -1,46 +1,46 @@
|
||||
%%%%% CUSTOM.STY %%%%%%%%%
|
||||
%% Macros and packages to add functionality beyond the basic template
|
||||
%% This is the location to put your own customizations
|
||||
|
||||
%%%%%%%%%%%%%%%%%% TextPos %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% These macros allow you to arbitrarily position things on the page
|
||||
%% This is needed for any cover pages/graphics
|
||||
|
||||
%\RequirePackage{printlen}% display lengths in arbitrary units
|
||||
%\ifbool{debug}{\PassOptionsToPackage{showboxes}{textpos}}
|
||||
%\RequirePackage[absolute, verbose]{textpos}%
|
||||
|
||||
%% These commands set the units in \begin{textblock} when not
|
||||
%% directly specified
|
||||
%% We set them to the page sizes so we can align from them
|
||||
%\setlength{\TPHorizModule}{\paperwidth}
|
||||
%\setlength{\TPVertModule}{\paperheight}
|
||||
%%\setlength{\TPMargin}{2mm} %% margins inside the textblock*
|
||||
%\textblockorigin{0mm}{0mm} % start everything near the top-left corner
|
||||
|
||||
|
||||
%% This is the intended location to put your own customizations
|
||||
\newcommand{\formatemail}[1]{$<$\texttt{#1}$>$}
|
||||
|
||||
\usepackage[flushleft]{threeparttable} % allows us to make tables with footnotes
|
||||
% Format email addresses consistently
|
||||
|
||||
\usepackage[final]{listings}
|
||||
%%% Formatting code inclusion and snippets
|
||||
%% "final" option to force it to display code
|
||||
|
||||
%% This default listings style make long lines wrap nicely
|
||||
\lstdefinestyle{default}{
|
||||
basicstyle=\ttfamily,%
|
||||
numbers=left,%
|
||||
numberstyle=\tiny,%
|
||||
numberfirstline=true,%
|
||||
stepnumber=2,%
|
||||
numbersep=5pt,%
|
||||
columns=fullflexible,%
|
||||
tabsize=4,%
|
||||
frame=lines,%
|
||||
breaklines=true,% break long lines
|
||||
prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookleftarrow}}, % red arrow
|
||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow}}, % red arrow
|
||||
% from http://tex.stackexchange.com/questions/116534/lstlisting-line-wrapping
|
||||
}
|
||||
\lstset{%
|
||||
language=,%default similar to verbatim
|
||||
style=default,
|
||||
}
|
||||
|
||||
|
||||
\usepackage{siunitx}
|
||||
%% \SI{9.82}{\meter\per\second\square}
|
||||
|
||||
%% FIXME system for making notes to each other for what needs to
|
||||
%% be completed in a group document.
|
||||
\usepackage[layout=inline]{fixme}
|
||||
%% FIXME system for reminders
|
||||
%% internal layouts: inline, margin, footnote, index, marginclue
|
||||
%% % Warning! The pdf external layouts do not play well with hyperref
|
||||
%% % and must be loaded by doing \fxuselayouts{}
|
||||
|
||||
% \RequirePackage[autostyle,strict]{csquotes}
|
||||
%% http://mirrors.concertpass.com/tex-archive/macros/latex/contrib/csquotes/csquotes.pdf
|
||||
%% You invoke with \enquote{} and \blockquote{}
|
||||
%% csquotes must be loaded before babel for AUCTeX
|
||||
%% autostyle: update style as language changes in document
|
||||
%% strict: any warnings become errors
|
||||
%% Don't forget to load Babel!
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "main"
|
||||
%%% TeX-engine: luatex
|
||||
%%% End:
|
||||
|
||||
BIN
graphics/ru-logo.pdf
Normal file
BIN
graphics/ru-logo.pdf
Normal file
Binary file not shown.
84
graphics/ru-logo.svg
Normal file
84
graphics/ru-logo.svg
Normal 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 |
276
instructions.tex
276
instructions.tex
@@ -13,6 +13,15 @@
|
||||
\newcommand{\TIheadofgrad}{TBA}
|
||||
\newcommand{\TItvdadmin}{Sigrún Þorgeirsdóttir~\formatemail{sigrunth}}
|
||||
|
||||
%% Template Developers
|
||||
%% Warning: overleaf only accepts branch Master
|
||||
% 1. git clone <overleaf repo>
|
||||
% 2. git remote add gitea <gitea repo>
|
||||
% 4. <DO SOME WORK>
|
||||
% 5. <COMMIT AND PUSH TO GITEA>
|
||||
% 6. git push origin
|
||||
% 7. git push gitea
|
||||
|
||||
% \begin{document} % this tells the compiler that it is time to make
|
||||
% % text to print instead of just getting ready.
|
||||
% \maketitle{} % make a title page from the Title, Date, and Author
|
||||
@@ -29,17 +38,25 @@ If you are in another school, you should make sure that the template meets your
|
||||
|
||||
Critical information: The current version of the template uses Lua\LaTeX{} for enhanced font, code, and language support.
|
||||
{\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.
|
||||
We also have discovered that Overleaf's LiveTex 2025 does not work with StiX2 so you should use the 2024 version.
|
||||
If you are writing a PhD dissertation, you will want to edit \path{main-dissertation.tex} rather than \path{main.tex}
|
||||
|
||||
\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}
|
||||
\item [Actively developed code:] \url{https://gitea.cs.ru.is/foley/ru-thesis}
|
||||
\item [Current maintainer:] Joseph Timothy Foley.
|
||||
His email is his last name AT \texttt{ru.is}
|
||||
\end{description}
|
||||
|
||||
\subsection{Frequently Asked Questions}
|
||||
\section{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 +66,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.}.
|
||||
|
||||
@@ -90,21 +103,12 @@ On debian based systems, you will need to install the \verb|texlive-luatex| pack
|
||||
\end{itemize}
|
||||
|
||||
\section{Coverpage}\label{sec:coverpage}
|
||||
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.
|
||||
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.
|
||||
|
||||
Reykjavik University's communications department insists on a common outer appearance of all our theses.
|
||||
A detailed explanation of what the cover should look like is at \url{https://en.ru.is/media/tvd/Instructions.pdf} though this document is from when the School of Technology was the School of Science and Engineering.
|
||||
|
||||
Instructions for specific schools or departments:
|
||||
\begin{description}
|
||||
\item[Department of Computer Science:] To generate the cover with the RU logo, follow the instructions at
|
||||
\url{https://en.ru.is/media/skjol-td/Instructions_2020.pdf}, enter the relevant information into \url{https://en.ru.is/media/skjol-td/TD_E-cover_2019.pdf} and save the file as \texttt{cover.pdf}.
|
||||
\item[Department of Engineering:]
|
||||
\begin{description}
|
||||
\item[M.Sc.] students be given a fill-in PDF cover in CANVAS under the Module ``Templates'' for the course T-901-MEI2 or equivalent. It will have the name ``afræn forsíða á lokaverkefni'' for the Icelandic version or ``Cover Page for MSc thesis - English'' for the English one.
|
||||
\item[Ph.D.] students need to contact the RU Communications department for slightly different custom cover PDF before the document is to be published\footnote{Author Joseph highly suggests doing this 2 weeks before it is due.}.
|
||||
\end{description}
|
||||
\end{description}
|
||||
|
||||
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.}.
|
||||
This class supports the RU Communication's desire for the common appearance through the \texttt{rucover} package.
|
||||
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.
|
||||
@@ -121,17 +125,20 @@ You can control the filename with \verb|\usepackage[filename=name.pdf]{rucover}|
|
||||
%graduation date
|
||||
\end{itemize}
|
||||
|
||||
\section{Signatures}
|
||||
If you are making a print copy, you may need a signature page.
|
||||
\section{Limited Access}
|
||||
In general, access to the project report, thesis, or dissertation shall be open.
|
||||
If restricting access to a thesis is sought, e.g.\ for the purpose of protecting intellectual property or protecting commercial interests of an industrial partner participating in the MSc project, permission needs to be acquired, see {\em Reglur um skil á lokaritgerðum og lokaverkefnum við Háskólann í Reykjavík\/} (\url{http://www.ru.is/bokasafn/skemman}).
|
||||
If restriction of access to a thesis is granted it should be clearly stated in the thesis right after the keywords following the abstract with specification of the date at which the restriction of access should be lifted.
|
||||
|
||||
\section{Printing and Binding}
|
||||
If you are making a print copy to be bound into a book, you may need a signature page.
|
||||
This is no longer required for most electronic submissions except perhaps PhD.
|
||||
|
||||
\section{Printing}
|
||||
If you decide to print, make sure you are doing it on archival acid-free paper.
|
||||
Otherwise, your document will yellow and fall apart in the library over time.
|
||||
Traditionally, the student prints out and binds a copy for each advisor and examiner.
|
||||
This may also be required if the research was funded or in certain circumstances.
|
||||
Traditionally, the student prints out and binds a copy for each advisor and examiner: this varies significantly.
|
||||
This may also be required if the research was funded in some cases.
|
||||
If you are using a printing house to take care of the binding, they may be able to take the completed PDFs (cover and inside text) and print them for you.
|
||||
Check with the printing house if they want it as A4 (to be trimmed) or as B5 (which they will take care of resizing).
|
||||
|
||||
\section{Submission}
|
||||
When your document is finished and approved by your advisor, it needs to be uploaded to Skemman~\url{https://skemman.is}.
|
||||
@@ -159,7 +166,7 @@ The general submission sequence is:
|
||||
\section{LaTeX Template Instructions}
|
||||
Some information is at the top of \path{main.tex} file, this file is for a general overview and common problems.
|
||||
|
||||
\subsection{Getting started:}
|
||||
\subsection{Preparation}
|
||||
\begin{enumerate}
|
||||
\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.
|
||||
@@ -167,42 +174,33 @@ Some information is at the top of \path{main.tex} file, this file is for a gener
|
||||
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.}.
|
||||
|
||||
\item Get a LaTeX installation. We recommend TeXlive \url{https://www.tug.org/texlive/}
|
||||
\item Get a LaTeX installation.
|
||||
We recommend TeXlive \url{https://www.tug.org/texlive/}
|
||||
For this template on windows, MiKTeX will also work, but will run very slowly the first time you render the template.
|
||||
{\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.
|
||||
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.
|
||||
|
||||
Under linux this is the ``texlive'' package.
|
||||
Under Mac/OSX this is the ``MacTeX'' distribution.
|
||||
Under Apple iOS and linux this is the TexLive series of packages.
|
||||
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}.
|
||||
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}]
|
||||
sudo dnf -y install texlive-scheme-medium texlive-collection-{fontsrecommended,luatex,latexrecommended} texlive-biblatex-{apa,apa-doc,ieee,ieee-doc} texlive-{amsfonts,amsmath,canoniclayout,eepic,gitinfo2,fixme,makeglos,nomencl,lastpage,lipsum,listings,ltxkeys,pgf,pseudocode,stix2-otf,stix2-type1,siunitx,xurl}
|
||||
\end{lstlisting}
|
||||
\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
|
||||
\end{lstlisting}
|
||||
|
||||
Alternatively, if nothing you are doing is particularly private or proprietary, you can do development online using Overleaf.
|
||||
In this case, you won't need to setup the rest of the tools mentioned below except perhaps the Reference Manager mentioned in step~\ref{list:refmanager}.
|
||||
|
||||
|
||||
\begin{enumerate}
|
||||
\item RedHat: sudo yum -y install
|
||||
texlive-collection-fontsrecommended
|
||||
texlive-biblatex-{apa,apa-doc,ieee,ieee-doc}
|
||||
texlive-{xargs,lipsum,lastpage,luatex,pseudocode,url,examplep,listings,xspace,pgf,tikz,amsfonts,amsmath,amssymb,siunitx,svn-multi,subfig,fixme,textpos,biblatex,makeglos,nomencl,xwatermark,ltxkeys,framed,boondox,printlen}
|
||||
Getting biber installed on older RedHat systems is a bit tricky
|
||||
for unclear reasons. The metapackage you need is at
|
||||
https://copr.fedoraproject.org/coprs/cbm/Biber/
|
||||
\item Debian/Ubuntu:
|
||||
sudo apt-get -y install texlive-full pgf latex-xcolor
|
||||
If you don't want to install everything, this list of packages is known
|
||||
to work: 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
|
||||
\end{enumerate}
|
||||
\item Get a LaTeX Integrated Development Environment (recommended, but not required)
|
||||
\url{http://texstudio.sourceforge.net/} or
|
||||
\url{http://www.xm1math.net/texmaker/}
|
||||
Some editors may include LaTeX support.
|
||||
If you want to learn a very powerful (but old-fashioned) editor \url{http://www.gnu.org/software/emacs/}
|
||||
Install the auctex package by: M-x list-packages, click on AUCTeX
|
||||
Many people like TeXStudio \url{http://texstudio.sourceforge.net/}.
|
||||
Some other code editors and IDEs may include LaTeX support.
|
||||
If you want to learn a very powerful (but old-fashioned) editor, consider GNU Emacs: \url{http://www.gnu.org/software/emacs/}.
|
||||
Of note, the author used Emacs to write this template.
|
||||
|
||||
\item Get a references manager (recommended, but not required)\label{list:refmanager}
|
||||
\url{http://jabref.sourceforge.net/} (You may have to install a Java JRE first.)
|
||||
@@ -215,18 +213,17 @@ Some information is at the top of \path{main.tex} file, this file is for a gener
|
||||
\url{http://www.activestate.com/activeperl}
|
||||
|
||||
\item Get supporting programs for some tools.
|
||||
For glossaries under windows, you will need to install Perl
|
||||
For glossaries under Windows, you will need to install Perl
|
||||
\url{http://strawberryperl.com/}
|
||||
(it is already installed on the other platforms.)
|
||||
|
||||
\item Try building the \path{main.tex} file. If you get errors, there
|
||||
\item Try building the \path{main.tex} file with lualatex. If you get errors, there
|
||||
is something wrong with your LaTeX installation. Fix those first.
|
||||
|
||||
|
||||
\item Rename the \path{main.tex} file with your information (optional).
|
||||
DEGREE-NAME-YEAR is the recommended scheme
|
||||
e.g. \path{msc-foley-2015.tex}.
|
||||
This is referred to as the "Main" file.
|
||||
e.g. \path{msc-foley-2025.tex}.
|
||||
This is referred to as the ``Main'' file.
|
||||
\item Set your UI to use \path{lualatex} as the processor.
|
||||
If you are typing commands in manually, this is by typing in \path{lualatex main.tex}
|
||||
|
||||
@@ -236,74 +233,35 @@ Some information is at the top of \path{main.tex} file, this file is for a gener
|
||||
|
||||
\item Start editing all of the \path{.tex} files with your content.
|
||||
|
||||
\item Compile the document by running lualatex on the Main file, run the bibliography tool, then view the result.
|
||||
\item Compile the document by running lualatex on the Main file, run \path{biber}, then view the result.
|
||||
|
||||
\item When you print, make sure that the scale is 100\%.
|
||||
If you allow it to resize when printing, the margins won't be right.
|
||||
If the margins aren't right, then the RU logo will not look right on the
|
||||
cover.
|
||||
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{Important Details}
|
||||
|
||||
\begin{itemize}
|
||||
\item Make absolutely sure that your \path{references.bib} is in UTF-8. If it is another format (CP1251,etc) you may get weird problems with any accented characters.
|
||||
\item Make absolutely sure that your \path{references.bib} is in UTF-8. If it is another format (CP1251, EBDIC) you may get weird problems with any accented characters.
|
||||
{\em Students have run into encoding issues in the past and it has taken a surprisingly long time to debug.}
|
||||
|
||||
\item Make sure the rest of the files, particularly the \path{.tex} file are in UTF8 or are at least in the same encoding.
|
||||
If the files are in different encoding, you will discover errors with accented characters when you try to include them together.
|
||||
Watch out for line endings. Linux, Windows, and OSX all use different line endings in text files.
|
||||
|
||||
\item You may wish biber/biblatex instead of bibtex.
|
||||
(The template may already do this.)
|
||||
Otherwise Icelandic characters may not work properly in your \path{references.bib} file.
|
||||
\item Reference managed management uses biber/biblatex instead of bibtex.
|
||||
Icelandic characters may not work properly in your \path{references.bib} file if you use BibTeX.
|
||||
TexMaker and TeXStudio require a configuration change to do this.
|
||||
%Refer to the ``...Projects'' guide above.
|
||||
|
||||
\item Be consistent about UPPER and lower case in naming files.
|
||||
Preferably just use the 26 English letters, 10 numbers, dash ``-'', and underscore ``\_'' to avoid filename issues.
|
||||
Windows doesn't care (but some programs in Windows do).
|
||||
OSX sometimes cares.
|
||||
Linux always cares.
|
||||
\item When using this template with SVN, you will want to tell it to ignore the extensions listed in Appendix~\ref{appendix:latex-gen}
|
||||
\item \LaTeX{} generates a bunch of temporary files that you don't want to put into version control.
|
||||
Look at Appendix~\ref{src:gitignore-example} for a list of extensions.
|
||||
\end{itemize}
|
||||
|
||||
\subsection{Limited Access}
|
||||
In general, access to the MSc thesis shall be open.
|
||||
If restricting access to a thesis is sought, e.g.\ for the purpose of protecting intellectual property or protecting commercial interests of an industrial partner participating in the MSc project, permission needs to be acquired, see {\em Reglur um skil á lokaritgerðum og lokaverkefnum við Háskólann í Reykjavík\/} (\url{http://www.ru.is/bokasafn/skemman}).
|
||||
If restriction of access to a thesis is granted it should be clearly stated in the thesis right after the keywords following the abstract with specification of the date at which the restriction of access should be lifted.
|
||||
\section{Department of Engineering Information}
|
||||
|
||||
% \subsection{Submission and Deadlines}
|
||||
% The official completion of the MSc thesis is signified by the student submitting the final electronic (PDF) version of the thesis, signed by himself/herself, the supervisor(s) and the examiner to the SSE office and uploaded to Skemman, (see \url{https://www.skemman.is}).
|
||||
% See also RU's rules for submission of theses and final projects ({\em Reglur um skil á lokaritgerðum og lokaverkefnum við Háskólann í Reykjavík\/}, \url{http://www.ru.is/bokasafn/skemman}).
|
||||
|
||||
% If a student plans to graduate in a particular graduation ceremony, the following deadlines must be respected.
|
||||
% Should any of the deadlines below not be respected the student will have to wait for the following graduation ceremony before he/she can graduate.
|
||||
% Students are responsible for adhering to these deadlines and are advised to deliver their work in good time.
|
||||
% The deadline schedule for the purpose of graduation is as follows (where $t$ is the graduation date and the
|
||||
% numbers refer to the number of days prior to graduation) as shown on Table~\ref{tab:deadlines}.
|
||||
% \begin{table}
|
||||
% \centering
|
||||
% \begin{threeparttable}
|
||||
% \begin{tabular}{ll}
|
||||
% Final draft of thesis delivered to supervisor\tnote{a} &$t-50$\tnote{b}\\
|
||||
% Supervisors comments delivered to student &$t-40$\tnote{c,d}\\
|
||||
% Thesis delivered to supervisor(s), examiner and department head\tnote{a} &$t-20$\tnote{c}\\
|
||||
% Examiner confirms that thesis may be put up for defense &$t-17$\tnote{c}\\
|
||||
% Defense &$t-14$\tnote{c}\\
|
||||
% Grade posted to the Registrar by SSE office &$t-11$\tnote{c}\\
|
||||
% Graduation &$t$\tnote{c}\\
|
||||
% \end{tabular}
|
||||
% \begin{tablenotes}
|
||||
% \item[a] Paper and/or electronic form, as requested by the supervisor(s) and/or examiner.
|
||||
% \item[b] Date can be modified by mutual agreement of the supervisor, student and examiner.
|
||||
% \item[c] Firm deadlines.
|
||||
% \item[d] Or within 10 days after the supervisor has received the final draft, whichever comes first.
|
||||
% \item[e] Or within 5 days after the defence, whichever comes first.
|
||||
% \end{tablenotes}
|
||||
% \caption{Schedule for thesis according to expected graduation date.}\label{tab:deadlines}
|
||||
% \end{threeparttable}
|
||||
% \end{table}
|
||||
|
||||
\subsection{Thesis Defense (Oral Examination Procedure)}
|
||||
The examiner is selected by the Department Head in consultation with the supervisor(s).
|
||||
@@ -315,6 +273,7 @@ The audience then leaves the room and the examiner(s), supervisor and School rep
|
||||
Subsequently, the candidate leaves the room and the examiner, School representative and supervisor(s) deliberate and decide upon the grade.
|
||||
Normally, the student will be informed of the grade the next day.
|
||||
If the thesis is subject to confidentiality, or for other valid reasons approved by the Director of Graduate Studies, the oral examination may be closed to the public.
|
||||
|
||||
\subsection{Grading}
|
||||
The appointed examiner shall evaluate the thesis and the oral defense of the thesis, together with the
|
||||
supervisor(s) and the department's representative.
|
||||
@@ -418,71 +377,24 @@ Lýsinging þarf ekki að eiga við verkefnið í öllum atriðum til að verkef
|
||||
Frammistaða nemanda í vörninni sæmileg eða slök.
|
||||
\end{description}
|
||||
|
||||
\section{PhD Special Instructions}
|
||||
\section{Doctorate Special Instructions}
|
||||
Final Preparation for PhD Dissertations:\footnote{Always refer to the website in case details have changed}
|
||||
\begin{enumerate}
|
||||
\item Send PDF to Administrative person \TItvdadmin{}
|
||||
%\item Get signature pages signed, and scan them into PDF
|
||||
\item Talk to one of the printing companies in Iceland and ask if they can do a B4 booklet with a printed cover.
|
||||
\fxwarning{Someone needs to tell me which ones are good and what are the magic words}
|
||||
\item Make clear which elements are the outside cover and which are the inside contents.
|
||||
\textbf{You want to make sure they don't print a copy of the cover inside the book.}
|
||||
\item They will insert your signature pages into the PDF and start the printing process;
|
||||
The paper you want is archival-quality acid-free 240$\times$\SI{170}{\milli\meter} (aka B5, Programme, or Book Economy).
|
||||
\item If you can, get a proof of the print to check that the layout is correct and the quality is acceptable, particularly any figures.
|
||||
\item If is acceptable, then get them to print out the required number of copies.
|
||||
\item Finally bring the copies to head of graduate studies(\TIheadofgrad{}), who should forward them as appropriate.
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{LaTeX Generated file extensions}\label{appendix:latex-gen}
|
||||
These are the files that \LaTeX{} generates when you run it.
|
||||
If you are using SVN or another version control system, you want to tell that system to ignore these files:
|
||||
\begin{verbatim}
|
||||
*-blx.bib
|
||||
*.acr
|
||||
*.acn
|
||||
*.alg
|
||||
*.aux
|
||||
*.bak
|
||||
*.bbl
|
||||
*.bcf
|
||||
*.blg
|
||||
*.bst
|
||||
*.dvi
|
||||
*.glo
|
||||
*.gl*
|
||||
*.idx
|
||||
*.ind
|
||||
*.ilg
|
||||
*.ist
|
||||
*.lo?
|
||||
*.mw
|
||||
*.nlo
|
||||
*.ntn
|
||||
*.out
|
||||
*.pdf
|
||||
*.ps
|
||||
*.rel
|
||||
*.run.xml
|
||||
*.sbl
|
||||
*.slg
|
||||
*.snm
|
||||
*.sym
|
||||
*.synctex.gz
|
||||
*.tcp
|
||||
*.thm
|
||||
*.tdo
|
||||
*.to?
|
||||
*.tmp
|
||||
*.tmproj
|
||||
*.xwm
|
||||
._*
|
||||
._.DS_Store
|
||||
.~lock*
|
||||
auto
|
||||
Thumbs.db
|
||||
\end{verbatim}
|
||||
%\end{document}
|
||||
\item Use \path{main-dissertation.tex} not \path{main.tex}!
|
||||
\item Send PDF to Administrative person \TItvdadmin{}
|
||||
% \item Get signature pages signed, and scan them into PDF
|
||||
\item Talk to one of the printing companies in Iceland and ask if they can do a B4 booklet with a printed cover.
|
||||
\fxwarning{Someone needs to tell me which ones are good and what are the magic words}
|
||||
\item Make clear which elements are the outside cover and which are the inside contents.
|
||||
\textbf{You want to make sure they don't print a copy of the cover inside the book.}
|
||||
\item They will insert your signature pages into the PDF and start the printing process;
|
||||
The paper you want is archival-quality acid-free 240$\times$\SI{170}{\milli\meter} (aka B5, Programme, or Book Economy.
|
||||
\item If you can, get a proof of the print to check that the layout is correct and the quality is acceptable, particularly any figures.
|
||||
\item If is acceptable, then get them to print out the required number of copies.
|
||||
\item Finally bring the copies to head of graduate studies(\TIheadofgrad{}), who should forward them as appropriate.
|
||||
\end{enumerate}
|
||||
|
||||
% \end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
|
||||
@@ -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}\\}
|
||||
@@ -85,13 +91,13 @@
|
||||
%\end{dedications}
|
||||
|
||||
% RUM: "Acknowledgements (optional)"%start numbering
|
||||
\tableofcontents{}
|
||||
\listoffigures{}
|
||||
\listoftables{}
|
||||
\tableofcontents*{}%* means no TOC entry
|
||||
\listoffigures*{}
|
||||
\listoftables*{}
|
||||
%% A list of abbreviations is an example of a special list
|
||||
%% Other lists may be added, such as lists of algorithms, symbols, theorems, etc.
|
||||
%% IN CS PhD, this is sometimes centered.
|
||||
\chapter{List of Symbols}
|
||||
\chapter*{List of Symbols}%* means no TOC entry
|
||||
%% This list demonstrates the "siunitx" package capabilities
|
||||
\begin{tabular}{lll}\toprule
|
||||
Symbol &Description &Value/Units\\\midrule
|
||||
|
||||
59
main.tex
59
main.tex
@@ -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
|
||||
@@ -23,17 +20,16 @@
|
||||
%% \textcite{} is for when the information is part of a sentence.
|
||||
%% \cite{} just puts the name and year
|
||||
\addbibresource{references.bib}
|
||||
\usepackage{biblatex-IS}%%loads Icelandic translations for things polyglossia missed
|
||||
\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
|
||||
%% !!WARNING: The geometry package is incompatible with this template!
|
||||
|
||||
\usepackage{lipsum}%provides us with text for testing
|
||||
\setlipsum{auto-lang=false}%eliminates polyglossia warning
|
||||
%% usage: \lipsum[STARTNUM-ENDNUM]
|
||||
|
||||
\graphicspath{{graphics-cropped/}{graphics/}{./}}
|
||||
@@ -42,14 +38,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,56 +55,47 @@
|
||||
% 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.
|
||||
|
||||
% If you need to enforce hyphenation in English or Icelandic, put a space separated list in the hyphenation macro. You may also need to install the texlive-hyphen-icelandic package.
|
||||
|
||||
\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.
|
||||
%\end{dedications}
|
||||
|
||||
% RUM: "Acknowledgements (optional)"%start numbering
|
||||
\tableofcontents{}
|
||||
\listoffigures{}
|
||||
\listoftables{}
|
||||
\tableofcontents*{}%* means no TOC entry
|
||||
\listoffigures*{}
|
||||
\listoftables*{}
|
||||
%% A list of abbreviations is an example of a special list
|
||||
%% Other lists may be added, such as lists of algorithms, symbols, theorems, etc.
|
||||
%% IN CS PhD, this is sometimes centered.
|
||||
\chapter{List of Symbols}
|
||||
\chapter*{List of Symbols}%* means no TOC entry
|
||||
%% 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
337
rudissertation.sty
Normal 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:
|
||||
184
ruthesis.sty
184
ruthesis.sty
@@ -9,7 +9,7 @@
|
||||
%% Details at LICENSE.md
|
||||
%% --------------- Identification ----------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{ruthesis}[2024/11/15 RU Thesis Formatting V3.2]
|
||||
\ProvidesPackage{ruthesis}[2025/10/17 RU Thesis Formatting V3.3]
|
||||
%% --------------- Option Processing--------------------------
|
||||
%% The forcegraphics option renders graphics even in draft mode
|
||||
\DeclareOption{forcegraphics}{%
|
||||
@@ -40,7 +40,9 @@
|
||||
% e-readers/screens clearly, and have compatible licensing
|
||||
% requirements
|
||||
% allows UTF encoding, needed for Icelandic and other accented characters
|
||||
\RequirePackage{fontspec}
|
||||
\RequirePackage{unicode-math}% loads STIX and math unicode characters
|
||||
|
||||
\setmathfont{STIX Two Math}
|
||||
\setmainfont{STIX Two Text}[
|
||||
Extension={.otf},
|
||||
@@ -48,6 +50,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 +86,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 +181,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 +310,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 +321,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 +335,18 @@ in this publication does not imply, even in the absence of a specific statement
|
||||
{\par\end{cover}\newpage}
|
||||
|
||||
|
||||
%%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%%
|
||||
\AddToHook{begindocument/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"
|
||||
|
||||
43
src/gitignore-example
Normal file
43
src/gitignore-example
Normal file
@@ -0,0 +1,43 @@
|
||||
*-blx.bib
|
||||
*.acr
|
||||
*.acn
|
||||
*.alg
|
||||
*.aux
|
||||
*.bak
|
||||
*.bbl
|
||||
*.bcf
|
||||
*.blg
|
||||
*.bst
|
||||
*.dvi
|
||||
*.glo
|
||||
*.gl*
|
||||
*.idx
|
||||
*.ind
|
||||
*.ilg
|
||||
*.ist
|
||||
*.lo?
|
||||
*.mw
|
||||
*.nlo
|
||||
*.ntn
|
||||
*.out
|
||||
*.pdf
|
||||
*.ps
|
||||
*.rel
|
||||
*.run.xml
|
||||
*.sbl
|
||||
*.slg
|
||||
*.snm
|
||||
*.sym
|
||||
*.synctex.gz
|
||||
*.tcp
|
||||
*.thm
|
||||
*.tdo
|
||||
*.to?
|
||||
*.tmp
|
||||
*.tmproj
|
||||
*.xwm
|
||||
._*
|
||||
._.DS_Store
|
||||
.~lock*
|
||||
auto
|
||||
Thumbs.db
|
||||
41
test.tex
41
test.tex
@@ -1,41 +0,0 @@
|
||||
\documentclass{memoir}
|
||||
%\usepackage[useregional]{datetime2}
|
||||
\usepackage{polyglossia}
|
||||
\setdefaultlanguage{icelandic}
|
||||
\usepackage{stix2}
|
||||
|
||||
%\usepackage{graphicx}
|
||||
\title{Minimal Document for Testing}
|
||||
\author{Joseph T. Foley \and Someone Else}
|
||||
% \author: Use \and as a separator and \thanks{details} for additional info
|
||||
%\date{2020}{2}{2}
|
||||
%% TODO: use datetime2 to be smarter about dates
|
||||
|
||||
\begin{document}
|
||||
|
||||
%% Titlepage the Memoir way
|
||||
\maketitle
|
||||
blah blah blah
|
||||
\begin{figure}
|
||||
\centering
|
||||
\caption{A caption}
|
||||
\end{figure}
|
||||
\end{document}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%% TeXStudio Magic Comments %%%%%%%%%%%%%%%%%%%%%
|
||||
%% These comments that start with "!TeX" modify the way TeXStudio works
|
||||
%% For details see http://texstudio.sourceforge.neit/manual/current/usermanual_en.html Section 4.10
|
||||
%%
|
||||
%% What encoding is the file in?
|
||||
% !TeX encoding = UTF-8
|
||||
%% What language should it be spellchecked?
|
||||
% !TeX spellcheck = en_US
|
||||
%% What program should I compile this document with?
|
||||
% !TeX program = pflatex
|
||||
|
||||
%%%%%%%%%%%%%%%%%%% Emacs Variables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% TeX-engine: luatex
|
||||
%%% End:
|
||||
Reference in New Issue
Block a user