[OS X TeX] Problem with \usepackage[subfigure]{tocloft}

Alan Munn amunn at gmx.com
Tue Jul 27 17:52:06 EDT 2010

On Jul 27, 2010, at 5:19 PM, Amar wrote:

> I am using subfigure as an option in the tocloft package, by giving,
> \usepackage[subfigure]{tocloft}
> . However, I keep getting this error,
> ! LaTeX Error: \l at subfigure undefined.
> I am using pdflatex. I tried finding a solution for this on the net  
> but I couldn't. It would be great if someone can help

Unfortunately this isn't an adequate description of the problem.  Does  
the following document work for you? (Note that the subfig package has  
replaced the subfigure package.  As far as I know, tocloft is still  
compatible with subfig as well.)


\begin{subfloat}[Box 1]{\rule{1in}{1in}}\end{subfloat}
\begin{subfloat}[Box 2]{\rule{1in}{1in}}\end{subfloat}
%\subfigure[Box 1]{\rule{1in}{1in}} % legacy commands from subfigure
%\subfigure[Box 2]{\rule{1in}{1in}}
\caption{Two boxes}


Since this document doesn't produce the error you report, there must  
be something different in your file.   You need to trim it down to  
something like this one to see what is really causing the problem.

(I've included the old subfigure commands commented out; but loading  
subfigure and using these commands doesn't change anything.)


Alan Munn
amunn at gmx.com

More information about the MacOSX-TeX mailing list