I know there are many questions like the title; however, I tried many ways and still cannot fix it.
\documentclass[letterpaper,oneside]{book}
\usepackage{tocloft}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage[tc]{titlepic}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{subfigure}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage[top=1.25in, bottom=1.5in, left=1in, right=1in]{geometry}
\usepackage{hyperref}
\usepackage{navigator}
%\usepackage{tcolorbox}{color}
\usepackage[usenames,dvipsnames]{color}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
allcolors=blue
}
\usepackage{amsthm}
\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
%\usepackage[colorlinks]{hyperref}
\usepackage{enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath,mathtools}
{
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\theoremstyle{definition}
\newtheorem{assumption}{Assumption}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
}
\usepackage{framed,color}
%\renewcommand{\chaptername}{}
%\renewcommand{\thechapter}{}
\renewcommand{\baselinestretch}{1.2}
However, when I compile it, it shows:
"ommand \c@lofdepth already defined."
How to fix it?
Best Answer
Load the
tocloft
package with the optionsubfigure
.Moreover, load the package
hyperref
last. (This is not related to your current problem, but may give rise to further ones.)