表格标题很细

表格标题很细

我有一张这样的桌子:

\begin{table}
\centering
\begin{center}
\begin{tabular}{c|c|c|c}
Data set & Image size & Hole size (pix) & Total time\\
\hline
Mailbox & 459 $\times$ 489 & 30171 & 1m5s \\
Electric boxes & 688 $\times$ 478 & 45434 & 2m19s\\
Trashcan & 572 $\times$ 517 & 42734 & 1m59s\\
Air conditioners & 400 $\times$ 496 & 13709 & 23s
\end{tabular}
\end{center}
\caption{A summary of the data sets shown throughout this paper.}
\label{tab:Timing}
\end{table}

表格图像

问题是标题只有大约 1 个字宽(并且居中),因此占用了大约 10 行。为什么这个标题不像普通的图形标题那样,而是简单地出现在页面宽度中?

这是一个最小的工作示例(您需要这种风格:daviddoria.com/Uploads/acmtog.cls):

\documentclass{acmtog}
\pdfminorversion=5
\begin{document}

\begin{table}
\centering
\begin{center}
\begin{tabular}{c|c|c|c}
Data set & Image size & Hole size (pix) & Total time\\
\hline
Mailbox & 459 $\times$ 489 & 30171 & 1m5s \\
Electric boxes & 688 $\times$ 478 & 45434 & 2m19s\\
Trashcan & 572 $\times$ 517 & 42734 & 1m59s\\
Air conditioners & 400 $\times$ 496 & 13709 & 23s
\end{tabular}
\end{center}
\caption{A summary of the data sets shown throughout this paper.}
\label{tab:Timing}
\end{table}

\end{document}

答案1

ACM 文档类别,我认为您通过\tbl宏创建表格。

\begin{table}
\tbl{caption}{%                                          
\begin{tabular}
...
\end{tabular}}
\end{table}

请参阅acmsmall 的文档例如。

将表格改为:

\begin{table}
\tbl{A summary of the data sets shown throughout this paper.}{
\begin{tabular}{c|c|c|c}
Data set & Image size & Hole size (pix) & Total time\\
\hline
Mailbox & 459 $\times$ 489 & 30171 & 1m5s \\
Electric boxes & 688 $\times$ 478 & 45434 & 2m19s\\
Trashcan & 572 $\times$ 517 & 42734 & 1m59s\\
Air conditioners & 400 $\times$ 496 & 13709 & 23s
\end{tabular}}
\label{tab:Timing}
\end{table}

相关内容