[Tex/LaTex] Table of equations like list of figures

table of contentstocloft

I am fairly new at this and trying to put a table containing a brief description of the equations I use, into my thesis. This has proven to be quite an irritating problem. I have found a nice concise solution on the web (http://www.latex-community.org/forum/viewtopic.php?f=5&t=428) which has been very helpful (thanks to gmedina). The solution uses the tocloft package to define a new list.

The problem I now have, is that as the equation numbers get longer the text description and equation numbers overlap, can anyone help me with this? Also if anyone can explain the command clearly it be very helpful. Below is a MWE I am using texmaker and Miktex.

 %%Preamble
 \documentclass[12pt]{report}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{tocloft}
 \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
 \usepackage[pdftex]{graphicx}
 \usepackage[english]{babel}

 %%gmedina solution
 \newcommand{\listequationsname}{List of Equations}
 \newlistof{myequations}{equ}{\listequationsname}
 \newcommand{\myequations}[1]{%
 \addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}

\begin{document}

\listofmyequations

\chapter{sums}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.1}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.2}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.3}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.4}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.5}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.6}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.7}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.8}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.9}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.10}
\myequations{sum}

\end{document}

Best Answer

tocloft provides \cft<set>numwidth for the width of the number associated with an entry <set>. In your case, <set> is myequations, so we can adjust \cftmyequationsnumwidth in the following way:

enter image description here

\documentclass[12pt]{report}
\usepackage{tocloft}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}

%%gmedina solution
\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}

\listofmyequations

\chapter{sums}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.1}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.2}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.3}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.4}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.5}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.6}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.7}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.8}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.9}
\myequations{sum}

\begin{equation}
    1 + 1 = 2
\end{equation}
\label{eq:2.10}
\myequations{sum}

\end{document}

I used 2.5em, where the default is usually 1.5em.

Related Question