Testing FreeX fonts via Overleaf suggestion worked.

This commit is contained in:
2024-05-27 09:47:28 +00:00
parent ad15e98bc0
commit b49dfd3526

View File

@@ -9,7 +9,7 @@
%% Details at LICENSE.md %% Details at LICENSE.md
%% --------------- Identification ---------------------------- %% --------------- Identification ----------------------------
\NeedsTeXFormat{LaTeX2e} \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 ----------------------------- %% ---------------- Critical packages -----------------------------
\RequirePackage{etoolbox}% \newbool, \ifbool, etc. \RequirePackage{etoolbox}% \newbool, \ifbool, etc.
@@ -35,7 +35,7 @@
\DeclareOption{debug}{% \DeclareOption{debug}{%
\booltrue{debug} \booltrue{debug}
\typeout{ruthesis option: debug}% \typeout{ruthesis option: debug}%
\typeout{DEBUG MODE ENABLED! PREPARE FOR VERBOSITY!}} \typeout{DEBUG MODE ENABLED: PREPARE FOR VERBOSITY!}}
\DeclareOption{draft}{\booltrue{draftbool}} \DeclareOption{draft}{\booltrue{draftbool}}
@@ -76,7 +76,14 @@
% Standardized STIX2 fonts that print well, display on % Standardized STIX2 fonts that print well, display on
% e-readers/screens clearly, and have compatible licensing % e-readers/screens clearly, and have compatible licensing
% requirements % requirements
\RequirePackage{fontspec}
\RequirePackage{stix2} \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 % allows UTF encoding, needed for Icelandic and other accented characters
\usepackage[useregional]{datetime2} \usepackage[useregional]{datetime2}
@@ -87,15 +94,12 @@
\RequirePackage{graphicx} \RequirePackage{graphicx}
%% GraphicsX converts and includes graphics intelligently %% GraphicsX converts and includes graphics intelligently
%% ---------------- URLs and Paths ----------------------------- %% ---------------- URLs and Paths -----------------------------
\PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url}
\RequirePackage{xurl} \RequirePackage{xurl}
%% The xurl package typesets \url{} and unix file \path{} nicely. %% The xurl package typesets \url{} and unix file \path{} nicely.
%% 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 % \PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url}
%% If this breaks you will get very very weird errors %% Old url package options above for reference
%% ---------------- Miscellaneous Packages ---------------------- %% ---------------- Miscellaneous Packages ----------------------
%% ---------------- Fonts ----------------------------- %% ---------------- Fonts -----------------------------
%% Important: The template has switched to STIX2 fonts and memoir defaults %% Important: The template has switched to STIX2 fonts and memoir defaults