
약간 수정된 버전을 실행 중입니다.예pdflatex를 사용한 다음 makeindex (makeindex -s nomencl.ist -o myfile.nls myfile.nlo)
\documentclass[]{article}
\usepackage{xpatch}
\usepackage{nomencl}
\patchcmd{\thenomenclature}{\section*{\nomname}}{\relax}{\typeout{Success}}{\typeout{Failure}}
\makenomenclature
\begin{document}
text
\nomenclature[1]{$\mu$}{variable}
\printnomenclature[0.9in]
\end{document}
그러나 섹션 제목은 Nomenclature
없어야 하지만 여전히 존재합니다. 컴파일도 출력 success
되므로 길을 잃었습니다. 이것은 패키지의 버그입니까 xpatch
?
답변1
패키지 nomencl
가 최근에 업데이트되어 이제 기본적으로 패키지 를 사용합니다 tocbasic
.
기존 방식을 사용하려면 옵션을 사용하여 패키지를 호출해야 합니다 notocbasic
.
% arara: pdflatex
% arara: nomencl
% arara: pdflatex
\documentclass[]{article}
\usepackage{xpatch}
\usepackage[notocbasic]{nomencl}
\patchcmd{\thenomenclature}{\section*{\nomname}}{\relax}{\typeout{Success}}{\typeout{Failure}}
\makenomenclature
\begin{document}
text
\nomenclature[1]{$\mu$}{variable}
\printnomenclature[0.9in]
\end{document}
이 방법을 사용하면 tocbasic
를 패치해야 \tocbasic@listhead
하지만 이는 문서의 다른 부분에 부정적인 영향을 미칠 수 있습니다.
\documentclass[]{article}
\usepackage{xpatch}
\usepackage{nomencl}
\makeatletter
\patchcmd\tocbasic@listhead{\section*}{\@gobble}{}{}
\makeatother
\makenomenclature
\begin{document}
text
\nomenclature[1]{$\mu$}{variable}
\printnomenclature[0.9in]
\end{document}