% Uncomment the lines with a single % if you wish to process the document separately
% \documentclass[12pt,a4paper,titlepage,draft]{memoir}
% \usepackage[]{ruthesis}
% \usepackage{custom}
% \graphicspath{{graphics/}{Graphics/}{./}}
% \author{Joseph~T.~Foley\formatemail{foley}}  % My name, for the titlepage
% \title{Project Report and Thesis Preparation Instructions}  % The title, for the titlepage
% \renewcommand{\maketitlehookc}{}% Skip the degree details
% \renewcommand{\maketitlehookd}{}% Skip the supervisor details
% \usepackage[hidelinks]{hyperref} % must be last package loaded!

%% Macros for filling in commonly changed items
\newcommand{\TIheadofgrad}{Slawomir Koziel~\formatemail{slawomir} or TD Person}
\newcommand{\TItvdadmin}{Sigrún Þorgeirsdóttir~\formatemail{sigrunth}}

% \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
% \newpage
% \listoffixmes{}
% \tableofcontents{}
% %\section*{Errata} %%section* avoids putting a number 
% \enableindents{}% turn on/off paragraph indents
% \mainmatter{}
\section{Introduction} % sections break up the document into pieces
These instructions detail how to prepare a final project report, master's thesis, or PhD dissertation for Reykjavík University.
These instructions (unless otherwise stated) assume you are in the Reykjavík University School of Technology.
If you are in another school, you should make sure that the template meets your specific requirements.

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.

\begin{itemize}
\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}

\subsection{Frequently Asked Questions}
\begin{itemize}
\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 use the \texttt{apacite} package.
  In the \path{main.tex}, uncomment the package line near the top: \path{\usepackage{apacite}}, then go to the bottom of the file and comment out the: \path{\bibliographystyle{IEEEtran/bibtex/ieeetran}}
\end{itemize}

\section{Coverpage}

Reykjavik University's communications department insists on a common outer appearance of all our theses.
This class supports their desire through the \texttt{rucover} package.
To generate a conforming cover page, 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}.
Place \texttt{cover.pdf} into the same directory that you have your thesis' main file.

\LaTeX{} includes the file automatically if you add \texttt{\textbackslash usepackage\{rucover\}} to your preamble.
You can control the filename with \texttt{\textbackslash usepackage[filename=name.pdf]\{rucover\}}.



\section{Files and Directories/Folders}
\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{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{deadlines.xlsx}: A deadline calculator that uses the semester's
%graduation date
\end{itemize}

\section{Signatures}
If you are making a print copy, 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.
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}.
An important thing to remember is that the uploaded document will follow you for the rest of your career:
employers are likely to find it and skim it.
Make sure the document is something you would be proud to have associated with you.

The general submission sequence is:
\begin{enumerate}
\item Defense complete, minor corrections complete after 3 days of work.
\item Save the completed thesis text as \path{main.pdf}
%\item Get signature pages signed by supervisor(s) and examiner.
%\item Sign the library release page.
%\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 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{thesis.pdf} to Skemman.
\item An autogenerated email is sent from Skemman.
  This email should be forwarded to your admin such at \TItvdadmin{}.
\item Grade for the thesis is published.
\item Graduation!
\item Sometime after graduation, the published thesis is released by RU on Skemman for others to read and enjoy.
\end{enumerate}

\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.
%More information on working with LaTeX at
%\url{http://afs.rnd.ru.is/project/htgaru/trunk/how-to-get-around-projects.pdf}

\subsection{Getting started:}
\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.
%  If you wish to have a repository to be setup for your thesis on \url{openproject.cs.ru.is}, email csit AT ru.is.  
  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.
   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/}
   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 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.

   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

    \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.)
   The reference library is in \path{references.bib} by default.
   It is just a text file that can be edited, but be careful with the formatting.
   A common mistake is to forget ``,'' at the end of each piece of an entry/line.

   If you are going to make glossaries or acronym lists, you will need
   a perl interpreter.  Only windows usually needs this installed:
   \url{http://www.activestate.com/activeperl}

 \item Get supporting programs for some tools.
   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
   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.
 \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}
   
 \item Open and read the options at the top of the previous file and set
   it up for your document.
   You will need to fill in the title and author at least.

 \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 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.
  {\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.
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.
  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}
\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.

% \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).  
The choice of examiner needs to be approved by the Director of Graduate Studies.  
The examiner shall have the qualifications necessary to supervise the thesis, but must not have collaborated in the project on which the thesis is based and must fulfil the rules of Reykjavík University on impartiality of examiners.
The oral examination shall be open to the public and shall be announced through appropriate channels with at least 3 days notice.  
The examination should take the form of an approximately 30 minute presentation by the student, followed by questions from the examiner, School representative (most often the Department Head), supervisor(s) and the audience.  
The audience then leaves the room and the examiner(s), supervisor and School representative have the opportunity to put further questions to the candidate and, as appropriate, request modifications to the thesis.  
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.  
One grade shall be awarded for the thesis and defence.  
The minimum passing grade is 6.0, see Guidelines for grading MSc theses in the appendix.  
The following factors shall be taken into account:

\begin{itemize}
\item Significance and originality of work
\item Scientific and technological challenge and results
\item Methodological quality
\item Presentation
\end{itemize}

