我将问题简化为以下示例:
\documentclass{scrbook}
\usepackage[nochapters]{classicthesis}
\usepackage{tikz}
\usepackage{makeidx}
\makeindex
\begin{document}
\index{j}
\nocite{Salsa}
\begin{thebibliography}{1}
\bibitem{Salsa}
Salsa
\end{thebibliography}
\printindex
\end{document}
我使用该命令编译该文件latexmk --pdf
并出现以下错误:
! A <box> was supposed to be here.
<to be read again>
\def
l.5 \end{theindex}
行号指的是ind
生成的文件,内容如下:
\begin{theindex}
\item j, \hyperpage{1}
\end{theindex}
该错误可以在 docker 镜像上重现:ghcr.io/xu-cheng/texlive-full