until the recent update of memoir I used the subfigure package without
any problem. With the new memoir
version I'm not able to compile mt thesis. A minimum example is
"\documentclass{memoir}
\usepackage{subfigure}
\begin{document}
test
\end{document}"
After LaTeXing it end up with the error message
"! LaTeX Error: Command \c@lofdepth already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.99 \newcounter{lofdepth}
? x"
Does anyone knows how to fix this?
Tiago
1) The subfigure package is obsolete; try moving to the subfig package
(which doesn't cause those errors) which claims to provide an easy migration
path for subfigure users.
2) Memoir includes all the functionality of the subfigure package (with
subfigure's author's agreement) so you don't actually need it.
3) If you really want to stick to subfigure try the following in your
preamble before calling for the package.
\documentclass[...]{memoir}
...
\makeatletter
\let\c@lofdepth\relax
\let\c@lotdepth\relax
\makeatother
\usepackage{subfigure}
You might also have to do a \renewcommand on \@cftl@subfigtab to restore its
original definition as given in section 20.5 of memoir.dtx
Peter W.
I was not aware that subfigure had become obsolete. I just made the
migration and everything works fine.
Many thanks for memoir!
Tiago