使用 LuaLaTex 時缺少插入的控制序列

使用 LuaLaTex 時缺少插入的控制序列

當我嘗試編譯 LuaLaTex 範本檔案時,出現以下錯誤。

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

我將分享相關的 Overleaf 項目,並且我甚至允許您對其進行編輯。內容並不重要。

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

以下是 Overleaf 的更多資訊。

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

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

這是 LuaTeX,版本 beta-0.80.0 (TeX Live 2015/Debian) (rev 5238) (format=lualatex 2016.3.4) 2016 年 3 月 24 日 10:51 \write18 啟用。文件:行:錯誤樣式訊息已啟用。

答案1

此模板使用該類別rapport3作為後端。考慮以下最小範例文件:

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

當在 Overleaf 上進行編譯時,會報告相同的錯誤。不幸的是,我無法在本機上的當前版本的 TeX Live(來自 Debian不穩定儲存庫的四天前版本)上重現該錯誤,因此任何進一步的偵錯都是有問題的。從好的方面來說,這意味著這應該只是一個 Overleaf 問題。

答案2

感謝 @Witiko 的最小範例,發現問題是由於polyglossiaUbuntu 上 TeX Live215 的特定版本(Overleaf 正在運行)造成的。將最新版本上傳到專案後polyglossia.stypolyglossia.lua最小範例和fithesis(LuaLaTeX 版本)現在都可以正常編譯。

相關內容