From a6231f8dc1d1cfb564c89118712d4eeff2ff5d97 Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Sat, 25 May 2024 12:56:05 +0200 Subject: [PATCH] Template uses LuaLaTeX and Polyglossia. --- code.tex | 5 +++-- instructions.tex | 9 +++++++-- introduction.tex | 1 + main.tex | 8 ++++++-- ruthesis.sty | 9 --------- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/code.tex b/code.tex index dc9dd47..b1c1dd3 100644 --- a/code.tex +++ b/code.tex @@ -1,6 +1,6 @@ \chapter{Code}\label{cha:code} You can put code in your document using the \texttt{listings} package, which is -loaded. Be aware that the listings +loaded. Be aware that the \texttt{listings} package does not put code in your document if you are in draft mode unless you give it the \texttt{final} option. @@ -80,5 +80,6 @@ label={src:AndroidManifest.xml}]{src/AndroidManifest.xml} %%% Local Variables: %%% mode: latex -%%% TeX-master: "PHD-NAME-YEAR" +%%% TeX-master: "main" +%%% TeX-engine: luatex %%% End: diff --git a/instructions.tex b/instructions.tex index fa229ad..5180b14 100644 --- a/instructions.tex +++ b/instructions.tex @@ -19,7 +19,7 @@ %% Macros for filling in commonly changed items -\newcommand{\TIheadofgrad}{Eyjólfur Ingi Ásgeirsson~\formatemail{eyjolfur AT ru.is} or TD Person} +\newcommand{\TIheadofgrad}{Slawomir Koziel~\formatemail{slawomir AT ru.is} or TD Person} \newcommand{\TItvdadmin}{Sigrún Þorgeirsdóttir~\formatemail{sigrunth AT ru.is}} % \begin{document} % this tells the compiler that it is time to make @@ -38,6 +38,10 @@ 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. +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} @@ -587,5 +591,6 @@ Thumbs.db %%% Local Variables: %%% mode: latex -%%% TeX-master: "main.tex" +%%% TeX-master: "main" +%%% TeX-engine: luatex %%% End: diff --git a/introduction.tex b/introduction.tex index 64382a2..b21f5a7 100644 --- a/introduction.tex +++ b/introduction.tex @@ -54,4 +54,5 @@ The test text ``Lorem Ipsum''\index{Lorem Ipsum} is from an ancient text from 45 %%% Local Variables: %%% mode: latex %%% TeX-master: "main" +%%% TeX-engine: luatex %%% End: diff --git a/main.tex b/main.tex index b9a6c48..c2f4828 100644 --- a/main.tex +++ b/main.tex @@ -1,11 +1,15 @@ %%%% This is the general thesis/project report template for most users +%%%% Make sure you have lualatex installed!!! (package texlive-luaatex) \documentclass[showtrims, b5paper]{rubook} %% RU Book options (subclass of memoir) %% a4paper or b5paper: paper stock size. %% If A4, show cut lines. If b5, no cut lines. \usepackage[]{ruthesis} -%% Options for ruthesis in []: -%% IS Icelandic is main language, otherwise default to English +%% RU Thesis format setup + +%% What language is the document in? +\usepackage{polyglossia} +\setdefaultlanguage{english}% change to icelandic if needed %%% Setup citations \usepackage[backend=biber,style=ieee]{biblatex} diff --git a/ruthesis.sty b/ruthesis.sty index d5c0200..26bff83 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -21,7 +21,6 @@ %% Booleans make it easy to enable and disable parts of the template \newbool{debug} \newbool{draftbool} -\newbool{IS} \newbool{proof} @@ -84,14 +83,6 @@ \RequirePackage{stix2} % allows UTF encoding, needed for Icelandic and other accented characters -\ifbool{IS} -{\RequirePackage[english,icelandic]{babel}}%%Icelandic main language -{\RequirePackage[icelandic,english]{babel}}%%English main language -%% Babel allows various automatic text to be in selected languages -%% But to use the options, you have to always load it, even for english -%% The languages must be specified in order. - - \usepackage[useregional]{datetime2} %% Smart manipulation of dates \renewcommand{\date}[3]{\newcommand{\thedate}{\DTMdisplaydate{#1}{#2}{#3}{-1}}}