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
Graphics, Figures & Tables ⇒ adapting space between table and caption
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
adapting space between table and caption
You should adjust this space with the caption package. Load it with a special option.
More details can be found in the manual of the package.
Best regards
Thorsten
Code: Select all
\usepackage[font=small,labelfont=bf,tablepositon=top]{caption}
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: adapting space between table and caption
\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.
Re: adapting space between table and caption
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
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
Re: adapting space between table and caption
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.
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.