Graphics, Figures & Tablesadapting space between table and caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
emcallen
Posts: 4
Joined: Sat May 09, 2009 7:30 pm

adapting space between table and caption

Post by emcallen »

Hi,

I would like to change the space between a table and his caption. I learned that you can do it with the command "\abovecaptionskip", but i'm wondering what the exact command is; i suppose that i have to add a distance, but i've tried "\abovecaptionskip{5pt}", but this isn't working.

Does anyone know the exact command?

Thank you,
Evelien

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

adapting space between table and caption

Post by localghost »

You should adjust this space with the caption package. Load it with a special option.

Code: Select all

\usepackage[font=small,labelfont=bf,tablepositon=top]{caption}
More details can be found in the manual of the package.


Best regards
Thorsten
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: adapting space between table and caption

Post by Juanjo »

\abovecaptionskip is not a command but a length. You can follow the advice of localghost or try \setlength{\abovecaptionskip}{5pt} written in a proper place.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
sinita
Posts: 9
Joined: Fri Mar 18, 2011 12:58 am

Re: adapting space between table and caption

Post by sinita »

hey there,
I am new here and need some help!
I created a table on Latex but there is not much space between the table and its caption.
What coding can I enter so that it has some spacing between the table and its caption!

My latex coding is:

\begin{table}[h]
\begin{tabular}{| c || c | l |}
\hline
n & \# & parts \\ \hline
1 & 1& 1 \\ \hline

\end{tabular}
\caption{\label{table2}parts}
\end{table}

Any help will be appreciated.

Many Thanks
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: adapting space between table and caption

Post by sommerfee »

Please try the solution posted above, i.e. either setting \abovecaptionskip or using the skip= option of the caption package.

If neither works for you we need a minimal but complete example code (and not just a code snipped!) showing the problem, so we can analyse and repair it.
Post Reply