LaTeX 中表格后的间隙

发布于 2024-08-29 17:17:31 字数 678 浏览 4 评论 0 原文

我注意到我的桌子后面有一些间隙。请参阅以下快照:

http://i39.tinypic.com/x3e4vd.jpg

我的 LaTeX 代码是:

\begin{table}[htb]  
\caption{Error rates VS training size in AdaBoosted stump, SVM and kNN. \label{tab:examplecount8000errerrplot}}  
\begin{center}  
\begin{tabular}{c c}  
\includegraphics[scale=0.4]{../boost.eps}   
&  
\includegraphics[scale=0.4]{../svm.eps}   \\    
\includegraphics[scale=0.4]{../knn.eps}   
& \\    
\end{tabular}  
\end{center}  
\end{table}     
%  
\subsection{Feature Numbers}

间隙正常吗?或者如何将间隙减小到正常?

I notice that there is some gap after my table. See the following snapshot:

http://i39.tinypic.com/x3e4vd.jpg

My LaTeX code is:

\begin{table}[htb]  
\caption{Error rates VS training size in AdaBoosted stump, SVM and kNN. \label{tab:examplecount8000errerrplot}}  
\begin{center}  
\begin{tabular}{c c}  
\includegraphics[scale=0.4]{../boost.eps}   
&  
\includegraphics[scale=0.4]{../svm.eps}   \\    
\includegraphics[scale=0.4]{../knn.eps}   
& \\    
\end{tabular}  
\end{center}  
\end{table}     
%  
\subsection{Feature Numbers}

Is the gap normal or how can I reduce the gap to be normal?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

菊凝晚露 2024-09-05 17:17:31

不要使用 {center} 环境将表格居中,而是尝试使用 \centering 宏。我应该是这样的

\begin{table}
\centering
...
\end{table}

Instead of centering the tables with the {center} environment, try to use the \centering macro. I should be something like

\begin{table}
\centering
...
\end{table}
小…红帽 2024-09-05 17:17:31

如果查尔斯的midtiby 的 答案无法为您解决问题,您必须调整它(因为,对于例如,在你通过之前,保证金女士不会通过你的论文),你可以欺骗长度

  • \floatsep
  • \textfloatsep
  • \intextsep

(以及他们的两列兄弟)调整浮动周围和浮动之间的间距。在这种情况下,我相信您需要 \textfloatsep

但首先要按照 Charles 和 midtiby 所说的去做,并考虑 Bears 的建议。

If Charles's and midtiby's answers don't fix it for you and you must adjust it (because, for instance the margin lady won't pass your dissertation until you do), you can diddle the lengths

  • \floatsep
  • \textfloatsep
  • \intextsep

(and their two column brethren) which adjust the spacing around and between floats. In this case I believe you want \textfloatsep.

But do what Charles and midtiby said first, and consider Bears' advice as well.

时光与爱终年不遇 2024-09-05 17:17:31

您可以使用 \raggedbottom

\begin{table}
\centering
...
\end{table}

\raggedbottom

You can use \raggedbottom

\begin{table}
\centering
...
\end{table}

\raggedbottom
梦冥 2024-09-05 17:17:31

您始终可以通过在垂直模式下(例如在 \section 之前)发出 vskip 命令(例如 \vskip{-1em})来修复垂直间距。熊市是对的:尽可能晚地推迟担心布局。应该有一种关于过早格式化的说法......

如果标题位于底部,表格对我来说会看起来更有吸引力。外观问题与标题上方和下方的空间比例与总空间量一样重要。

You can always fix vertical spacing by emitting a vskip command, say \vskip{-1em}, in vertical mode, such as before the \section. Bears is right: delay worrying about layout as late as possible. There should be a saying about premature formatting...

The table would look more attractive to me if the caption was at the bottom. The matter of appearance would be as much what is the proportion of space above and below the caption as the total amount of space.

鲜肉鲜肉永远不皱 2024-09-05 17:17:31

未删除的答案,因为 dmckee 提到了这一点。我通常反对摆弄你表达内容的方式:更好地忍受不需要的空间,改变样式文件中的内容(根据 dmckee 的建议),改变你想要表达的内容(比如标题的位置),或者放入纯粹的内容创可贴(如 vspace)。所以我不喜欢这个答案,因为用 \\ 终止表格的每一行使它们更容易维护,就像用分号结束 C 块一样。

删除最后一个 \\ 在表格环境中。

Undeleted answer, since this was referred to by dmckee. I'm generally against fiddling about with the way you express content: better live with the unwanted space, change things in the style files (per dmckee's suggestion), change what you want to express (like where captions are), or put in pure band-aid (like vspace). So I don't like this answer, since terminating every row of a tabular with a \\ makes them easier to maintain, like ending C blocks with a semicolon.

Delete the last \\ in the tabular environment.

北方。的韩爷 2024-09-05 17:17:31

在您的表格中尝试一下:\setlength\belowcaptionskip{-20pt}

try this in your tables: \setlength\belowcaptionskip{-20pt}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文