Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the following packages:

\usepackage{amssymb,amsmath,graphicx} 
%\usepackage{subfigure}
\usepackage[titles,subfigure]{tocloft} 
\usepackage{epstopdf,mathrsfs}
\usepackage{algorithm} 
\usepackage{algorithmic} 
\usepackage{tabularx}
\usepackage{url}

If I just keep the subfigure package, I get error that c\@lofdepth and c\@lotdepth already defined.

Can you please help?

share|improve this question
2  
The subfigure option to tocloft includes the subfigure pacakge, so you don't need \usepackage{subfigure}. –  Peter Grill May 16 '12 at 1:17
    
Yes, that is commented out. Sorry for the confusion. –  Bill May 16 '12 at 1:18
    
1st I just had subfigure, and got the c\@lofdepth error. Now, when I added tocloft, I get the error that option clash for tocloft. –  Bill May 16 '12 at 1:19
1  
It seems that the \usepackage{subfigure} is required in my case, and compiles fine. I get \l@subfigure undefined if I don't include it. Perhaps you have older versions of the packages? –  Peter Grill May 16 '12 at 1:24
    
I am using \documentclass[print]{nuthesis} The class file is available here, if that helps. math.unl.edu/graduate –  Bill May 16 '12 at 1:26

1 Answer 1

up vote 6 down vote accepted

Your document class is derived from the memoir class, which emulates many packages, including tocloft (see chapter 9 of the manual), and has features comparable to subfig (see section 10.9). So consider dropping the extra packages, or using memoir's \DisemulatePackage command (see section 18.24) if you really just have to load them. Here's an example using subfigures that compiles fine for me on TeX Live 2011:

\documentclass{nuthesis}

\usepackage{amssymb,amsmath,graphicx}
\usepackage{epstopdf,mathrsfs}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{tabularx}
\usepackage{url}

\newsubfloat{figure}

\begin{document}

\tableofcontents
\listoffigures

\chapter{One}
\begin{figure}
\centering
\begin{minipage}{0.3\textwidth}
\centering
Figure content goes here
\subcaption{First figure}
\end{minipage}
\hfill
\begin{minipage}{0.3\textwidth}
\centering
Figure content goes here
\subcaption{Second figure}
\end{minipage}
\caption{Verbatim texts}
\end{figure}

\end{document}
share|improve this answer
    
\documentclass[print]{nuthesis} I think it is a customized class file. I have given the link in the previous comment. Thanks for your help. –  Bill May 16 '12 at 1:38
    
Your base document class is derived from the memoir class (as is the thesis class I maintain). memoir already emulates many other packages, including tocloft (see chapter 9 of the manual), and has features comparable to subfig (see section 10.9). So consider dropping the extra packages, or using memoir's \DisemulatePackage command (see section 18.24) if you really just have to load them. –  Mike Renfro May 16 '12 at 1:46
    
Editing answer to account for different document class. –  Mike Renfro May 16 '12 at 1:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.