我将其用作我的方程式列表:
\documentclass{article}
\usepackage{amsmath}
\usepackage{tocloft}
\begin{document}
\newcommand{\listequationsname}{Formelverzeichnis}
\newlistof[section]{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength\cftmyequationsindent{1.5em}
\setlength\cftmyequationsnumwidth{2.3em}
\renewcommand{\cftequtitlefont}{\normalfont\Large\bfseries}
\listofmyequations
\newpage
\begin{equation}\label{eq:Eq1}
a=b
\end{equation}
\myequations{Abc \ref{eq:Eq1}}
\newpage
\begin{equation}\label{eq:Eq2}
b=c
\end{equation}
\myequations{Xyz \ref{eq:Eq2}}
\end{document}
这很好,但我需要这样的表格:
形式 1:Abc 1 . . . . . 2
形式 2:XYZ 2 . . . . . 3
答案1
更改\myequations
为
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}
{\protect\numberline{\bfseries Formel~\theequation:}#1}\par}
并放大\cftmyequationsnumwidth
。
完整示例:
\documentclass{article}
\usepackage{amsmath}
\usepackage{tocloft}
\newcommand{\listequationsname}{Formelverzeichnis}
\newlistof[section]{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}
{\protect\numberline{\bfseries Formel~\theequation:}#1}\par}
\setlength\cftmyequationsindent{1.5em}
\setlength\cftmyequationsnumwidth{5.5em}
\renewcommand{\cftequtitlefont}{\normalfont\Large\bfseries}
\begin{document}
\listofmyequations
\newpage
\begin{equation}\label{eq:Eq1}
a=b
\end{equation}
\myequations{Abc \ref{eq:Eq1}}
\newpage
\begin{equation}\label{eq:Eq2}
b=c
\end{equation}
\myequations{Xyz \ref{eq:Eq2}}
\end{document}