I am using the tocloft package to generate a list of equations I have in my thesis for the table of contents. It builds successfully with the following code:
Code: Select all
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
%\refstepcounter{myequations}
%\par\noindent\textbf{Equation \theequation. #1}
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
Code: Select all
\begin{equation}
\label{eq:pythagoras}
$$\myequations{Test}$$
x^2 + y^2 = z^2
\end{equation}
Code: Select all
look at equation~\ref{eq:pythagoras}
Any ideas as to how to fix this?
Regards,
George