amsbook 和 tocloft 之間的衝突

amsbook 和 tocloft 之間的衝突

我在論文中使用基於 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}

這個解決方案並不複雜,但很有效。

相關內容