
У меня есть такая таблица:
\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}
См. раздел 4.2.документация для 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}