[Tex/LaTex] Missing control sequence inserted when using LuaLaTex

errorsluatexoverleaf

When I try to compile my LuaLaTex template file, I get the following error.

./fi-lualatex.toc:33: Missing control sequence inserted.
<inserted text>
\inaccessible
l.33 ...} sectioning commands.}{3}{subsection.2.1.1}

I will share the Overleaf project in question and I allow you to even edit it. The content is not important.

https://www.overleaf.com/4697929jgqygc

Here are some more info for Overleaf.

LOGFILE:
https://drive.google.com/file/d/0B5y_o6yDHrmNd0hoM0l4OTJhYmM/view?usp=sharing

\thesis@versiondef{v0.3.34}{2016/02/24}}

This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)
(format=lualatex 2016.3.4) 24 MAR 2016 10:51
\write18 enabled.
file:line:error style messages enabled.

Best Answer

The template uses the rapport3 class as the backend. Consider the following minimal example document:

\documentclass{rapport3}
\usepackage{polyglossia}
\begin{document}
\tableofcontents
\subsection{sectioning commands.}
\end{document}

When complied at Overleaf, the same error gets reported. Unfortunately, I can not reproduce the error on the current version of TeX Live (a four days old release from the Debian unstable repository) at my local host, so any further debugging is problematic. On the bright side, this means that this should be just an Overleaf issue.

Related Question