LaTeX 中表格后的间隙
我注意到我的桌子后面有一些间隙。请参阅以下快照:
我的 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}
间隙正常吗?或者如何将间隙减小到正常?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
不要使用 {center} 环境将表格居中,而是尝试使用 \centering 宏。我应该是这样的
Instead of centering the tables with the {center} environment, try to use the \centering macro. I should be something like
如果查尔斯的和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.
您可以使用
\raggedbottom
You can use
\raggedbottom
您始终可以通过在垂直模式下(例如在 \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.
未删除的答案,因为 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.在您的表格中尝试一下:
\setlength\belowcaptionskip{-20pt}
try this in your tables:
\setlength\belowcaptionskip{-20pt}