From 261a14d385d75a815792ec0e9599d0f6beaa4d3d Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Mon, 27 May 2024 09:44:44 +0000 Subject: [PATCH 1/4] Added hyperref back in --- main.tex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.tex b/main.tex index 474f9ca..4283a69 100644 --- a/main.tex +++ b/main.tex @@ -5,15 +5,16 @@ %% a4paper or b5paper: paper stock size. %% If A4, show cut lines. If b5, no cut lines. + +%% RU Thesis format setup +\usepackage[]{ruthesis} + %% What language is the document in? %% English must always be available for biblatex/biber to work properly \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{icelandic} -%% RU Thesis format setup -\usepackage[]{ruthesis} - %%% Setup citations \usepackage[backend=biber,style=ieee]{biblatex} \addbibresource{references.bib} @@ -32,6 +33,8 @@ %% for the graphicx package (already loaded). This may be case-sensitive. %% LaTeX will search from left to right in the list, so you can put "cropped" versions +\PassOptionsToPackage{hidelinks}{hyperref}%disable boxes around links +\usepackage{hyperref}%This must be the last package loaded %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From ad15e98bc05de5e309f2b80929ced1b762948e51 Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Mon, 27 May 2024 09:45:34 +0000 Subject: [PATCH 2/4] whitespace and polyglossia testing --- custom.sty | 1 - test.tex | 66 +++++++++--------------------------------------------- 2 files changed, 10 insertions(+), 57 deletions(-) diff --git a/custom.sty b/custom.sty index dec7a94..acc63f6 100644 --- a/custom.sty +++ b/custom.sty @@ -30,7 +30,6 @@ \usepackage{siunitx} %% \SI{9.82}{\meter\per\second\square} - %% FIXME system for making notes to each other for what needs to %% be completed in a group document. \usepackage[layout=inline]{fixme} diff --git a/test.tex b/test.tex index 30655ee..0185e30 100644 --- a/test.tex +++ b/test.tex @@ -1,72 +1,25 @@ \documentclass{memoir} -\usepackage[online,IS]{ruthesis} -\usepackage[useregional]{datetime2} -\usepackage{xparse}%Latex3 argument parsing - +%\usepackage[useregional]{datetime2} +\usepackage{polyglossia} +\setdefaultlanguage{icelandic} +\usepackage{stix2} %\usepackage{graphicx} \title{Minimal Document for Testing} \author{Joseph T. Foley \and Someone Else} % \author: Use \and as a separator and \thanks{details} for additional info -\date{2020}{2}{2} +%\date{2020}{2}{2} %% TODO: use datetime2 to be smarter about dates -% \usepackage[icelandic,english]{babel} -% \usepackage[english,icelandic]{babel} -%\usepackage[icelandic]{babel} - \begin{document} -% \frontrequiredpages{} -%\ects{30} - - - %% Titlepage the Memoir way \maketitle - -% \babelensure{icelandic} -\selectlanguage{icelandic} -\begin{abstract} - This is a test abstract in Icelandic. - % \icelandicmonthiiname to manually create names - \today -\end{abstract} - -\selectlanguage{english} -\begin{abstract} - This is a test abstract in English. - \today -\end{abstract} - -\newpage -\chapter{Test Chapter} -\newcommand{\varEN}{***English***} -\newcommand{\varIS}{***Icelandic***} -\NewDocumentCommand{\setVar}{O{#2} m} -% ARGS: [optional use #2], {mandatory} -{ - \renewcommand{\varIS}{#1} - \renewcommand{\varEN}{#2} -} -\setVar{Universal Title} - - \begin{itemize} - \item English: \varEN{} - \item Icelandic: \varIS{} - \end{itemize} - - blah blah blah -%\copyrightpage{}%%RUM: Not mentioned -%\signaturepage{}%%RUM: "Signature page (standard format) -%\archivesigpage{}%%RUM: Not mentioned, optional, but should be required -%\abstractpage{}%%RUM: "Abstract (in English and Icelandic) - -%\mainmatter{}%%Front matter done, get down to business -%\pagestyle{headings}%default -%Test -%\backcover{} +\begin{figure} + \centering + \caption{A caption} +\end{figure} \end{document} %%%%%%%%%%%%%%%%%%%% TeXStudio Magic Comments %%%%%%%%%%%%%%%%%%%%% @@ -84,4 +37,5 @@ blah blah blah %%% Local Variables: %%% mode: latex %%% TeX-master: t +%%% TeX-engine: luatex %%% End: From b49dfd352625a22ca9b73beb00f7d4e5719a607e Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Mon, 27 May 2024 09:47:28 +0000 Subject: [PATCH 3/4] Testing FreeX fonts via Overleaf suggestion worked. --- ruthesis.sty | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ruthesis.sty b/ruthesis.sty index edcf6cf..8912951 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -9,7 +9,7 @@ %% Details at LICENSE.md %% --------------- Identification ---------------------------- \NeedsTeXFormat{LaTeX2e} -\typeout{Thesis package for Reykjavik University V3.0 <2022/05/2>, by Joseph Timothy Foley, foley at RU.IS} +\typeout{Thesis package for Reykjavik University V3.1 <2024/05/27> by Joseph Timothy Foley, foley at RU.IS} %% ---------------- Critical packages ----------------------------- \RequirePackage{etoolbox}% \newbool, \ifbool, etc. @@ -35,7 +35,7 @@ \DeclareOption{debug}{% \booltrue{debug} \typeout{ruthesis option: debug}% - \typeout{DEBUG MODE ENABLED! PREPARE FOR VERBOSITY!}} + \typeout{DEBUG MODE ENABLED: PREPARE FOR VERBOSITY!}} \DeclareOption{draft}{\booltrue{draftbool}} @@ -76,7 +76,14 @@ % Standardized STIX2 fonts that print well, display on % e-readers/screens clearly, and have compatible licensing % requirements +\RequirePackage{fontspec} \RequirePackage{stix2} + +%% https://www.overleaf.com/learn/latex/Multilingual_typesetting_on_Overleaf_using_polyglossia_and_fontspec +%% Getting a font substitution error that doesn't happen with: +%\setmainfont{FreeSerif} +%\setsansfont{FreeSans} +%\setmonofont{FreeMono} % allows UTF encoding, needed for Icelandic and other accented characters \usepackage[useregional]{datetime2} @@ -87,15 +94,12 @@ \RequirePackage{graphicx} %% GraphicsX converts and includes graphics intelligently - - %% ---------------- URLs and Paths ----------------------------- -\PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url} \RequirePackage{xurl} %% The xurl package typesets \url{} and unix file \path{} nicely. %% 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 -%% If this breaks you will get very very weird errors +% \PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url} +%% Old url package options above for reference %% ---------------- Miscellaneous Packages ---------------------- %% ---------------- Fonts ----------------------------- %% Important: The template has switched to STIX2 fonts and memoir defaults From 8c1b1726a09143f7467f749a92b76684dd00222b Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Mon, 27 May 2024 09:48:09 +0000 Subject: [PATCH 4/4] LuaLaTeX warning and pointing issues at GitHub website\ --- instructions.tex | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/instructions.tex b/instructions.tex index bf3ca3f..dcd8f59 100644 --- a/instructions.tex +++ b/instructions.tex @@ -27,14 +27,13 @@ These instructions detail how to prepare a final project report, master's thesis These instructions (unless otherwise stated) assume you are in the School of Science and Engineering or the School of Computer Science. If you are in another department, you should make sure that the template meets your specific requirements. -Critical information: The current version of the template uses lua\LaTeX{} for enhanced font, code, and language support. -It is not guaranteed to work on PDF\LaTeX{} nor classic \LaTeX. +Critical information: The current version of the template uses Lua\LaTeX{} for enhanced font, code, and language support. +{\em It will not work on PDF\LaTeX{} nor classic \LaTeX.} On debian based systems, you will need to install the \verb|texlive-luatex| package. \begin{itemize} \item Current maintainers: Joseph Timothy Foley and Marcel Kyas. - Questions, comments, complaints: \formatemail{foley AT ru.is} -% or cs-grad AT ru.is %% not sure why we had this address + Questions, comments, complaints should be submitted at \url{https://github.com/foleyj2/ru-thesis/issues} %\item To receive updates regarding the templates, subscribe at % \url{https://list.ru.is/mailman/listinfo/latex-announcements}