Abstract seems to be working properly and deals with Icelandic.

This commit is contained in:
2020-02-05 22:14:16 +00:00
parent 88fbdffd3c
commit f0155f47c2
2 changed files with 38 additions and 34 deletions

View File

@@ -1,8 +1,10 @@
\documentclass[12pt,a4paper]{memoir} \documentclass[12pt,a4paper,titlepage]{memoir}
\usepackage{ruthesis} \usepackage{ruthesis}
\title{Ph.D. Dissertation Template for \theInstitution{}} \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 \author{Joseph T. Foley}%Use \and as an author separator
\date{\today}% Change this to the date that it is signed \date{\today}% Change this to the date that it is signed
\dateIS{**Date in Icelandic**}
%\DocumentInfo{TYPE}{ABBREVIATION}{DEGREE}{PROGRAM} %\DocumentInfo{TYPE}{ABBREVIATION}{DEGREE}{PROGRAM}
%\DocumentInfo{Dissertation}{Ph.D.}{Doctor of Philosophy}{Computer Science} %\DocumentInfo{Dissertation}{Ph.D.}{Doctor of Philosophy}{Computer Science}
@@ -28,10 +30,24 @@
\maketitle \maketitle
\copyrightpage{} \copyrightpage{}
\signaturepage{} \signaturepage{}
\newpage \archivesigpage{}
\begin{abstract}{Abstract}{\thetitle}{\thedate}
The abstract goes here.
It should be a fairly short summary of the entire document.
\end{abstract}
\begin{abstract}{Útdráttur}{\thetitleIS}{Dagsetning}
The abstract goes here translated into Icelandic.
It should be a fairly short summary of the entire document.
\end{abstract}
\tableofcontents{}%TODO: remove toc from toc
\mainmatter{} \mainmatter{}
\chapter{Introduction} \chapter{The First Chapter}
\section{Introduction}
\lipsum[0-20] \lipsum[0-20]
\end{document} \end{document}
%%% Local Variables: %%% Local Variables:

View File

