表格与标题之间的间距

表格与标题之间的间距

您好,制作此表格时,标题和表格之间有很大间隙。有什么方法可以将其移除吗?

\begin{table}[H]  
{  
\renewcommand{\arraystretch}{1.5}  
\begin{center}  
\begin{tabular}{ c c c c c c }  
\textbf{\textit{Source}} & \textbf{\textit{DF}}&\textbf{\textit{SS}}&   \textbf{\textit{MS}} & \textbf{\textit{F-Value}} & \textbf{\textit{Pr  \textgreater F }}\\  
\hline  
\hline  
\( Treatment\) & 2 & 470094755.9 & 235047378.0 & 61.94 & \textless .0001\\  
\( Residual\) & 57 & 216313345.8 & 3794971.0 & &\\  
\hline   
\( Total\) & 59 & 686408101.7 & & &  \\  
\label{fig:Data Set 1 - One-Way ANOVA by Operating Region}  
\end{tabular}  
\end{center}  
}  
\caption{Data Set 1 - One-Way ANOVA by Operating Region}  
\end{table}

答案1

环境center增加了垂直空间和不应在浮动中使用除此之外,您还要创建新线路并在环境\label中进行调用tabular。这会带来两个不良后果:

  1. 你失去了标签,因为相应的计数器增加\caption
  2. 您基本上是在放置一个空的表格行,它看起来像额外的垂直空间。

那么,您的代码的一个稍微改进的版本将是

\begin{table}
\renewcommand{\arraystretch}{1.5}  
\centering
\begin{tabular}{ c c c c c c }  
\textbf{\textit{Source}} & \textbf{\textit{DF}}&\textbf{\textit{SS}}&   \textbf{\textit{MS}} & \textbf{\textit{F-Value}} & \textbf{\textit{Pr \textgreater{} F }}\\  
\hline  
\hline  
\textit{Treatment} & 2 & 470094755.9 & 235047378.0 & 61.94 & \textless .0001\\  
\textit{Residual} & 57 & 216313345.8 & 3794971.0 & &\\  
\hline   
\textit{Total} & 59 & 686408101.7 & & &  \\  
\end{tabular}  
\caption{Data Set 1 - One-Way ANOVA by Operating Region}
\label{fig:Data Set 1 - One-Way ANOVA by Operating Region}  
\end{table}

相关内容