Document Classes[package] tocloft conflicting with subfigure

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
chao
Posts: 20
Joined: Tue Jun 17, 2008 5:52 pm

[package] tocloft conflicting with subfigure

Post by chao »

Hi,
\usepackage{subfigure}
\usepackage{tocloft}

error:
/usr/share/texmf-tetex/tex/latex/tocloft/tocloft.sty:608:Command \c@lofdepth already defined. \newcounter{lofdepth}
/usr/share/texmf-tetex/tex/latex/tocloft/tocloft.sty:609:Command \c@lotdepth already defined. \newcounter{lotdepth}

I would like to use tocloft to custom my TOC LOF etc.
how to solve this problem?

thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

[package] tocloft conflicting with subfigure

Post by Stefan Kottwitz »

Hi chao,

use the subfigure option for tocloft:

Code: Select all

\usepackage[subfigure]{tocloft}
That should be mentioned somewhere in the documentation of tocloft as I remember.

Stefan
LaTeX.org admin
chao
Posts: 20
Joined: Tue Jun 17, 2008 5:52 pm

Re: [package] tocloft conflicting with subfigure

Post by chao »

Forgive me, I'm new to latex. The ability of searching document is still weak.
Thanks very much!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: [package] tocloft conflicting with subfigure

Post by Stefan Kottwitz »

Hi chao,

I wasn't criticizing, the pointer to the documentation was just meant as information if you want to look for further explanation.

Stefan
LaTeX.org admin
Post Reply