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

Amar pamarnathsharma at gmail.com
Tue Jul 27 17:54:33 EDT 2010


Including both these lines did the trick
\usepackage{subfigure}
\usepackage[subfigure]{tocloft}

Thanks,
Amar
On Tue, 27 Jul 2010, Alan Munn wrote:

> 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.)
>
> \documentclass{article}
> \usepackage{subfig}
> \usepackage[subfigure]{tocloft}
>
> \begin{document}
> \begin{figure}
> \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}
> \end{figure}
>
>
> \end{document}
>
> 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
>
>
> -- 
> Alan Munn
> amunn at gmx.com
>
>
>
>



More information about the MacOSX-TeX mailing list