我在 LyX(Mac OS X 10.9.3 上的 2.0.6)中编写了 KOMA 脚本报告,其中每章有超过 100 个表格。对于所有超过三位数字的表格(编号章节编号点表格编号),表格列表中的表格编号和表格标题之间没有空格。
不幸的是,我给出的例子不是那么简单,因为问题仅发生在表 100 之后。
%% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/.
\documentclass[english]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{float}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\makeatother
\usepackage{babel}
\begin{document}
\title{report title}
\maketitle
\listoftables
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}[H]
\caption{A table}
\begin{tabular}{|c|c|}
\hline
& \tabularnewline
\hline
\end{tabular}
\end{table}
\end{document}
答案1
数字和标题之间的距离scrreprt
由 定义\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
。第一个值是数字前面的缩进,第二个值是标题前的距离。只需根据需要更改第二个值(在我的示例中为 3em)。
以下示例使用新值更新此命令。第二行告诉 LOF 像 LOT 一样运行,这样看起来会更美观。
% arara: pdflatex
% arara: pdflatex
\documentclass{scrreprt}
\makeatletter
%\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}} % original values in scrreprt
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3em}} % modified.
\let\l@table\l@figure
\makeatother
\begin{document}
\listoftables
\setcounter{chapter}{3}
\setcounter{table}{98}
\begin{table}
\caption{Summary of...}
\end{table}
\begin{table}
\caption{Correlation of...}
\end{table}
\begin{table}
\caption{More stuff...}
\end{table}
\end{document}
答案2
KOMA-Script 类还有一个选项:listof=flat
。然后所有浮动环境列表将以类似表格的方式打印。标题编号在第一列,标题文本在第二列,页码在第三列。第一列的宽度取决于上次运行。因此,当列表内容发生变化时,您必须运行两次。
\documentclass[listof=flat]{scrreprt}
\begin{document}
\listoftables
\setcounter{chapter}{3}
\setcounter{table}{98}
\begin{table}
\caption{Summary of...}
\end{table}
\begin{table}
\caption{Correlation of...}
\end{table}
\begin{table}
\caption{More stuff...}
\end{table}
\end{document}