Removing dead and unused code

This commit is contained in:
2024-11-15 19:27:41 +00:00
parent 20313268f1
commit 2750d295be

View File

@@ -9,8 +9,9 @@
%% Details at LICENSE.md %% Details at LICENSE.md
%% --------------- Identification ---------------------------- %% --------------- Identification ----------------------------
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ruthesis}[2024/11/07 RU Thesis Formatting V3.1] \ProvidesPackage{ruthesis}[2024/11/15 RU Thesis Formatting V3.2]
%% --------------- Option Processing-------------------------- %% --------------- Option Processing--------------------------
%% The forcegraphics option renders graphics even in draft mode
\DeclareOption{forcegraphics}{% \DeclareOption{forcegraphics}{%
\PassOptionsToPackage{final}{graphicx} \PassOptionsToPackage{final}{graphicx}
\PassOptionsToPackage{final}{pdfpages} \PassOptionsToPackage{final}{pdfpages}
@@ -50,7 +51,7 @@ BoldItalicFont={*-BoldItalic}]
%% ---------------- Graphics ------------------------------ %% ---------------- Graphics ------------------------------
\RequirePackage{graphicx} \RequirePackage{graphicx}
%% GraphicsX converts and includes graphics intelligently %% GraphicsX converts and includes graphics intelligently which is needed for jpg, png, etc.
%% ---------------- URLs and Paths ----------------------------- %% ---------------- URLs and Paths -----------------------------
\PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url} \PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url}
@@ -59,14 +60,6 @@ BoldItalicFont={*-BoldItalic}]
%% Watch out that you leave a space after a last \ e.g. \path{C:\ } %% 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 %% Warning: allowmove makes URLs not-fragile, so they can go in things that move
%% If this breaks you will get very very weird errors %% If this breaks you will get very very weird errors
%% ---------------- Miscellaneous Packages ----------------------
%% ---------------- Fonts -----------------------------
%% Important: The template has switched to STIX2 fonts and memoir defaults
%% to massively simplify font selection. You should not need to mess with fonts.
% save the current font size
\newlength{\normaltextsize}
\setlength{\normaltextsize}{\f@size pt}
%% ---------------- Main Code ----------------------------- %% ---------------- Main Code -----------------------------
%% Remember that we can declare commands (to make fragile things safe) %% Remember that we can declare commands (to make fragile things safe)
@@ -167,12 +160,12 @@ in this publication does not imply, even in the absence of a specific statement
\disableindents% \disableindents%
\SingleSpacing}% \SingleSpacing}%
{\enableindents{}}% {\enableindents{}}%
\newenvironment{coveranyside}%This is material that can start on even or odd % \newenvironment{coveranyside}%This is material that can start on even or odd
{ \clearpage% % { \clearpage%
\thispagestyle{cover}% % \thispagestyle{cover}%
\disableindents% % \disableindents%
\SingleSpacing}% % \SingleSpacing}%
{\enableindents{}}% % {\enableindents{}}%
@@ -181,10 +174,6 @@ in this publication does not imply, even in the absence of a specific statement
\begin{center}\em} \begin{center}\em}
{\end{center}\normalfont\end{vplace}\end{cover}} {\end{center}\normalfont\end{vplace}\end{cover}}
%%%%%%%%%%%% DRAFT AND PROOF MARKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\draftmark}{}
\newcommand{\draftbigmark}{}
%%% Page styles Memoir Manual ch7.2 p109 %%% Page styles Memoir Manual ch7.2 p109
\aliaspagestyle{book}{simple} \aliaspagestyle{book}{simple}
\aliaspagestyle{chapter}{plain}%At the beginning we want page numbers on chapters \aliaspagestyle{chapter}{plain}%At the beginning we want page numbers on chapters
@@ -213,26 +202,20 @@ in this publication does not imply, even in the absence of a specific statement
%%% Section numbering and the Table of Contents %%% Section numbering and the Table of Contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
\maxsecnumdepth{subsubsection} % default by \mainmatter in preamble \maxsecnumdepth{subsubsection} % default by \mainmatter in preamble
%\setsecnumdepth{subsubsection} % can be changed later
\maxtocdepth{subsubsection} % default by \mainmatter in preamble \maxtocdepth{subsubsection} % default by \mainmatter in preamble
%\settocdepth{subsubsection} % can be changed later
%%% Code to include files if they exist %%% Code to include files if they exist
\newcommand{\InputIfExists}[1]{\IfFileExists{#1}{\input{#1}}{}} \newcommand{\InputIfExists}[1]{\IfFileExists{#1}{\input{#1}}{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TWEAKS %% TWEAKS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% Some adjustments to float placement %% Some adjustments to float placement
\setcounter{topnumber}{5} \def\topfraction{1} \setcounter{bottomnumber}{4} \setcounter{topnumber}{5} \def\topfraction{1} \setcounter{bottomnumber}{4}
\def\bottomfraction{1} \setcounter{totalnumber}{10} \def\textfraction{0} \def\bottomfraction{1} \setcounter{totalnumber}{10} \def\textfraction{0}
\def\floatpagefraction{.5} \def\floatpagefraction{.5}
%\def\@makefnmark{\rlap{\@textsuperscript{\@thefnmark}}}
%% Not sure why there was a footnote adjustment on the cover
%% Disabling for now.
%% Penalties for various text placement issues %% Penalties for various text placement issues
%% They can cause strange paragraph spacing on some pages %% They can cause strange paragraph spacing on some pages
%% Disabling for now --foley %% Disabling for now --foley
@@ -246,8 +229,6 @@ in this publication does not imply, even in the absence of a specific statement
%% Allowing ragged bottoms keeps the spacing consistent between paragraphs %% Allowing ragged bottoms keeps the spacing consistent between paragraphs
%% Alternatively: \setlength{\parskip}{0pt} %% Alternatively: \setlength{\parskip}{0pt}
%\newcommand{\draftnote}[1]{\ifdraft{{\color{gray}#1}}}
%% We need the paralist and dashrule package in order to format the %% title and signature pages. %% We need the paralist and dashrule package in order to format the %% title and signature pages.
%% These could be refactored to remove the dependency %% These could be refactored to remove the dependency
\RequirePackage{paralist} \RequirePackage{paralist}
@@ -255,7 +236,6 @@ in this publication does not imply, even in the absence of a specific statement
%% Information about Institution, Author, Degree, and Program %% Information about Institution, Author, Degree, and Program
\newcommand{\theInstitution}{Reykjav\'{\i}k University}% \newcommand{\theInstitution}{Reykjav\'{\i}k University}%
\newcommand{\theDocumentType}{Dissertation} \newcommand{\theDocumentType}{Dissertation}
\newcommand{\theDegreeAbbrv}{Ph.D.} \newcommand{\theDegreeAbbrv}{Ph.D.}
\newcommand{\theDegreeLong}{Doctorate} \newcommand{\theDegreeLong}{Doctorate}
@@ -272,9 +252,6 @@ in this publication does not imply, even in the absence of a specific statement
% Leave blank % Leave blank
\renewcommand{\theSchool}{#6} \renewcommand{\theSchool}{#6}
} }
\newcommand{\theDegreeAndDepartment}{\theDegreeLong (\theDegreeAbbrv) in \theProgram{}}
\newcommand{\supervisors@ruthesis}{\item No Advisor} \newcommand{\supervisors@ruthesis}{\item No Advisor}
\newcommand{\Supervisors}[1]{\renewcommand{\supervisors@ruthesis}[1]{#1}} \newcommand{\Supervisors}[1]{\renewcommand{\supervisors@ruthesis}[1]{#1}}
@@ -309,8 +286,6 @@ 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") \renewcommand{\bibname}{Bibliography} %Renaming the bibliography section (if omitted it will be named "references")
%% ----- INTERNAL TITLE PAGE WITH COMMITTEE --------------------------------------------------- %% ----- INTERNAL TITLE PAGE WITH COMMITTEE ---------------------------------------------------
%% TODO: make counter for supervisors in the very rare case that there
%% is only one supervisor
\newcommand{\DocumentDescription}[1]{\renewcommand{\maketitlehookc}{{\begin{center}#1\par\end{center}}}} \newcommand{\DocumentDescription}[1]{\renewcommand{\maketitlehookc}{{\begin{center}#1\par\end{center}}}}
%% maketitlehookd is after the date %% maketitlehookd is after the date
@@ -343,7 +318,7 @@ in this publication does not imply, even in the absence of a specific statement
\theSchool{} at \theInstitution{} for acceptance this \theSchool{} at \theInstitution{} for acceptance this
\theDocumentType{} entitled \textbf{\thetitle} \theDocumentType{} entitled \textbf{\thetitle}
submitted by \textbf{\theauthor} in partial fulfillment submitted by \textbf{\theauthor} in partial fulfillment
of the requirements for the degree of \textbf{\theDegreeAndDepartment}% of the requirements for the degree of \textbf{\theDegreeLong (\theDegreeAbbrv) in \theProgram{}}%
\vspace*{2\baselineskip} \vspace*{2\baselineskip}
\newcommand{\signline}[2]{\item \hdashrule{##2}{1pt}{1pt}\\##1} \newcommand{\signline}[2]{\item \hdashrule{##2}{1pt}{1pt}\\##1}
@@ -363,8 +338,6 @@ in this publication does not imply, even in the absence of a specific statement
\personinfo{\theauthor}{}{}{}{}\\ \personinfo{\theauthor}{}{}{}{}\\
\supervisorheading@ruthesis:\\ \supervisorheading@ruthesis:\\
\supervisors@ruthesis{}\\ \supervisors@ruthesis{}\\
%\examinerheading@ruthesis:\\%% MSc old template
%\examiners@ruthesis{}
\end{tabular} \end{tabular}
}% end sigtextfont }% end sigtextfont
\end{cover} \end{cover}