Refactored out the paralist and dashrule to only signature page

This commit is contained in:
2024-11-15 19:52:01 +00:00
parent 2750d295be
commit ba8bd83d60
3 changed files with 68 additions and 61 deletions

View File

@@ -26,6 +26,8 @@
\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
@@ -76,7 +78,7 @@
% 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
%\signaturepage{} %Generally only for Print copies and needs the rusignaturepage package
%\begin{dedications}% Optional
% I dedicate this to my spouse/child/pet/power animal.

58
rusignaturepage.sty Normal file
View File

@@ -0,0 +1,58 @@
%% ---------------------------------------------------------------------------------------------
%% LaTeX Package to setup Signature page
%% ---------------------------------------------------------------------------------------------
%% Author Joseph Timothy Foley <foley AT ru.is>
%% Questions, comments, complaints: latex@RU.IS
%% Created on 2024-11-15
%% This code is distributed under the MIT license
%% Details at LICENSE.md
%% --------------- Identification ----------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rusignaturepage}[2024/11/15 RU Thesis Signature Page]
\RequirePackage{paralist}
\RequirePackage{dashrule}
%% ----- SIGNATURE PAGE, ONLY THESIS -----------------------------------------------------
\newlength{\signaturey}
\setlength{\signaturey}{8mm}
\newlength{\signaturex}
\setlength{\signaturex}{100mm}
\newcommand{\signaturepage}{
\begin{cover}
The undersigned hereby certify that they recommend to the
\theSchool{} at \theInstitution{} for acceptance this
\theDocumentType{} entitled \textbf{\thetitle}
submitted by \textbf{\theauthor} in partial fulfillment
of the requirements for the degree of \textbf{\theDegreeLong (\theDegreeAbbrv) in \theProgram{}}%
\vspace*{2\baselineskip}
\newcommand{\signline}[2]{\item \hdashrule{##2}{1pt}{1pt}\\##1}
\renewcommand{\personinfo}[5]{\item\hdashrule{\signaturex}{1pt}{1pt}\\##1, ##2\\##3, ##4, ##5\\\vspace{\signaturey}\\}
\setlength{\pltopsep}{2\baselineskip} % first/top space
\setlength{\plparsep}{2\baselineskip} % space between entries
\setlength{\plitemsep}{0.5\baselineskip} % space between lines
{%\sigtextfont%
% change \personinfo to make the entries needed
% Because this is inside a command, we escape the #1 as ##1
\renewcommand{\personinfo}[5]{&\hdashrule{\signaturex}{1pt}{1pt}\\&##1\\\vspace{\signaturey}\\}
\begin{compactitem}[]
\signline{date}{50mm}
\end{compactitem}
\begin{tabular}{lll}
Student:\\
\personinfo{\theauthor}{}{}{}{}\\
\supervisorheading@ruthesis:\\
\supervisors@ruthesis{}\\
\end{tabular}
}% end sigtextfont
\end{cover}
}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% TeX-engine: luatex
%%% End:

View File

@@ -229,11 +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
%% Alternatively: \setlength{\parskip}{0pt}
%% We need the paralist and dashrule package in order to format the %% title and signature pages.
%% These could be refactored to remove the dependency
\RequirePackage{paralist}
\RequirePackage{dashrule}
%% Information about Institution, Author, Degree, and Program
\newcommand{\theInstitution}{Reykjav\'{\i}k University}%
\newcommand{\theDocumentType}{Dissertation}
@@ -267,14 +262,6 @@ in this publication does not imply, even in the absence of a specific statement
\item[] #1, #2\\#3, #4, #5 %Stub to be customized later
}
\newenvironment{peoplelist}
{\begin{compactitem}[\hspace{10mm}]}
{\end{compactitem}}
\newenvironment{rolelist}
{\begin{compactitem}[\hspace{10mm}]}
{\end{compactitem}}
%% Clean up some formatting for the text
\renewcommand{\thepage}{\roman{page}}
@@ -294,57 +281,17 @@ in this publication does not imply, even in the absence of a specific statement
% 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{rolelist}
% \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{peoplelist}
\begin{itemize}[label={}]\setlength\itemsep{\baselineskip}
\supervisors@ruthesis{}
\end{peoplelist}
\end{rolelist}
\end{itemize}
\end{itemize}
}\vfill}
%% ----- SIGNATURE PAGE, ONLY THESIS -----------------------------------------------------
\newlength{\signaturey}
\setlength{\signaturey}{8mm}
\newlength{\signaturex}
\setlength{\signaturex}{100mm}
\newcommand{\signaturepage}{
\begin{cover}
The undersigned hereby certify that they recommend to the
\theSchool{} at \theInstitution{} for acceptance this
\theDocumentType{} entitled \textbf{\thetitle}
submitted by \textbf{\theauthor} in partial fulfillment
of the requirements for the degree of \textbf{\theDegreeLong (\theDegreeAbbrv) in \theProgram{}}%
\vspace*{2\baselineskip}
\newcommand{\signline}[2]{\item \hdashrule{##2}{1pt}{1pt}\\##1}
\renewcommand{\personinfo}[5]{\item\hdashrule{\signaturex}{1pt}{1pt}\\##1, ##2\\##3, ##4, ##5\\\vspace{\signaturey}\\}
\setlength{\pltopsep}{2\baselineskip} % first/top space
\setlength{\plparsep}{2\baselineskip} % space between entries
\setlength{\plitemsep}{0.5\baselineskip} % space between lines
{%\sigtextfont%
% change \personinfo to make the entries needed
% Because this is inside a command, we escape the #1 as ##1
\renewcommand{\personinfo}[5]{&\hdashrule{\signaturex}{1pt}{1pt}\\&##1\\\vspace{\signaturey}\\}
\begin{compactitem}[]
\signline{date}{50mm}
\end{compactitem}
\begin{tabular}{lll}
Student:\\
\personinfo{\theauthor}{}{}{}{}\\
\supervisorheading@ruthesis:\\
\supervisors@ruthesis{}\\
\end{tabular}
}% end sigtextfont
\end{cover}
}
\renewenvironment{abstract}
{\begin{cover}{\centering%
{{\Large \thetitle}\\}%%