当我显示此代码时,缩写列表没有出现,也没有出现在目录中:
\documentclass[12pt]{report}
\usepackage{lipsum}
\usepackage[intoc]{nomencl}
\makenomenclature
\usepackage[french]{babel}
\usepackage{unnumberedtotoc}
\usepackage[automark,
plainheadsepline,
headsepline,
plainfootsepline,
footsepline,
markcase=ignoreupper]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead*{\leftmark}
\cfoot*{\pagemark}
\setkomafont{pageheadfoot}{\scshape}
\usepackage{titlesec}
\usepackage[a4paper,right=20mm,left=25mm,top=30mm, bottom=40mm,%
head=14.5pt,%<- new
]{geometry}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{20pt}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\tableofcontents
\addchap{Publications}
\addchap{Acknowledgement}
\printnomenclature
\nomenclature{FCB}{FC Barcelona}
\nomenclature{ASR}{AS Roma}
\nomenclature{FCS}{FC Sévilla}
\nomenclature{FCB}{FC Bayern}
\nomenclature{JFC}{Juventus FC}
\nomenclature{LFC}{Liverpool FC}
\nomenclature{MC}{Manchester City}
\chapter{Introduction}
\lipsum
\lipsum
\chapter{state of art}
\lipsum
\chapter{theory}
\lipsum
\end{document}
答案1
以下修补程序内部,以便可以使用nomencl
的功能。unnumberedtotoc
重要的是,根据需要运行命令。请参阅您昨天的问题,您可以在第一行(或文档nomencl
)中找到它。
\documentclass[12pt]{report}
\usepackage{mwepage}
\usepackage{lipsum}
\usepackage[intoc]{nomencl}
\usepackage{etoolbox}
\tracingpatches
\patchcmd{\thenomenclature}{%
\addcontentsline{toc}{chapter}{\nomname}}
{\addchaptertocentry{\nomname}\markboth{\MakeMarkcase{\nomname}}{}}{}{}
\makenomenclature
\usepackage[french]{babel}
\usepackage[indentunnumbered]{unnumberedtotoc}%https://github.com/johannesbottcher/unnumberedtotoc/
\usepackage[automark,
plainheadsepline,
headsepline,
plainfootsepline,
footsepline,
markcase=ignoreupper]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead*{\leftmark}
\cfoot*{\pagemark}
\setkomafont{pageheadfoot}{\scshape}
\usepackage{titlesec}
\usepackage[a4paper,right=20mm,left=25mm,top=30mm, bottom=40mm,%
head=14.5pt,%<- new
]{geometry}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{20pt}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\tableofcontents
\addchap{Publications}
\addchap{Acknowledgement}
\printnomenclature
\nomenclature{FCB}{FC Barcelona}
\nomenclature{ASR}{AS Roma}
\nomenclature{FCS}{FC Sévilla}
\nomenclature{FCB}{FC Bayern}
\nomenclature{JFC}{Juventus FC}
\nomenclature{LFC}{Liverpool FC}
\nomenclature{MC}{Manchester City}
\chapter{Introduction}
\lipsum
\lipsum
\chapter{state of art}
\lipsum
\chapter{theory}
\lipsum
\end{document}
在我看来,以不同的方式就同一主题提问是毫无意义的。这似乎非常不规范。