The number of ECTS credits awarded for the Master's project shall be taken into account.  
Thus, significantly more demands in terms of originality, quantity and scientific quality of the work should be placed on the student for a 60 ECTS thesis than a 30 ECTS thesis.

\subsection{Guidelines for grading MSc thesis (English)}
The guidelines below describe typical projects in different grading brackets.  
This is meant for
examiners and instructors in grading master's theses.  
The projects need not fulfil every aspect of
these desciptions in order to be awarded the corresponding grade.
\begin{description}
\item [Superior (9,0-10,0)]
  The project is excellent.  
The handling of the material shows considerable originality and independant thought.
  Considerable skill in the definition and organized solving of the problem.
  Very good understanding of concepts.
  Academic approach and handling of material.
  Exemplary methods in collection and processing of data.
  Use of references is very precise and supports the projects well.
  The thesis may well lead to a publishable article.
  Exceptionally well polished thesis with very good grammar, spelling and language use.
  The thesis is in English.
  The student's performance in the defense is excellent.
\item[First grade (7,5-8,5)]
  The project is very good and handling of material is good and somewhat original.
  Clear understanding of the material and the definition of the problem is good and the solving well organized.
  Data gathering and processing without major weaknesses and intelligent use of references.
  The thesis is well arranged and grammar, spelling and language is good.
  The student's performance in the defense is either good or very good.
\item[Second grade (6,0-7,0)]
  The project is acceptable.
  Handling of material is fair and some independant thinking.
  Definition and analysis of project reflects some understanding.
  Data collection and processing is without major flaws.
  Deficiencies in the literature review.
  Flaws have not been addressed despite the instructor's suggestions.
  Language, grammar and spelling is fair.
  The student's performance in the defense is fair.
\item[Fail (1,0-5,5)]
  The project is unacceptable.
  The project has major flaws that have not been addressed despite the instructor's suggestions.
  Limited understanding of the material.
  Definitions and analysis do not show understanding of what is relevant in solving the problem at hand.  
Major errors or misunderstanding.
  Data collection and analysis has deficiencies and literature review is weak.
  The subject is not adhered to or major inconsistencies.
  Language, grammar and spelling is fair or poor.
  The student's performance in the defense is fair or poor.
\end{description}

\subsection{Viðmið fyrir einkunnagjöf}
Eftirfarandi er lýsing á dæmigerðum verkefnum í mismunandi einkunnabilum sem er ætluð til stuðnings fyrir frófdómara og leiðbeinendur við mat á MSc verkefnum.
Lýsinging þarf ekki að eiga við verkefnið í öllum atriðum til að verkefnið geti hlotið vipkomandi einkunn.

\begin{description}
\item[Ágætiseinkunn (9,0 -- 10,0)] Verkefni er afburðagott.
  Efnistök engdurspegla umtalsverðan frumleika og sjálfstæði í hugsun.
  Umtalsverð færni í skilgeiningu og skipulegri úrlausn viðfangsefnisins.
  Mjög góður skilningur á hugtökum.
  Visindaleg nálgun við efnistök.
  Fyrirmyndar vinnubrögð við öflun og úrvinnslu gagna.
  Heimildanotkun mjög nákvæm og styður vel við verkefnið.
  Ætla má að ritgerðin geti leitt til birtingarhæfrar greinar.
  Frágangur sérlega góður og stafsetning og málfar mjög gott.
  Ritgerðin er skrifuð á ensku.
  Frammistaða nemanda í vörninni afburðagóð.
\item[1. einkunn (7,5 -- 8,5)] Verkefni er mjög gott, efnistök góð og nokkuð frumleg.
  Skýr skilningur á viðfangsefninu og góð færni í skilgreiningu þess og skipulegri úrlausn.
  Vinnubrögð við öflun og úrvinnslu gagna án verulegra veikleika og heimildanotkun skynsamleg.
  Frágangur góður og stafsetning og málfar gott.
  Frammistaða nemanda í vörninni góð eða mjög góð.
\item[2. einkunn (6,0 -- 7,0)]  Verkefnið er þokkalegt.
  Allgóð efnistök og sjálfstæð hugsun á köflum.
  Skilgreining og úrvinnsla viðfangsefnis endurspegla nokkurn skilning á viðfangsefninu.
  Öflun og úrvinnsla gagna án verulegra galla.
  Heimildanotkun nokkuð áfátt.
  Finna má galla sem ekki hafa verið lagfærðir þrátt fyrir ábendingar leiðbeinanda.
  Málfar og stafsetning þokkaleg.
  Frammistaða nemanda í vörninni þokkaleg.
\item[Falleinkunn 0,0 -- 5,5]  Verkefni fullnægir ekki lágmarkskröfum.
  Verkefnið hefur áberandi galla sem ekki hafa verið lagfærðir þrátt fyrir ábendingar leiðbeinanda.
  Takmarkaður skilningur á viðfangsefninu.
  Skilgreining og úrlausn viðfangsefnis sýnir ekki næganlega góða tilfinningu fyrir því hvað skiptir máli við lausn þess.
  Verulegar villur eða misskilningur.
  Öflun og úrvinnsla gagna er töluvert áfátt sem og heimildanotkun.
  Farið út fyrir efnið eða umtalsverð ósamkvæmni.
  Málfar og stafsetning sæmileg eða slök.
  Frammistaða nemanda í vörninni sæmileg eða slök.
\end{description}

\section{PhD 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}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% TeX-engine: luatex
%%% End:
