![amsbook 与 tocloft 之间的冲突](https://linux22.com/image/328050/amsbook%20%E4%B8%8E%20tocloft%20%E4%B9%8B%E9%97%B4%E7%9A%84%E5%86%B2%E7%AA%81.png)
我使用基于 amsbook 类的文档类来编写我的论文,同时我想使用 tocloft 来对图表和表格列表进行样式化。但显然这两者存在冲突。简单的代码如下:
\documentclass{amsbook}
\usepackage{tocloft}
\begin{document}
\chapter{test}
\end{document}
给出了这样的错误:
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) )
我发现的唯一解决办法是这里这对我来说不起作用。有人知道如何解决这个冲突吗?
谢谢。
答案1
恐怕tocloft
与 AMS 类不兼容。您无法将其与 一起使用amsbook
。
答案2
我也使用amsbook
。由于我在很多章节中都有很多图表,因此图表编号与图表标题重叠。一个简单的解决方案是在每个标题的开头都加上\quad
。
例子:
\caption{\quad Negative example for question xxx}
这个解决方案并不复杂,但是却有效。