如何调整表格列表中的条目(在书籍文档类中),以便每个条目都有悬挂缩进?如果可能的话,我宁愿不使用包,但也会接受依赖于包的答案。
默认情况下,表格列表的格式如下:
1.1 This is a really long table caption that will wrap lines.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut dui quis
massa laoreet venenatis.
1.1 This is a really long table caption that will wrap lines.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut dui quis
massa laoreet venenatis.
我希望它看起来像这样:
1.1 This is a really long table caption that will wrap lines.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut dui
massa laoreet venenatis.
1.1 This is a really long table caption that will wrap lines.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut dui
massa laoreet venenatis.
答案1
使用包的示例tocloft
,该包在表格列表条目的第一行添加额外的 2em 悬挂缩进。有关更多信息,请查看包手册tocloft
。
\documentclass{book}
\usepackage{tocloft}
\usepackage{lipsum}
\renewcommand{\cfttabnumwidth}{4.3em} % before: 2.3em
\renewcommand{\cfttabaftersnumb}{\hspace*{-2em}}
\begin{document}
\listoftables
\chapter{title}
\begin{table}
\caption{\lipsum[2]}
\end{table}
\end{document}