我正在尝试将命名法页面添加到经典论文模板中。由于我是新手,我发现很难弄清楚。任何帮助都非常感谢。
在 classicthesis-config.tex 中:
\usepackage[german,notintoc,norefeq,norefpage]{nomencl}
\usepackage{pdfpages}
\usepackage[gen]{eurosym}
%%%%%%%%%%% Nomencl als Section umdefiniert
\makeatletter
\def\thenomenclature{%
\section*{\nomname}
\if@intoc\addcontentsline{toc}{section}{\nomname}\fi%
\nompreamble
\list{}{%
\labelwidth\nom@tempdim
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\itemsep\nomitemsep
\let\makelabel\nomlabel}}
\makeatother
%%%%%%%%%%%%%%%%
\renewcommand{\nomname}{Nomenclature}
\renewcommand{\nomlabelwidth}{6em}
在 Contents.tex 中:
% Formelzeichenverzeichnis
\clearpage
\phatomsection
%\addcontentsline{toc}{section}{Nomenclature} % Oder intoc bei den Optionen
% \let\cleardoublepage\clearpage
\printnomenclature
答案1
要获取命名法输出:
(1)修改classicthesis-config.tex
(我称之为)在前面classicthesis-configx.tex
添加你的块\usepackage[german,notintoc,norefeq,norefpage]{nomencl} .. etc
\listfiles
(2)编译Contents.tex
(3)makeindex Contents.nlo -s nomencl.ist -o Contents.nls
从工作目录中打开的命令窗口运行。
你应该看到
Scanning input file Contents.nlo....done (2 entries accepted, 0 rejected).
Sorting entries....done (2 comparisons).
Generating output file Contents.nls....done (7 lines written, 0 warnings).
Output written in Contents.nls.
Transcript written in Contents.ilg.
(4)Contents.tex
再次编译。
这是文件 Contents.tex
\documentclass[ twoside,openright,titlepage,numbers=noenddot,%1headlines,
headinclude,footinclude,cleardoublepage=empty,abstract=on,
BCOR=5mm,paper=a4,fontsize=11pt
]{scrreprt}% from the file ClassicThesis.tex
\input{classicthesis-configx} % from the package + added block
\makenomenclature
\begin{document}
\mbox{}
\nomenclature{$c$}{Speed of light in a vacuum inertial frame}
\nomenclature{$h$}{Planck constant}
% Formelzeichenverzeichnis
\clearpage
\phantomsection
%\addcontentsline{toc}{section}{Nomenclature} % Oder intoc bei den Optionen
% \let\cleardoublepage\clearpage
\printnomenclature
\end{document}
更新
使用更简单的 MWE 并使用文件的原始设置将自行ClassicThesis.tex
生成所需的输出:makeindex
% !TeX TS-program = pdflatex
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls} % <<<added <<<<<<
\documentclass[ twoside,openright,titlepage,numbers=noenddot,%1headlines,
headinclude,footinclude,cleardoublepage=empty,abstract=on,
BCOR=5mm,paper=a4,fontsize=11pt
]{scrreprt}
\input{classicthesis-config} % from the package
\usepackage[german]{nomencl}
\makenomenclature
\begin{document}
\mbox{}
\nomenclature{$c$}{Speed of light in a vacuum inertial frame}
\nomenclature{$h$}{Planck constant}
\printnomenclature
\end{document}