[Tex/LaTex] Table caption very skinny

captionstables

I have a table like this:

\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}

Table image

The problem is that the caption is only about 1 word wide (and centered), so it takes up about 10 lines. Why would this caption not behave like a normal figure caption and simply occur page-width?

Here is a minimal working example (you need this style: 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}

Best Answer

In ACM document classes, I think you create tables via the \tbl macro.

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

See section 4.2 of the documentation for acmsmall for example.

Change the table to:

\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}