Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a table written like this:

\begin{table}
    \centering
    \begin{tabular}{|l||c|c|}
    \hline&Column 1&Column 2\\
        \hline\hline
    cell1 & cell2 & cell3 \\
    \hline
    cell1 & cell2 & cell3 \\\hline  
    \end{tabular}
    \caption{A test caption}
    \label{tab:attempt1}
\end{table}

Now the caption is VERY NEAR the table.. Additionally, there's a big vertical white space after the caption... How can I fix that to look like any normal table with a caption?

This is the case only with tables, figures are working fine.

The caption is very close to the table, and the following text is so far underneath

share|improve this question
    
This is not the default behaviour. Which packages are you using and what \documentclass? –  Werner Jun 5 '12 at 18:25
    
Since the space is as expected in the article class, you should probably specify which class you're using. –  egreg Jun 5 '12 at 18:26
3  
how about \usepackage{caption} \captionsetup[table]{skip=10pt}? –  cmhughes Jun 5 '12 at 18:26
1  
It appears that you must have some code or package that affects this that you are not showing. Please always supply a complete document that shows the problem. article class puts a skip of size \abovecaptionskip above the caption, and sets this length to 10pt, so you should get at least that spacing. But you may be using a different class. –  David Carlisle Jun 5 '12 at 18:29
1  
@cmhughes You should turn your comment into an answer. Also the following link might be useful to add to the answer: Why should a table caption be placed above the table? –  Alan Munn Jun 5 '12 at 18:42

1 Answer 1

up vote 17 down vote accepted

You could try

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

in your preamble. On another note, have a look at Why should a table caption be placed above the table?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.