等式列表中不同章节标签之间的垂直间距调整

Vertical Spacing adjustment between different chapter's labels in the list of equations

我正在写一篇论文,我必须在目录 (ToC) 的 Table 中包含一个方程式列表(例如图表、表格等列表)。我按照给出的答案 here 成功地将方程列表添加到目录中。但问题是不同章节的方程式标签之间的垂直间距。我需要在两个不同的章节标签之间留一个空隙,就像 figures/tables 的默认列表一样。我附上 thesis.cls 文件,该文件具有 figures/tables/符号列表等的默认定义,以及图形和方程式列表截图

简而言之-shell,我的方程列表在格式方面应该像数字列表

以下是方程列表的最小可重现代码

\documentclass[11pt]{report}
\usepackage{tocloft}
\usepackage{xpatch}


\begin{document}

\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\xpretocmd{\listofmyequations}{\addcontentsline{toc}{chapter}{\listequationsname}}{}{}

\tableofcontents
\clearpage
\listofmyequations

\chapter{First chapter}
\section{First section}
\begin{equation}
E=mc^2 
\end{equation}
\myequations{Energy Equation}
\begin{equation}
F = ma 
\end{equation}
\myequations{Force equation}

\chapter{Second chapter}
\section{First section}
\begin{equation}
S = vt
\end{equation}
\myequations{displacement equation}
\end{document}

我只知道手动。请在每章末尾添加以下命令\addtocontents{equ}{\addvspace{1.2pc}}。并重新生成目录。

您可以像这样修补 \chapter 命令:

\documentclass[11pt]{report}
\usepackage{tocloft}
\usepackage{xpatch}

\newcommand{\listequationsname}{List of Equations}
\newlistof[chapter]{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\xpretocmd{\listofmyequations}{\addcontentsline{toc}{chapter}{\listequationsname}}{}{}

\makeatletter
\xpretocmd{\@chapter}{\addtocontents{equ}{\protect\addvspace{10\p@}}}{}{}{}%
\makeatother


\begin{document}

\tableofcontents
\clearpage
\listofmyequations

\chapter{First chapter}
\section{First section}
\begin{equation}
E=mc^2 
\end{equation}
\myequations{Energy Equation}
\begin{equation}
F = ma 
\end{equation}
\myequations{Force equation}

\chapter{Second chapter}
\section{First section}
\begin{equation}
S = vt
\end{equation}
\myequations{displacement equation}
\end{document}