
次のような表があります:
\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}