我正在使用该hyperref
软件包,但无法加载tocloft
。我尝试了所有方法,包括涉及橡皮鸡的巫毒仪式让两人握手。
有没有办法让目录、图表/表格列表中出现点?另外,在我的图表/表格列表中,我将深度设置为部分,因此我看到编号和标题标题存在重叠间距问题。有没有简单的方法来纠正这个间距?
\documentclass[psamsfonts,10pt,reqno,letterpaper]{amsbook}
\usepackage{chngcntr}
\counterwithin{section}{chapter}
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
\usepackage[Lenny]{fncychap}
\ChRuleWidth{1.618pt}
\ChTitleVar{\raggedright \huge }
\ChNameVar{\raggedleft \Huge }
\usepackage[bookmarksdepth=subsection,plainpages=false]{hyperref}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\listoftables
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\begin{table}
\begin{tabular}{c}
stuff
\end{tabular}
\caption{stuff}
\end{table}
\end{document}
答案1
以下设置章节有它们的点和超链接没有抱怨。
\documentclass[a4paper]{book}
\usepackage{tocloft}
\renewcommand{\cftdot}{\normalfont.} % don't inherit the \bfseries attribute
\renewcommand{\cftchapdotsep}{4.5} % same spacing as for sections
\usepackage{hyperref}
答案2
这似乎立即起作用\usepackage{amsbook}
\makeatletter
\def\@tocline#1#2#3#4#5#6#7{\relax
\ifnum #1>\c@tocdepth % then omit
\else
\par \addpenalty\@secpenalty\addvspace{#2}%
\begingroup \hyphenpenalty\@M
\@ifempty{#4}{%
\@tempdima\csname r@tocindent\number#1\endcsname\relax
}{%
\@tempdima#4\relax
}%
\parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax
\rightskip\@pnumwidth plus4em \parfillskip-\@pnumwidth
#5\leavevmode\hskip-\@tempdima #6\nobreak\relax
\ifnum#1<0\hfill\else\dotfill\fi\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
\nobreak
\endgroup
\fi}
\makeatother