自定义方程列表页面中方程编号与其描述之间的间距

自定义方程列表页面中方程编号与其描述之间的间距

我目前正在撰写论文,并被要求在论文开头列出一个方程式列表,类似于图表列表或表格列表。编译时,“方程式编号”的后一个数字与其各自描述的首字母重叠。我想要做的是像我使用 LaTeX 内部宏为图表和表格列表设置距离一样,就像我在以下代码中所做的那样。

\makeatletter
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3em}}% 3em instead of 2.3em
\renewcommand{\@pnumwidth}{2em} 
\let\l@table\l@figure
\makeatother

但是,由于这不是 LaTeX 内部宏的定义部分,所以我不确定如何执行类似的命令。

\documentclass[12pt,a4paper,oneside]{report}
\usepackage{tocloft}
\usepackage{amsmath}

\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}

\begin{document}

\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}

\listofmyequations

\newpage

\chapter{1}
\begin{equation}\label{eq:Bragg1}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law1}

\begin{equation}\label{eq:Bragg2}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law2}

\begin{equation}\label{eq:Bragg3}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law3}

\begin{equation}\label{eq:Bragg4}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law4}

\begin{equation}\label{eq:Bragg5}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law5}

\begin{equation}\label{eq:Bragg6}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law6}

\begin{equation}\label{eq:Bragg7}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law7}

\begin{equation}\label{eq:Bragg8}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law8}

\begin{equation}\label{eq:Bragg9}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law9}

\begin{equation}\label{eq:Bragg10}
        n\lambda = 2d_{hk\ell} \: sin\theta
    \end{equation}
        \myequations{Bragg's Law10}

\end{document}    

答案1

一个简单的修复包括改变

\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}

\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}\qquad #1}\par}

除非你的论文章节中有超过 999 个方程式 [!],否则这应该足够了……

相关内容