我的论文中有一个方程式列表,使用 tocloft 构建。让我感到困扰的是,在图片列表和表格列表中,一章的图片/表格结束和下一章的开始处有垂直空间。示例:
我的方程式没有这个:
我尝试使用 \@cftasnum 命令来操作新的方程列表,我认为这会给我我需要的结果(那个或 \@cftasnumb)但我无法获得正确的语法并且我的 \renewcommand 无效。
Tocloft 定义代码示例(最后我的一些不恰当的重新定义被注释掉了):
\documentclass[12pt]{report} % use report class, set font size
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry} % specify A4 paper
\usepackage{tocloft} % used for list of equations - TAG ALL EQUATIONS WITH \myequations command
\newcommand{\listequationsname}{List of Equations}
\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
\begin{document}
\addcontentsline{toc}{chapter}{List of Equations}
\listofmyequations
\chapter{Start}
Start of chapter
\begin{equation}
\Delta N_{eff} = \frac{\Delta V_{FB} C_{ox}}{q}
\label{eqnNotHyst}
\end{equation}
\myequations{Oxide-trapped Charge and Hysteresis Voltage}
Some paragraph text
\begin{equation}
\psi_s(V_G)= \int_{V_{G1}}^{V_{G2}}(1-\frac{C_{lf}(V_G)}{C_{ox}})dV_G + \Delta
\label{eqnlitBerglund1}
\end{equation}
\myequations{Classical Berglund Integral}
\chapter{Middle}
Start of chapter
\begin{equation}
D_{it} (V_G)=\frac{C_{ox}}{q^2} \left(\frac{C_{lf}/C_{ox}}{1-C_{lf}/C_{ox}}-\frac{C_{hf}/C_{ox}}{1-C_{hf}/C_{ox}}\right)
\label{eqnhighlowDit}
\end{equation}
\myequations{High-low D$_{it}$}
Some paragraph text
\begin{equation}
\psi_s(V_G)= \int_{V_{G1}}^{V_{G2}}(1-\frac{C_{lf}(V_G)}{C_{ox}})dV_G + \Delta
\label{eqnhighlowpsi}
\end{equation}
\myequations{High-low $\psi$}
Some more paragraph text
\begin{equation}
D_{it}(\psi_s) = \frac{C_{ox}}{q} [\frac{d\psi_s}{dV_G}^{-1}-1]-C_s(\psi_s)
\label{eqntermanDit}
\end{equation}
\myequations{Terman Method for D$_{it}$}
\chapter{End}
Some text
\begin{equation}
\lambda=\frac{h}{m^*v_{th}}
\label{eqndeBroglie}
\end{equation}
\myequations{de Broglie wavelength of an electron/hole}
\end{document}
答案1
好的,现在我已经测试过了。我想我可以创建自己的 MWE,但我不会使用 tocloft。
\documentclass[12pt]{report} % use report class, set font size
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry} % specify A4 paper
\usepackage{tocloft} % used for list of equations - TAG ALL EQUATIONS WITH \myequations command
\newcommand{\listequationsname}{List of Equations}
\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
\let\oldchapter=\chapter
\renewcommand{\chapter}{\addtocontents{equ}{\protect\addvspace{10pt}}%
\oldchapter}
\begin{document}
\addcontentsline{toc}{chapter}{List of Equations}
\listofmyequations
\chapter{Start}
Start of chapter
\begin{equation}
\Delta N_{eff} = \frac{\Delta V_{FB} C_{ox}}{q}
\label{eqnNotHyst}
\end{equation}
\myequations{Oxide-trapped Charge and Hysteresis Voltage}
Some paragraph text
\begin{equation}
\psi_s(V_G)= \int_{V_{G1}}^{V_{G2}}(1-\frac{C_{lf}(V_G)}{C_{ox}})dV_G + \Delta
\label{eqnlitBerglund1}
\end{equation}
\myequations{Classical Berglund Integral}
\chapter{Middle}
Start of chapter
\begin{equation}
D_{it} (V_G)=\frac{C_{ox}}{q^2} \left(\frac{C_{lf}/C_{ox}}{1-C_{lf}/C_{ox}}-\frac{C_{hf}/C_{ox}}{1-C_{hf}/C_{ox}}\right)
\label{eqnhighlowDit}
\end{equation}
\myequations{High-low D$_{it}$}
Some paragraph text
\begin{equation}
\psi_s(V_G)= \int_{V_{G1}}^{V_{G2}}(1-\frac{C_{lf}(V_G)}{C_{ox}})dV_G + \Delta
\label{eqnhighlowpsi}
\end{equation}
\myequations{High-low $\psi$}
Some more paragraph text
\begin{equation}
D_{it}(\psi_s) = \frac{C_{ox}}{q} [\frac{d\psi_s}{dV_G}^{-1}-1]-C_s(\psi_s)
\label{eqntermanDit}
\end{equation}
\myequations{Terman Method for D$_{it}$}
\chapter{End}
Some text
\begin{equation}
\lambda=\frac{h}{m^*v_{th}}
\label{eqndeBroglie}
\end{equation}
\myequations{de Broglie wavelength of an electron/hole}
\end{document}