我想在图表列表中的章节内的项目之间添加一些小空格。它应该与\setlength{\cftbeforechapskip}{Xpt}
我使用的目录兼容。
我的代码是:
\documentclass[oneside,12pt]{book}
\usepackage[titles]{tocloft}
\begin{document}
\listoftables
\listoffigures
\setlength{\cftbeforechapskip}{100pt}
\tableofcontents
\chapter{a}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure1} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure2} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure3} \end{table}
\begin{figure} \caption{Performance at peak G-measure1} \end{figure}
\begin{figure} \caption{Performance at peak G-measure2} \end{figure}
\begin{figure} \caption{Performance at peak G-measure3} \end{figure}
\chapter{b}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure4} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure5} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure6} \end{table}
\begin{figure} \caption{Performance at peak G-measure4} \end{figure}
\begin{figure} \caption{Performance at peak G-measure5} \end{figure}
\begin{figure} \caption{Performance at peak G-measure6} \end{figure}
\end{document}
谢谢。
答案1
您可以重新定义\cftfigafterpnum
,\cfttabafterpnum
以在每个章节的条目之间添加所需的空间量;在我的示例中,我使用了5pt
,只是为了说明,但可以使用任何其他所需的长度:
\documentclass[oneside,12pt]{book}
\usepackage[titles]{tocloft}
\setlength\cftbeforechapskip{100pt}
\renewcommand\cftfigafterpnum{\vskip5pt\par}
\renewcommand\cfttabafterpnum{\vskip5pt\par}
\begin{document}
\listoftables
\listoffigures
\tableofcontents
\chapter{a}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure1} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure2} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure3} \end{table}
\begin{figure} \caption{Performance at peak G-measure1} \end{figure}
\begin{figure} \caption{Performance at peak G-measure2} \end{figure}
\begin{figure} \caption{Performance at peak G-measure3} \end{figure}
\chapter{b}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure4} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure5} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure6} \end{table}
\begin{figure} \caption{Performance at peak G-measure4} \end{figure}
\begin{figure} \caption{Performance at peak G-measure5} \end{figure}
\begin{figure} \caption{Performance at peak G-measure6} \end{figure}
\end{document}
LoT 的图片:
LoF 的图像:
顺便说一句,仅使用[h]
浮动放置规范可能会过于严格。