I use the algorithm and algorithmicx packages to type algorithms in a paper and my main document class is amsart. All is well until I try to use \listofalgorithms. This returns a variety of error messages, some of which I've been able to work around thanks to other threads on this website. I am now stuck at the following and here is a (very) minimal working example:
\documentclass{amsart}
\usepackage{algorithmic}
\let\chapter\section % Conflict fix found on this site.
\usepackage[norelsize]{algorithm} % [norelsize] fixes another conflict.
\begin{document}
\listofalgorithms % This is the problematic command.
\end{document}
This MWE uses algorithmic but the same behavior occurs with algorithmicx.
Running this through pdflatex returns the error
! Missing } inserted.
<inserted text>
}
l.7 \listofalgorithms
I'm hoping someone has a hint as to how to fix this.
Thanks!

algorithmknows the optionsplain,ruledandboxedfor the appearance of algorithms;nothing,part,chapter,section,subsectionandsubsubsectionfor their numbering; any other option is taken as the algorithm name (for a different language than English, for instance). – egreg Nov 27 '12 at 0:03\def\l@algorithm{\@tocline{1}{0pt}{1pc}{2.1em}{}}which seems to be compact and looks like the table of contents. – Dominique Nov 27 '12 at 0:03