
我正在使用該包nomencl
生成縮寫列表。然而,在最近的 MiKTeX 2.9 更新(使用 TeXnicCenter)之後,我不斷收到縮寫項目的錯誤
LaTeX Error: Lonely \item--perhaps a missing list environment.
不幸的是,我無法找出 MWE(我嘗試過的 MWE 可以工作,但真正的文件卻不能)。這是我的主文檔的簡短版本(沒有所有其他標題內容和參考書目):
\documentclass{scrartcl}
\usepackage[intoc]{nomencl}
\let\abk\nomenclature
\renewcommand{\nomname}{List of Abbreviations}
\let\OrgItem\item
\renewcommand\nompreamble{\renewcommand\item[1][]{\OrgItem[##1]\dotfill
\hspace{\labelsep}}}
\setlength{\nomitemsep}{-\parsep}
\makenomenclature
\begin{document}
\printnomenclature \newpage
\include{Introduction}
\include{Methods}
\include{Results}
\end{document}
然而,如果我不包含這些章節,而是簡單地嘗試具有相同標題和一個縮寫的 MWE:
\begin{document}
\printnomenclature \newpage
This is my txt \abk{txt}{text}
\end{document}
然後一切正常。關於原因有什麼建議嗎?
答案1
問題是,其中一個縮寫被定義了兩次。刪除重複的項目後一切正常。