Front matter looks good with page numbers. PhD thesis commitee merged.

This commit is contained in:
2020-02-06 13:17:12 +00:00
parent f0155f47c2
commit e8f877c5ab
4 changed files with 1894 additions and 139 deletions

View File

@@ -1,5 +1,6 @@
\documentclass[12pt,a4paper,titlepage]{memoir}
\usepackage{ruthesis}
\title{Ph.D. Dissertation Template for \theInstitution{}}
\titleIS{Ph.D. Dissertation Template for \theInstitution{} in Icelandic}
\author{Joseph T. Foley}%Use \and as an author separator
@@ -11,26 +12,36 @@
\DocumentInfo{Dissertation}{Ph.D.}{Doctor of Philosophy}{Computer Science}
\School{School of Technology}
%% 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}{LUniversity of Iceland}{Iceland}
}
\ExaminerHeading{Examiner}
\Examiners{
\personinfo{Tough E. Questions}{Examiner}{Associate Professor}{Massachusetts Institute of Technology}{USA}
}
%\ExaminerHeading{Examiner}
%\Examiners{
% \personinfo{Tough E. Questions}{Examiner}{Associate Professor}{Massachusetts Institute of Technology}{USA}
%}
%%%%%% Useful Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lipsum}%provides us with text for testing
%% usage: \lipsum[STARTNUM-ENDNUM]
\usepackage{siunitx}
%%% Macros for SI Units in text
%% e.g. \SI{9.8}{\meter\per\second}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\copyrightpage{}
\signaturepage{}
\archivesigpage{}
%\archivesigpage{}
\begin{abstract}{Abstract}{\thetitle}{\thedate}
The abstract goes here.
@@ -42,13 +53,86 @@
It should be a fairly short summary of the entire document.
\end{abstract}
\begin{dedications}
I dedicate this to my spouse/child/pet/power animal.
\end{dedications}
\enableindents{}% turn on/off paragraph indents
% RUM: "Acknowledgements (optional)"%start numbering
\chapter*{Acknowledgements}
\begin{quotation}
So long, and thanks for all the fish.
\end{quotation}\sourceatright{Douglas Adams\cite{adams84fish}}
\vspace{\baselineskip}
This work was funded by \the\year~RANNIS grant ``Survey of man-eating Minke whales'' 1415550.
Additional equipment was generously donated by the Icelandic Tourism Board.
{\em Acknowledgements are optional; comment this chapter out if they are absent
Note that it is important to acknowledge any funding that helped in the work}
\chapter*{Preface}
% RUM: "Preface (optional)"
This dissertation is original work by the author, Firstname~Lastname.
Portions of the introductory text are used with permission from
Student et al.\cite{student2015awesome} of which I am an author.
{\em The preface is an optional element
explaining a little who performed what work. See
\url{https://www.grad.ubc.ca/sites/default/files/materials/thesis_sample_prefaces.pdf}
for suggestions.
List of publications as part of the preface is
optional unless elements of the work have already been published.
It should be a comprehensive list of all publications in which
material in the thesis has appeared, preferably with references to
sections as appropriate. This is also a good place to state
contribution of student and contribution of others to the work
represented in the thesis.
}
%\coverchapter{Publications}
%% Some Dissertations present the related papers first
\clearpage{}
\tableofcontents{}\clearpage%TODO: remove toc from toc
\listoffigures{}\clearpage%%RUM: "List of figures"
\listoftables{}\clearpage%%RUM: "List of tables"
%% The 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 Abbreviations}%%RUM: Not mentioned
\begin{tabular}{ll}
MSc &Masters of Science\\
PhD &Doctor of Philosophy\\
\end{tabular}
\chapter*{List of Symbols}%%RUM: Not mentioned
\begin{tabular}{lll}
Symbol &Description &Value/Units\\
$E$ &Energy &\si{\joule}\\
$m$ &Mass &\si{gram}\\
$c$ &Speed of Light &\SI{2.99E8}{\meter\per\second\square}\\
\end{tabular}
\tableofcontents{}%TODO: remove toc from toc
\mainmatter{}
\aliaspagestyle{chapter}{empty}
%% If you would like to separate chapters into different files, use
%% \include{chapterfile.tex}
\chapter{The First Chapter}
\section{Introduction}
\lipsum[0-20]
\bibliographystyle{ieeetran}
\bibliography{references}
\end{document}
%%% Local Variables:
%%% mode: latex

