我正在使用 mimosis documentclass 可在https://github.com/Submanifold/latex-mimosis。使用默认的 Thesis 模板进行编译lualatex
会出现错误:
以下是 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,
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hyperlinks & bookmarks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[%
colorlinks = true,
citecolor = RoyalBlue,
linkcolor = 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
% items in the bookmark structure of your PDF reader.
\bookmarksetup{startatroot}
\backmatter
\begingroup
\let\clearpage\relax
\glsaddall
\printglossary[type=\acronymtype]
\newpage
\printglossary
\endgroup
\printindex
\printbibliography
\end{document}
请注意,使用标准编译器编译时不会出现错误。但是,我必须使用,lualatex
因为我正在使用feynman-tikz
最适合的lualatex
。
任何帮助将不胜感激。
答案1
您的错误是由 typearea 中的错误引起的(来自 KOMA 包),该错误已解决。更新您的系统或作为一种解决方法,
\RequirePackage{luatex85}
在 之前添加\documentclass
。