我正在尝试将方程列表添加到我的论文中,使其与表格列表和图表列表的样式相匹配。我已经非常接近了,但最后一步却遇到了困难。如何减少“方程式..页面”行和显示第一个方程式的行之间的垂直间距?
我正在使用 tocloft 包,生成此表的代码如下所示
\newcommand{\listequationsname}{LIST OF EQUATIONS \vskip 0.0in \noindent \textnormal{EQUATION} \hfill \textnormal{PAGE}}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength{\cftmyequationsnumwidth}{2.5em}% Width of equation number in List of Equations
\setlength{\cftmyequationsindent}{2em}
我想我正在寻找另一个\setlength
命令但已浏览过tocloft
文档但似乎找不到要设置的参数。
答案1
您应该使用...\cftafterequtitle
来放置您的标题,并设置适当的长度来确定整个标题和第一个条目之间的距离(请参阅EQUATION
PAGE
\cftafterequtitleskip
2.2 更改标题在里面tocloft
文档):
\documentclass{article}
\usepackage[paper=a6paper,margin=2cm]{geometry}% Just for this example
\usepackage{tocloft}
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}}
\setlength{\cftmyequationsnumwidth}{2.5em}% Width of equation number in List of Equations
\setlength{\cftmyequationsindent}{2em}
\renewcommand{\cftafterequtitle}{\par\noindent \textnormal{EQUATION} \hfill \textnormal{PAGE}}
\setlength{\cftafterequtitleskip}{0pt}% Space between \cftafterequtitle and first list entry
% Just for this example, redefine \listofmyequations to keep the list entries for re-use.
\let\oldlistofmyequations\listofmyequations
\makeatletter
\renewcommand{\listofmyequations}{{%
\@fileswfalse\oldlistofmyequations}}
\makeatother
\usepackage{multido}% Just for this example
\begin{document}
\listofmyequations
\begin{equation} A\myequations{test1} \end{equation}
\begin{equation} B\myequations{test2} \end{equation}
\begin{equation} C\myequations{test3} \end{equation}
\begin{equation} D\myequations{test4} \end{equation}
\multido{\i=1+1}{10}{% Print 10 \listofmyequations, each with different \cftafterequtitleskip
\clearpage
\setlength{\cftafterequtitleskip}{\i\baselineskip}
\listofmyequations
}
\end{document}