It would serve the community somewhat better, if you'd restrict yourself to one problem per thread, IMHO.
Having said that, your
Code: Select all
! LaTeX Error: Command \c@lofdepth already defined.
and a similar error message regarding \c@lotdepth stem from the fact that the
tocloft package you loaded earlier
also defines those counters (
\c@*
is the internal name for counter `*').
You may get away by passing the subfigure option to package tocloft, but you may reconsider using the
subfigure package, at all: it has been superseded by the
subfig package almost 2 decades ago...another alternate may be the
subcaption package.
KR
Rainer