I am using the algorithm2e package to add some algorithms to my thesis with the following line in my preamble:
\usepackage[]{algorithm2e}
However, I am unable to add the list of algorithms to my table of contents. I get the following error message when I try to use \listofalgorithms
(./doc.loa
! Missing number, treated as zero.
<to be read again>
\edef
l.2 ...gnorespaces Simple Algorithm}}{1}{algocf.1}
I believe the issue is related to the use of these two files -- puthesis.cls and pulongtable.sty which I am required to use for my thesis. I have included a minimum working example below which throws the error when I run pdflatex on it twice.
Added by muzimuzi Z: To run the following example, you need to aquire notoccite.sty as well.
\documentclass[ece,bypass]{puthesis}
\usepackage{float}
\usepackage{hyperref}
\usepackage[]{algorithm2e}
\title{MWE}
\author{Zuko Aang}{Aang, Zuko}
\campus{Indianapolis}
\begin{document}
\volume
\listofalgorithms
\chapter{Hello}
\section{Test}
\begin{algorithm}[H]
\caption{Simple Algorithm}
Hello
\label{alg:Simple Algorithm}
\end{algorithm}
\end{document}
Any help would be much appreciated. Thanks