# Error when compiling with lualatex

I was using the mimosis documentclass available at https://github.com/Submanifold/latex-mimosis. Compiling the default Thesis template with lualatex gives an error: Following is an MWE:

% !TeX program = lualatex
\documentclass{mimosis}

\usepackage{metalogo}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some of my favourite personal adjustments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% These are the adjustments that I consider necessary for typesetting
% a nice thesis. However, they are *not* included in the template, as
% I do not want to force you to use them.

% This ensures that I am able to typeset bold font in table while still aligning the numbers
% correctly.
\usepackage{etoolbox}

\usepackage[binary-units=true]{siunitx}
\DeclareSIUnit\px{px}

\sisetup{%
detect-all           = true,
detect-family        = true,
detect-mode          = true,
detect-shape         = true,
detect-weight        = true,
detect-inline-weight = math,
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[%
citecolor  = RoyalBlue,
urlcolor   = RoyalBlue,
]{hyperref}

\usepackage{bookmark}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% I like the bibliography to be extremely plain, showing only a numeric
% identifier and citing everything in simple brackets. The first names,
% if present, will be initialized. DOIs and URLs will be preserved.

\usepackage[%
autocite     = plain,
backend      = bibtex,
doi          = true,
url          = true,
giveninits   = true,
hyperref     = true,
maxbibnames  = 99,
maxcitenames = 99,
sortcites    = true,
style        = numeric,
]{biblatex}

\input{bibliography-mimosis}
\bibliography{Thesis}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifxetexorluatex
\setmainfont{Minion Pro}
\else
\usepackage[lf]{ebgaramond}
\usepackage[oldstyle,scale=0.7]{sourcecodepro}
\singlespacing
\fi

\renewcommand{\th}{\textsuperscript{\textup{th}}\xspace}

\newacronym[description={Principal component analysis}]{PCA}{PCA}{principal component analysis}
\newacronym                                            {SNF}{SNF}{Smith normal form}
\newacronym[description={Topological data analysis}]   {TDA}{TDA}{topological data analysis}

\newglossaryentry{LaTeX}{%
name        = {\LaTeX},
description = {A document preparation system},
sort        = {LaTeX},
}

\newglossaryentry{Real numbers}{%
name        = {$\real$},
description = {The set of real numbers},
sort        = {Real numbers},
}

\makeindex
\makeglossaries

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Incipit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{\texttt{latex-mimosis}}
\subtitle{A minimal, modern \LaTeX{} package for typesetting your thesis}
\author{Bastian Rieck}

\begin{document}

\frontmatter
\include{Sources/Title}
\include{Sources/Abstract}

\tableofcontents

\mainmatter

Hi!

% This ensures that the subsequent sections are being included as root
\bookmarksetup{startatroot}
\backmatter

\begingroup
\let\clearpage\relax
\printglossary[type=\acronymtype]
\newpage
\printglossary
\endgroup

\printindex
\printbibliography

\end{document}


Note that there is no error when compiled with the standard compiler. However, I have to use lualatex as I am using feynman-tikz which works best with lualatex.

Any help will be appreciated.

• No error for me. Can you please report the full error message as you find in the log file? – egreg Jul 5 '18 at 14:51
• @egreg I have updated the error message. This is all I get. Please check. Also note that I am using TeXstudio although I don't think IDE is an issue here. – Subho Jul 5 '18 at 15:58
• That's not what I asked for: TeXStudio is notorious for its misleading messages. You find the real one in the .log file in the same folder as your example. – egreg Jul 5 '18 at 16:01
• @egreg It is a long file. How should I put it here? – Subho Jul 5 '18 at 16:08
• Try if it works if you add \RequirePackage{luatex85} before the documentclass. Or update your system. – Ulrike Fischer Jul 7 '18 at 12:51

Your error is caused by a bug in typearea (from the KOMA-bundle) which has been resolved. Update your system or as a work-around add \RequirePackage{luatex85} before \documentclass.