Template uses LuaLaTeX and Polyglossia.

This commit is contained in:
2024-05-25 12:56:05 +02:00
parent edf3a6dfb1
commit a6231f8dc1
5 changed files with 17 additions and 15 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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}

View File

@@ -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}}}