I use a document class that is based on amsbook class for my thesis and at the same time I want to stylize the list of figures and tables with tocloft. But apparently these two are have conflicts. A simple code as:
\documentclass{amsbook}
\usepackage{tocloft}
\begin{document}
\chapter{test}
\end{document}
gives such error:
Chapter 1
! Missing } inserted.
<inserted text>
}
l.6 \chapter{test}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Too many }'s.
\l@chapter ...nt #1}\nobreak \cftchapfillnum {#2}}
\fi
l.6 \chapter{test}
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
[1
{/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test.aux) )
The only solution I found was here which doesn't work for me. Anyone has any idea how to solve this conflict?
Thank you.
tocloftis definitely incompatible withamsbook. – egreg Feb 12 '16 at 15:52amsbookis written for preparing manuscripts for the AMS and is not meant to be modified. – daleif Feb 12 '16 at 16:26amsbookandtocloftwhich is not readily resolved (or even thoroughly diagnosed). since, as has been pointed out,amsbookis styled for ams publications, a resolution for use withtocloftis not of high priority. – barbara beeton May 08 '16 at 17:33