1643
references.bib Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -64,8 +64,6 @@
\DeclareOption{online}{
\setbool{online}{true}
%\setbool{covernopagenum}{true}%if there is no left and right, don't put page numbers
\setbool{coverallpagenum}{true}%or put them on all
\typeout{rubook option: online}
}
@@ -141,6 +139,22 @@
%% files on unix-based (OSX, Linux, etc.) platforms.
%% ---------------- URLs and Paths -----------------------------
\PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url}
\RequirePackage{url}
%% The url package typesets url's and unix file paths nicely when they
%% become long. \url{}
%% Also defines \path{} which works with filepaths including windows paths.
%% Watch out that you leave a space after a last \ e.g. \path{C:\ }
%% You need another verbatim environment to make those typeset properly.
%% Also defines the \path{} command for paths
%% Option: obeyspace to deal with spaces in a path/url
%% Option: spaces to do linebreaks at the spaces.
%% Option: hyphens to do linebreaks at hyphens.
%% Option: allowmove makes URLs not-fragile, so they can go in things that move
%% WARNING: If this breaks you will get very very weird errors
%% ---------------- Fonts -----------------------------
%%% For help, read http://latex-project.org/guides/fntguide.pdf
%%
@@ -265,8 +279,8 @@
\renewcommand{\postauthor}{\par\end{center}}
\newcommand{\titledetails}[1]{\renewcommand{\maketitlehookc}{#1}}
\renewcommand{\predate}{\begin{center}\large}
\renewcommand{\postdate}{\par\end{center}\newpage}
\renewcommand{\postdate}{\par\end{center}}
\aliaspagestyle{title}{empty}
%% ----- COPYRIGHT PAGE -----------------------------------------------------------------------
\newcommand{\copyrightpage}{
% actually in books, this is often on the left side
@@ -314,11 +328,12 @@
{%\setlength{\TPMargin}{0mm} %% margins inside the textblock
\enableindents{}\newpage}%
\newenvironment{coverleft}%This is material that is OK being on the
%backside
{\thispagestyle{cover}%
\pagestyle{cover}%
\ifbool{online}{}{\cleartoverso}%
\cleartoverso%
%\clearforchapter% clear to chapter setting
\disableindents%
\titletextfont\SingleSpacing}%
@@ -328,6 +343,13 @@
%% ----- 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}}
%%%%%%%%%%%% DRAFT AND PROOF MARKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\draftmark}{}
@@ -337,29 +359,44 @@
\renewcommand{\draftbigmark}{{\color{blue}\warningfont{}*** \draftmark{} *** \\PLEASE DO NOT DISTRIBUTE\\}}}{}
\ifbool{draftbool}{\renewcommand{\draftmark}{{\color{red}\textsc{Draft}}}%
\renewcommand{\draftbigmark}{{\color{red}\warningfont{}*** \draftmark{} *** \\PLEASE DO NOT DISTRIBUTE\\}}}{}%
%%% 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}{simple}
\aliaspagestyle{title}{simple}
\aliaspagestyle{titlinpage}{empty}
\ifboolexpr{bool {draftbool} or bool {proof}}{
\makeoddfoot{cover}{}{\thepage}{\draftmark}
\makeevenfoot{cover}{\draftmark}{\thepage}{}
\makeoddfoot{plain}{}{\thepage}{\draftmark}
\makeevenfoot{plain}{\draftmark}{\thepage}{}
\makeoddfoot{simple}{}{}{\draftmark}
\makeevenfoot{simple}{\draftmark}{}{}
\makeoddfoot{empty}{}{}{\draftmark}
\makeevenfoot{empty}{\draftmark}{}{}
}{}
% \ifboolexpr{bool {draftbool} or bool {proof}}{
% \makeoddfoot{cover}{}{\thepage}{\draftmark}
% \makeevenfoot{cover}{\draftmark}{\thepage}{}
% %\makeoddfoot{plain}{}{\thepage}{\draftmark}
% %\makeevenfoot{plain}{\draftmark}{\thepage}{}
% \makeoddfoot{simple}{}{}{\draftmark}
% \makeevenfoot{simple}{\draftmark}{}{}
% }{}
\makepagestyle{cover}% The cover pages don't have numbers by default
\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}{}{}{}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lof}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lot}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\makepagestyle{covernum} % but maybe we need to have numbers anyway on some pages
\makeevenhead{covernum}{\thepage}{}{}
\makeoddhead{covernum}{}{}{\thepage}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{chapter}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lof}{\protect\thispagestyle{chapter}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lot}{\protect\thispagestyle{chapter}}}%The TOC should use the cover format
\newcommand{\coverchapter}[1]{\clearforchapter\pagestyle{cover}\chapter{#1}\thispagestyle{cover}}
%%% Section numbering and the Table of Contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
\maxsecnumdepth{subsubsection} % default by \mainmatter in preamble

View File

@@ -34,110 +34,14 @@
\RequirePackage{paralist}
\RequirePackage{dashrule}
%% Default is at RU
%% Information about Institution, Author, Degree, and Program
\newcommand{\theInstitution}{Reykjav\'{\i}k University}%
\newcommand{\theInstitutionAddress}{Menntavegur 1\\101 Reykjavík, Iceland}
\newcommand{\theInstitutionPhone}{+354 599 6200}
\newcommand{\theInstitutionURL}{www.ru.is}%
\newcommand{\setAbstract}[1]{\renewcommand{\abstract@ruthesis}{#1}}
%% 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")
\newcommand{\frontcover}{
\printedcover{}
}
%%%%%%%%%%%%%%%% MARGINS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% WARNING: memoir class has its own margin macros
%% Do not use the geometry package!!!!
% \setlength{\TPMargin}{0mm} %% margins inside the textblock*
\semiisopage
% % The MS word template uses even 25.4mm margins, this is not as good if is bound
\setlrmarginsandblock{30mm}{25.4mm}{*}
% % {left}{right}{ratio}, * for calculate
%%% if you need it to be even (for online), use this
\ifbool{online}{\setulmarginsandblock{25.4mm}{25.4mm}{*}}
% % {upper}{lower}{ratio} * for calculate
\checkandfixthelayout% implement the margins
%% Some debugging code to check length calculation.
\newcommand{\showlengths@ruthesis}{
\uselengthunit{mm} % showlen package
Lengths: (with round off error from floats)\\
covermarginl:\printlength{\covermarginl}\\
covermarginr:\printlength{\covermarginr}\\
covermargint:\printlength{\covermargint}\\
covermarginb:\printlength{\covermarginb}\\
coverwindowheight:\printlength{\coverwindowheight}\\
pagecenterx:\printlength{\pagecenterx}\\
pagecentery:\printlength{\pagecentery}\\
}
%% ----- PRINTED FRONT COVER ----------------------------------------------------------
%% This cover will be on the outside (not with window)
\newcommand{\printedcover}{
\begin{covernonum}
\setlength{\TPMargin}{0mm} %% margins inside the textblock*
\sffamily
\begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,68mm)%
{\centering\includegraphics[width=55mm]{\frontlogo@ruthesis}\\}%
%
\setSingleSpace{1.8}\SingleSpacing%
\begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,120mm)%
\textcolor{rugray}{\frontcovertitlefont\titleCover@ruthesis}\par%
%% Originally title was forced uppercase, but no-one seems to have
%% noticed, so I'm removing it.
\end{textblock*}%
%
\setSingleSpace{1.5}\SingleSpacing%
\begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,222mm)%
\begin{minipage}{\textwidth}
\textcolor{rugray}{
\frontcovertitletext{}
\textbf{\theauthor}\\%
\DegreeLong@ruthesis\\%
\whensigned@ruthesis\\%
\School@ruthesis\\%
\theInstitution%
}\par
\vspace*{5mm}
\textcolor{rured}{
\frontcovertitlefont{}
\documenttype@ruthesis
}\par
\vspace*{3mm}
{\scriptsize\color{rugray}\Bookidnumber}%
\end{minipage}
\end{textblock*}
\setSingleSpace{1.0}
\end{covernonum}
\newpage\quad%% I am not sure why we must put this to ensure that the covers don't overlap
\newpage % without this, page numbers show up. Weird.
}
\newcommand{\DegreeAndDepartment@ruthesis}{\DegreeLong@ruthesis{} (\DegreeAbbrv@ruthesis) in \Program@ruthesis{}}
\newcommand{\placelogo@ruthesis}[2]{%
\begin{textblock*}{\textwidth}[0.5,0.5](\windowcenterx,#1)%
{\centering\includegraphics[width=#2]{\frontlogo@ruthesis}\\}%
\end{textblock*}
}
%% ----- INTERNAL TITLE PAGE WITH COMMITTEE ---------------------------------------------------
%% TODO: make counter for supervisors in the very rare case that there
%% is only one supervisor
\newcommand{\DocumentType@ruthesis}{Dissertation}
\newcommand{\DegreeAbbrv@ruthesis}{Ph.D.}
\newcommand{\DegreeLong@ruthesis}{Doctorate}
@@ -185,6 +89,99 @@
\newcommand{\thedateIS}{**Date in Icelandic**}
\newcommand{\dateIS}[1]{\renewcommand{\thedateIS}{#1}}
%% 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")
%%%%%%%%%%%%%%%% MARGINS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% WARNING: memoir class has its own margin macros
%% Do not use the geometry package!!!!
% \setlength{\TPMargin}{0mm} %% margins inside the textblock*
\semiisopage
% % The MS word template uses even 25.4mm margins, this is not as good if is bound
\setlrmarginsandblock{30mm}{25.4mm}{*}
% % {left}{right}{ratio}, * for calculate
%%% if you need it to be even (for online), use this
\ifbool{online}{\setulmarginsandblock{25.4mm}{25.4mm}{*}}
% % {upper}{lower}{ratio} * for calculate
\checkandfixthelayout% implement the margins
%% Some debugging code to check length calculation.
\newcommand{\showlengths@ruthesis}{
\uselengthunit{mm} % showlen package
Lengths: (with round off error from floats)\\
covermarginl:\printlength{\covermarginl}\\
covermarginr:\printlength{\covermarginr}\\
covermargint:\printlength{\covermargint}\\
covermarginb:\printlength{\covermarginb}\\
coverwindowheight:\printlength{\coverwindowheight}\\
pagecenterx:\printlength{\pagecenterx}\\
pagecentery:\printlength{\pagecentery}\\
}
%% ----- PRINTED FRONT COVER ----------------------------------------------------------
%% This cover will be on the outside (not with window)
% \newcommand{\printedcover}{
% \begin{covernonum}
% \setlength{\TPMargin}{0mm} %% margins inside the textblock*
% \sffamily
% \begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,68mm)%
% {\centering\includegraphics[width=55mm]{\frontlogo@ruthesis}\\}%
% %
% \setSingleSpace{1.8}\SingleSpacing%
% \begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,120mm)%
% \textcolor{rugray}{\frontcovertitlefont\titleCover@ruthesis}\par%
% %% Originally title was forced uppercase, but no-one seems to have
% %% noticed, so I'm removing it.
% \end{textblock*}%
% %
% \setSingleSpace{1.5}\SingleSpacing%
% \begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,222mm)%
% \begin{minipage}{\textwidth}
% \textcolor{rugray}{
% \frontcovertitletext{}
% \textbf{\theauthor}\\%
% \DegreeLong@ruthesis\\%
% \whensigned@ruthesis\\%
% \School@ruthesis\\%
% \theInstitution%
% }\par
% \vspace*{5mm}
% \textcolor{rured}{
% \frontcovertitlefont{}
% \documenttype@ruthesis
% }\par
% \vspace*{3mm}
% {\scriptsize\color{rugray}\Bookidnumber}%
% \end{minipage}
% \end{textblock*}
% \setSingleSpace{1.0}
% \end{covernonum}
% \newpage\quad%% I am not sure why we must put this to ensure that the covers don't overlap
% \newpage % without this, page numbers show up. Weird.
% }
\newcommand{\placelogo@ruthesis}[2]{%
\begin{textblock*}{\textwidth}[0.5,0.5](\windowcenterx,#1)%
{\centering\includegraphics[width=#2]{\frontlogo@ruthesis}\\}%
\end{textblock*}
}
%% ----- INTERNAL TITLE PAGE WITH COMMITTEE ---------------------------------------------------
%% TODO: make counter for supervisors in the very rare case that there
%% is only one supervisor
\renewcommand{\maketitlehookc}{\begin{center}\DegreeAbbrv@ruthesis{} \DocumentType@ruthesis{} %
\ifdef\ects@ruthesis{of \ects@ruthesis{} ECTS credits}%
submitted to the \School@ruthesis\ \\%
@@ -202,18 +199,17 @@
\setlength{\plparsep}{0.5\baselineskip} % space between entries
\setlength{\plitemsep}{0.5\baselineskip} % space between lines
\begin{rolelist}
\item \supervisorheading@ruthesis{}
\begin{peoplelist}
\supervisors@ruthesis{}
\end{peoplelist}
\item \examinerheading@ruthesis{}:
\begin{peoplelist}
\examiners@ruthesis{}
\item \supervisorheading@ruthesis{}
\begin{peoplelist}
\supervisors@ruthesis{}
% \end{peoplelist}
% \item \examinerheading@ruthesis{}:%% Old MSc template
% \begin{peoplelist}
% \examiners@ruthesis{}
\end{peoplelist}
\end{rolelist}
}%end \titletextfont
\vfill
}
}\vfill}
%% ----- SIGNATURE PAGE, ONLY THESIS -----------------------------------------------------
@@ -248,8 +244,8 @@
\personinfo{\theauthor}{}{}{}{}\\
\supervisorheading@ruthesis:\\
\supervisors@ruthesis{}\\
\examinerheading@ruthesis:\\
\examiners@ruthesis{}
%\examinerheading@ruthesis:\\%% MSc old template
%\examiners@ruthesis{}
\end{tabular}
}% end sigtextfont
\end{cover}
@@ -302,11 +298,6 @@
\textbf{#1}\par\vspace{1ex}}
{\par\end{coverleft}\newpage}
%% ----- 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}}
%% ----- END OF FRONT MATERIALS ---------------------------------------------------------------