From fc90604094dff316d98457a06a924217921f2ab9 Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Wed, 15 Oct 2025 22:20:16 +0000 Subject: [PATCH] moved Mastercroft improvements to main-dissertation and rudissertation.sty --- main-dissertation.tex | 8 ++++- main.tex | 8 ----- rudissertation.sty | 65 +++++++++++++++++++++++++---------- ruthesis.sty | 80 +++++++++++++++++++------------------------ 4 files changed, 88 insertions(+), 73 deletions(-) diff --git a/main-dissertation.tex b/main-dissertation.tex index e3b6e32..457f4c0 100644 --- a/main-dissertation.tex +++ b/main-dissertation.tex @@ -74,7 +74,13 @@ %% TODO: get the official cover graphic and have the system fill in the fields for you \maketitle{} \disableindents{}%frontmatter material mostly doesn't need indents -\copyrightpage{} +\copyrightpage{RU Report Template}{0000-0000-0000-0000}{100}{ISBN 978-XXXX-XXXX-X-X (print version)\\ +ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: RU Printing osf.}{Printed on 900g Cardboard paper} +% If this is a PhD, register for an ISSN and ISBN, then: +% \copyrightpage{}{}{}{ISBN 978-XXXX-XXXX-X-X (print version)\\ +% ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: }{Printed on } +% For submitting in Skemman the ISBN can be replaced with the url handle ( \url{http://hdl.handle.net/1946/xxxx} ) +% Inside ruthesis.sty, the copyrightpage can be edited - there is an option to include a stamp/icon of the printer % 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}\\} diff --git a/main.tex b/main.tex index b363064..579651d 100644 --- a/main.tex +++ b/main.tex @@ -65,14 +65,6 @@ \begin{document} %% TODO: get the official cover graphic and have the system fill in the fields for you \maketitle{} -\copyrightpage{RU Report Template}{0000-0000-0000-0000}{100}{ISBN 978-XXXX-XXXX-X-X (print version)\\ -ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: RU Printing osf.}{Printed on 900g Cardboard paper} -% If this is a PhD, register for an ISSN and ISBN, then: -% \copyrightpage{}{}{}{ISBN 978-XXXX-XXXX-X-X (print version)\\ -% ISBN 978-XXXX-XXXX-X-X (electronic version)}{Printing: }{Printed on } -% For submitting in Skemman the ISBN can be replaced with the url handle ( \url{http://hdl.handle.net/1946/xxxx} ) -% Inside ruthesis.sty, the copyrightpage can be edited - there is an option to include a stamp/icon of the printer - %\signaturepage{} %Generally only for Print copies & now defunct in the Engineering department. diff --git a/rudissertation.sty b/rudissertation.sty index c638988..5ca2962 100644 --- a/rudissertation.sty +++ b/rudissertation.sty @@ -95,31 +95,46 @@ BoldItalicFont={*-BoldItalic}] \aliaspagestyle{titlinpage}{empty} %% ----- COPYRIGHT PAGE ----------------------------------------------------------------------- \RequirePackage{ccicons}% need for copyright \textcopyright{} -\hyphenation{Non-Com-mercial} -\newcommand{\copyrightpage}[1]{ +\RequirePackage{orcidlink} +\PassOptionsToPackage{hidelinks, bookmarks=true, breaklinks=true}{hyperref} + +\newcommand{\copyrightpage}[6]{ % actually in books, this is often on the left side \begin{coverleft} \begin{vplace}[1.0] % ratio of space above and below - \setlength{\parskip}{\baselineskip}%without indents, we need blank line separators \begin{flushleft} - #1 - Copyright \textcopyright{} \the\year{} \theauthor{} \ccbyncnd{} + \thetitle \\[\baselineskip] + Short title: #1\\ + \theauthor\ \orcidlink{#2} (ORCID iD #2)\\[\baselineskip] + Copyright \textcopyright{} \the\year{} \ccbyncnd \\ \end{flushleft} - This document is licensed under a Creative Commons Attribution 4.0 (CC BY-NC-SA) (\url{http://creativecommons.org/licenses/by-nc-nd/4.0/}) license. -However, this license does not cover the Reykjavik University logo (word- and figurative mark). -The Reykjavik University logo is a registered trademark and remains the intellectual property of Reykjavik University. -Any reuse, redistribution, or modification of the Reykjavik University logo is strictly prohibited without explicit written permission from Reykjavik University. - -You may copy and redistribute the material in any medium or format, provide appropriate credit, link to the license and indicate what changes you made. -You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. -You may not use the material for commercial purposes. -If you remix, transform or build upon the material, you may not distribute the modified material. - -The images or other third party material in this thesis are included in the book's Creative Commons license, unless indicated otherwise in a credit line to the material. -If material is not included in the book's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. -The use of general descriptive names, registered names, trademarks, service marks, etc. -in this publication does not imply, even in the absence of a specific statement that such names are exempt from the relevant protective laws and regulations and therefore free for general use. + This work is licensed under the \href{http://creativecommons.org/licenses/by-nc-nd/4.0/}{Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License}. + You may copy and redistribute the material in any medium or format, provide appropriate credit, link to the license and indicate what changes you made. + You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. + You may not use the material for commercial purposes. + If you remix, transform or build upon the material, you may not distribute the modified material. + The images or other third party material in this thesis are included in the book's Creative Commons license, unless indicated otherwise in a credit line to the material. + If material is not included in the book's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, + you will need to obtain permission directly from the copyright holder. + The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, + even in the absence of a specific statement that such names are exempt from the relevant protective laws and regulations and therefore free for general use. \end{vplace} + \begin{flushleft} + + + Bibliographic information: + \theauthor{}, \the\year{}, \textit{\thetitle{}}, \theDegreeAbbrv{} \theDocumentType{}, \theSchool{}, \theInstitution{}, #3 pp.\\ + \vspace*{1\baselineskip} + #4 \\ + \vspace*{1\baselineskip} + % \begin{figure}[h!] + % \includegraphics[scale=0.5]{graphics/Printer_Logo.svg} + % \end{figure} + #5\\ + #6\\ + \end{flushleft} + \vfill + \vspace*{2\baselineskip} \end{coverleft} \clearpage } @@ -302,6 +317,18 @@ in this publication does not imply, even in the absence of a specific statement \textbf{Abstract}\par\vspace{1ex}} {\par\end{cover}\newpage} +%%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%% +\AddToHook{beforedocument/before}{% + %% package hyperref needs to be last, so we use a hook + \PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links + \RequirePackage{hyperref} + \hypersetup{ + pdfauthor = {\theauthor{}}, + pdftitle = {\thetitle}, + %pdfsubject = {Templates}, + %pdfkeywords = {\theInstitution{}, Template, Thesis} + } +} %%% Local Variables: %%% mode: latex diff --git a/ruthesis.sty b/ruthesis.sty index 37df7cd..a5298e6 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -146,48 +146,43 @@ BoldItalicFont={*-BoldItalic}] } \aliaspagestyle{title}{empty} -%% ----- COPYRIGHT PAGE ----------------------------------------------------------------------- -\RequirePackage{ccicons} -\RequirePackage{orcidlink} -\PassOptionsToPackage{hidelinks, bookmarks=true, breaklinks=true}{hyperref} - -\newcommand{\copyrightpage}[6]{ +\aliaspagestyle{titlinpage}{empty} +%% ----- Inside Cover is COPYRIGHT page----------------------------------------------------------------------- +\RequirePackage{ccicons}% need for copyright \textcopyright{} +\hyphenation{Non-Com-mercial} +\newcommand{\copyrightpage}[1]{ % actually in books, this is often on the left side - \begin{coverleft} - \begin{vplace}[1.0] % ratio of space above and below - \begin{flushleft} - \thetitle \\[\baselineskip] - Short title: #1\\ - \theauthor\ \orcidlink{#2} (ORCID iD #2)\\[\baselineskip] - Copyright \textcopyright{} \the\year{} \ccbyncnd \\ - \end{flushleft} - This work is licensed under the \href{http://creativecommons.org/licenses/by-nc-nd/4.0/}{Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License}. - You may copy and redistribute the material in any medium or format, provide appropriate credit, link to the license and indicate what changes you made. - You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. - You may not use the material for commercial purposes. - If you remix, transform or build upon the material, you may not distribute the modified material. - The images or other third party material in this thesis are included in the book's Creative Commons license, unless indicated otherwise in a credit line to the material. - If material is not included in the book's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, - you will need to obtain permission directly from the copyright holder. - The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, - even in the absence of a specific statement that such names are exempt from the relevant protective laws and regulations and therefore free for general use. - \end{vplace} - \begin{flushleft} + \begin{coverleft} + \begin{vplace}[1.0] % ratio of space above and below + \setlength{\parskip}{\baselineskip}%without indents, we need blank line separators + \raggedright{} + {\Large \thetitle}\\\vspace{\baselineskip} + % Subtitle add later + \textbf{\supervisorheading@ruthesis:} \supervisors@ruthesis\par\\ + \textbf{\examinerheading@ruthesis:} \examiners@ruthesis\par\vspace*{1.5cm} - - Bibliographic information: - \theauthor{}, \the\year{}, \textit{\thetitle{}}, \theDegreeAbbrv{} \theDocumentType{}, \theSchool{}, \theInstitution{}, #3 pp.\\ - \vspace*{1\baselineskip} - #4 \\ - \vspace*{1\baselineskip} - % \begin{figure}[h!] - % \includegraphics[scale=0.5]{graphics/Printer_Logo.svg} - % \end{figure} - #5\\ - #6\\ - \end{flushleft} - \vfill - \vspace*{2\baselineskip} + + Thesis of \theECTS{} ECTS credits submitted to the \theSchool{} at Reykjavik University + in partial fulfilment of the requirements for the degree of \theDegreeAbbrv{} in \theProgram{}.\par\vspace*{1.5cm} + + Copyright \textcopyright{} \the\year{} \theauthor{} \ccbyncnd{}\\ + This document is licensed under a Creative Commons Attribution 4.0 (CC BY-NC-SA) (\url{http://creativecommons.org/licenses/by-nc-nd/4.0/}) license. +However, this license does not cover the Reykjavik University logo (word- and figurative mark). +The Reykjavik University logo is a registered trademark and remains the intellectual property of Reykjavik University. +Any reuse, redistribution, or modification of the Reykjavik University logo is strictly prohibited without explicit written permission from Reykjavik University. + +You may copy and redistribute the material in any medium or format, provide appropriate credit, link to the license and indicate what changes you made. +You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. +You may not use the material for commercial purposes. +If you remix, transform or build upon the material, you may not distribute the modified material. + +The images or other third party material in this thesis are included in the book's Creative Commons license, unless indicated otherwise in a credit line to the material. +If material is not included in the book's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. +The use of general descriptive names, registered names, trademarks, service marks, etc. +in this publication does not imply, even in the absence of a specific statement that such names are exempt from the relevant protective laws and regulations and therefore free for general use.\par + +\pubplaceyear@ruthesis + \end{vplace} \end{coverleft} \clearpage } @@ -338,11 +333,6 @@ BoldItalicFont={*-BoldItalic}] {\par\end{cover}\newpage} -%%% from the old cs template, if so desired -%\makepagestyle{oldstyle} -%\makeoddhead{oldstyle}{\footnotesize{\authorHeader@ruthesis}}{}{\footnotesize{\thepage}} -%\makeevenhead{oldstyle}{\footnotesize{\thepage}}{}{\footnotesize{\thetitle}} - %%%%%%%%%% Metadata for pdf file %%%%%%%%%%%%%%%%%%%%%% \AddToHook{beforedocument/before}{% %% package hyperref needs to be last, so we use a hook