当我尝试把表格居中并添加标题,使它显示为“Table 1. This is the caption.”时,无论我怎么做,表格都会出现在页面顶部。如果我不加标题,则可以将其放在文档的任何部分。我该如何解决这个问题?
\begin{table}
\caption{This is the caption.}
\begin{center}
\begin{tabular}{ | l | l | l | l |}
\hline
...
\hline
\end{tabular}
\end{center}
\end{table}