@@ -180,6 +180,11 @@
%% Memoir titlepage definition and info at p.64 %% Memoir titlepage definition and info at p.64
%% maketitlehookc is between the author and the date %% maketitlehookc is between the author and the date
\newcommand{\thetitleIS}{**Title in Icelandic**}
\newcommand{\titleIS}[1]{\renewcommand{\thetitleIS}{#1}}
\newcommand{\thedateIS}{**Date in Icelandic**}
\newcommand{\dateIS}[1]{\renewcommand{\thedateIS}{#1}}
\renewcommand{\maketitlehookc}{\begin{center}\DegreeAbbrv@ruthesis{} \DocumentType@ruthesis{} % \renewcommand{\maketitlehookc}{\begin{center}\DegreeAbbrv@ruthesis{} \DocumentType@ruthesis{} %
\ifdef\ects@ruthesis{of \ects@ruthesis{} ECTS credits}% \ifdef\ects@ruthesis{of \ects@ruthesis{} ECTS credits}%
submitted to the \School@ruthesis\ \\% submitted to the \School@ruthesis\ \\%
@@ -231,17 +236,13 @@
\setlength{\pltopsep}{2\baselineskip} % first/top space \setlength{\pltopsep}{2\baselineskip} % first/top space
\setlength{\plparsep}{2\baselineskip} % space between entries \setlength{\plparsep}{2\baselineskip} % space between entries
\setlength{\plitemsep}{0.5\baselineskip} % space between lines \setlength{\plitemsep}{0.5\baselineskip} % space between lines
%\begin{compactitem}[]
% \signline{\date}{50mm}
% \supervisors@ruthesis{}
% \examiners@ruthesis{}
% \end{compactitem}
% % \end{minipage} \\ \par% need \par for ending the paragraph
% % Space for the signatures
{\sigtextfont% {\sigtextfont%
% change \personinfo to make the entries needed % change \personinfo to make the entries needed
% Because this is inside a command, we escape the #1 as ##1 % Because this is inside a command, we escape the #1 as ##1
\renewcommand{\personinfo}[5]{&\hdashrule{\signaturex}{1pt}{1pt}\\&##1\\\vspace{\signaturey}\\} \renewcommand{\personinfo}[5]{&\hdashrule{\signaturex}{1pt}{1pt}\\&##1\\\vspace{\signaturey}\\}
% \begin{compactitem}[]
% \signline{date}{50mm}
% \end{compactitem}
\begin{tabular}{lll} \begin{tabular}{lll}
Student:\\ Student:\\
\personinfo{\theauthor}{}{}{}{}\\ \personinfo{\theauthor}{}{}{}{}\\
@@ -259,8 +260,9 @@
%% TODO: Icelandic translation? %% TODO: Icelandic translation?
\newcommand{\archivesigpage}{ \newcommand{\archivesigpage}{
\begin{cover} \begin{cover}
\enableindents{}
The undersigned hereby grants permission to The undersigned hereby grants permission to
the \Institution{} Library to reproduce single the \theInstitution{} Library to reproduce single
copies of this \DocumentType@ruthesis{} entitled \textbf{\thetitle} copies of this \DocumentType@ruthesis{} entitled \textbf{\thetitle}
and to lend or sell such copies for private, scholarly or and to lend or sell such copies for private, scholarly or
scientific research purposes only. scientific research purposes only.
@@ -274,45 +276,31 @@
reproduced in any material form whatsoever without the reproduced in any material form whatsoever without the
author's prior written permission. author's prior written permission.
\vspace*{25mm} \vspace*{2\baselineskip}
\newcommand{\signline}[2]{\item \hdashrule{##2}{1pt}{1pt}\\##1} \newcommand{\signline}[2]{\item \hdashrule{##2}{1pt}{1pt}\\##1}
\setlength{\pltopsep}{2\baselineskip} % first/top space \setlength{\pltopsep}{2\baselineskip} % first/top space
\setlength{\plparsep}{2\baselineskip} % space between entries \setlength{\plparsep}{2\baselineskip} % space between entries
\setlength{\plitemsep}{0.5\baselineskip} % space between lines \setlength{\plitemsep}{0.5\baselineskip} % space between lines
\begin{compactitem}[] \begin{compactitem}[]
\signline{\thedate}{50mm} \signline{Date}{50mm}
\signline{\theauthor\\\DegreeLong@ruthesis}{0.75\textwidth} \signline{\theauthor\\\DegreeLong@ruthesis}{0.75\textwidth}
\end{compactitem} \end{compactitem}
\end{cover} \end{cover}
} }
\renewenvironment{abstract}[3]
%% ----- TITLE AND ABSTRACT ---------------------------------------------- {\begin{coverleft}{\centering%
%% Depending upon the selected language, one of the abstracts appears first {\titletitlefont#2\\}%%
\newcommand{\abstractpage}{%
\begin{cover}
\abstractpagetext@ruthesis
\end{cover}
}%
%% create an abstract template to minimize typing and increase
%% consistency
\newcommand{\abstractpagetext@ruthesis}[1]{
%\quad\vspace*{20mm}%
{\centering%
{\titletitlefont\thetitle\\}%%
\vspace{\baselineskip} \vspace{\baselineskip}
\theauthor\\% \theauthor\\%
\vspace{\baselineskip} \vspace{\baselineskip}
\whensigned@ruthesis\\% #3\\%
}% }%
\setlength{\parskip}{\baselineskip}% \setlength{\parskip}{\baselineskip}%
\par\vspace*{2\baselineskip}% \par\vspace*{2\baselineskip}%
\textbf{Abstract}\par\vspace{1ex}% \textbf{#1}\par\vspace{1ex}}
\abstract@ruthesis\par% {\par\end{coverleft}\newpage}
\newpage
}
%% ----- DEDICATIONS ---------- --------------------------------------------------------------- %% ----- DEDICATIONS ---------- ---------------------------------------------------------------
\newenvironment{dedications}{\begin{cover}\begin{vplace}[0.33]% ratio of space above and below \newenvironment{dedications}{\begin{cover}\begin{vplace}[0.33]% ratio of space above and below