开发者

Gap after table in LaTeX

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

Gap after table in LaTeX

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}  
\includ开发者_开发知识库egraphics[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?


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}


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.


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.


You can use \raggedbottom

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

\raggedbottom


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