我是 LaTeX 初学者,所以如果这个问题很愚蠢,我很抱歉,但我一直找不到解决方案。我正在写一篇论文,想生成一个方程列表,类似于表格或图形列表。我采用了格梅迪纳在这里。只要每章的方程式少于 10 个,它就很好用。但是,对于 X.10 及以上的方程式,存在间距问题,如下所示。有办法解决这个问题吗?不久前有人问过一个类似的问题,但提供的建议似乎对我不起作用。(看这里)
梅威瑟:
\documentclass[notitlepage,11pt]{report}
\usepackage{graphicx}
\usepackage{tocloft}
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\begin{document}
\listofmyequations
\chapter{Chapter one}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\begin{equation}
e^{i\pi}+1=0
\end{equation}
\myequations{This is an equation.}
\end{document}
答案1
可能有更自动化的方法,但标签的宽度由长度控制\cftXnumwidth
,其中X
代表您用定义的计数器\newlistof
。然后可能的解决方案是发出例如
\addtolength{\cftmyequationsnumwidth}{1em}