
패키지를 사용하여 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
문제는 약어 중 하나가 두 번 정의되었다는 것입니다. 중복 항목을 제거한 후에는 모든 것이 잘 작동합니다.