书籍类目录中术语的缩进

书籍类目录中术语的缩进

在此处输入图片描述

我正在写一篇论文,想使用命名法。我想将目录中的命名法条目与(献词、序言等)对齐。这是我的 MWE。谢谢。

\documentclass[a4paper, 11pt, openany]{book}
\usepackage[T1]{fontenc}
\usepackage[scaled=1.05,sups,lf]{XCharter} %Document body font
\usepackage[margin= 2cm]{geometry}
\usepackage{lipsum}
\usepackage[intoc]{nomencl}
\makenomenclature

\begin{document}

\chapter*{Dedication}
\addcontentsline{toc}{chapter}{\numberline{} Dedication}
\chapter*{Preface}
\addcontentsline{toc}{chapter}{\numberline{} Preface}
\chapter*{Acknowledgement}
\addcontentsline{toc}{chapter}{\numberline{} Acknowledgement}
\chapter*{Summary}
\addcontentsline{toc}{chapter}{\numberline{} Summary}

\tableofcontents
\printnomenclature[2.5 cm]
\listoffigures 
\listoftables  

\chapter{Chapter one}
\section{one}
\lipsum[1-3]
\section{Two}
\chapter{Chapter Two}
\section{one}
\section{Two}
\chapter{Chapter Three}
\section{one}
\section{Two}
\end{document}

答案1

您已更改未编号章节的默认对齐方式,因此请对命名法执行相同的操作。

\usepackage%[intoc]
  {nomencl}
...
\tableofcontents
\addcontentsline{toc}{chapter}{\numberline{} Nomenclature}
\printnomenclature[2.5cm]
\listoffigures
...

确保\addcontentsline\printnomenclature在同一页面上

相关内容