표 캡션 매우 마른 체형

표 캡션 매우 마른 체형

다음과 같은 테이블이 있습니다.

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

관련 정보