34

我只想将标题居中,而不是表格中特定列的主体。例如:

\begin{table}[!t]
\centering
\caption{
\bf{My table}}
\begin{tabular}{l|c|}
...
\end{tabular}
\end{table}

将创建一个左对齐的列和一个中心对齐的列。我希望所有标题都居中,但表格的主体实际上是左对齐的。如果每列中的条目都很宽,那么在不使标题居中的情况下左对齐或右对齐的内容看起来很奇怪(它会在标题中留下很多空白)。

其次,有没有办法强制表格在 LaTeX 中位于其自己的页面上?或者任何关于这件事的数字?

4

3 回答 3

44

使用定义标题

\multicolumn{1}{c}{Heading}

根据需要随意粘贴前导和尾随|s c

于 2010-02-04T21:53:39.150 回答
8

为了在自己的页面上放置一个表格(或任何浮动),请使用p位置参数:

\begin{table}[p]
  ...

然后它将出现在章节/部分的末尾,或者当您发出\clearpage或时\cleardoublepage

于 2010-02-04T22:00:56.940 回答
0

使用caption

\usepackage{caption} 
\captionsetup[table]{skip=6pt}    

或者

\captionsetup[table]{aboveskip=6pt}
\captionsetup[table]{belowskip=6pt}

在序言中添加

\begin{table}[!t]
\centering
\caption{\bfseries{My table}}
\begin{tabular}{l|c|}
...
\end{tabular}
\end{table}
于 2014-06-12T02:44:38.213 回答