我有一个复杂的程序,它创建索引 seqB.idx 和相应的 seqB.ind。我希望能够使用更简单的 LuaLaTeX 程序来处理它并生成 PDF。所以我尝试了以下非常简单的示例,但它会抛出一个错误 Package imakeidx Error: Misplaced \printindex[seqB].
如何解决这个问题?有没有办法从命令行生成 PDF?
\documentclass{article}%
\RequirePackage{imakeidx}\makeindex%
\RequirePackage[unbalanced,indentunit=0.75em]{idxlayout}%
\begin{document}
\printindex[seqB]
\end{document}
使用现有的 seqB.ind 例如
\begin{theindex}
\item 2SA-3T: \hyperpage{35, 36}
\item 2SA-3T; 3K: \hyperpage{36}
\item 2SA-3T; 3K-3C: \hyperpage{39}
\item 2SA-3T; 3K-3C; 3P: \hyperpage{39}
\item 2SA-3T; 3K-3C; 3SA: \hyperpage{39}
\item 2SA-3T; 3K-3C; 4T: \hyperpage{39}
\item 2SA-3T; 3K-3C; 4K: \hyperpage{39}
\item 2SA-3T; 3K-3C; 4C: \hyperpage{39}
\item 2SA-3T; 3K-3C; 4P: \hyperpage{39}
\item 2SA-3T; 3K-3P: \hyperpage{39}
\item 2SA-3T; 3K-3P; 3SA: \hyperpage{39}
\item 2SA-3T; 3K-3P; 4T: \hyperpage{39}
\item 2SA-3T; 3K-3P; 4K: \hyperpage{39}
\item 2SA-3T; 3K-3P; 4C: \hyperpage{39}
\item 2SA-3T; 3K-3P; 4P: \hyperpage{39}
\item 2SA-3T; 3K-3M: \hyperpage{39}
\item 2SA-3T; 3K-3SA: \hyperpage{39}
\item 2SA-3T; 3K-4m: \hyperpage{39}
\item 2SA-3T; 3K-4M: \hyperpage{39}
\item 2SA-3T; 3K-4SA: \hyperpage{39}
\item 2SA-3T; 3C: \hyperpage{43}
\item 2SA-3T; 3C-3P: \hyperpage{43}
\item 2SA-3T; 3C-3P; 3SA: \hyperpage{43}
\item 2SA-3T; 3C-3P; 4T: \hyperpage{43}
\item 2SA-3T; 3C-3P; 4K: \hyperpage{43}
\item 2SA-3T; 3C-3P; 4C: \hyperpage{43}
\item 2SA-3T; 3C-3P; 4P: \hyperpage{43}
\end{theindex}