Front matter looks good with page numbers. PhD thesis commitee merged.
This commit is contained in:
219
ruthesis.sty
219
ruthesis.sty
@@ -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 ---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user