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

问题描述 投票:0回答:1

我正在写一篇论文,我必须在目录(ToC)中加入一个方程表(如图、表等)。我按照给出的答案 此处 并成功将方程列表添加到ToC中。但问题是不同章节的方程标签之间的垂直间距。我需要在两个不同的章节标签之间有一个间隙,就像默认的图式列表一样。我把有默认定义的图式列表等的论文.cls文件和图式列表截图附在后面。

总而言之,我的方程表在格式上应该和数字表一样

Image of list of equationsImage of list of figures

以下是方程表的最小可复制代码。

\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}
latex pdflatex latex-environment
1个回答
0
投票

我只知道手动。请在每一章的末尾添加以下命令 \addtocontents{equ}{\addvspace{1.2pc}}. 并再生托克。

© www.soinside.com 2019 - 2024. All rights reserved.