Text Formatting ⇒ how to change space below tables
-
- Posts: 15
- Joined: Wed Mar 04, 2009 12:33 am
how to change space below tables
\begin{table}
blbla
\end{table}
text text
thanks
Javier
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
how to change space below tables
Code: Select all
\setlength{\textfloatsep}{1cm} %% Or whatever length
Code: Select all
\setlength{\abovecaptionskip}{1cm} % Or whatever length
Re: how to change space below tables
The space under tables and figures isn't the same: for tables, it's bigger. And it's also different in longtable.
So, is there a way to normalize this? i.e., all the captions with the same space under the table/fig/longtable, and between them and the text under them.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
how to change space below tables
how to change space below tables
Code: Select all
\usepackage[font=small,format=hang,parskip=1pt]{caption}
For tables, there are at least 1 cm between the table and the caption, and between caption and the next paragraph, 1.5cm. And in \longtable, 0.1 and 1.5 cm (respectively), and for \figures, 0.5 and 1.0 cm.
So, I read the caption document, and I didn't find how to deal with this.
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
how to change space below tables
Code: Select all
\usepackage[figureposition=bottom,tableposition=top]{caption}
-- Zapp Brannigan, Futurama (season 1, episode 4)
Re: how to change space below tables
By the way, the \longtable uses its own spaces…
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
how to change space below tables
you could also check if the reason is that LaTeX tries to fill the pages to equal height by inserting some space, in flush bottom mode. Try \raggedbottom in the preamble if you wish to avoid that.
Stefan
Re: how to change space below tables
The problem with the \longtable is that it doesn't need the \begin{center} (and of course, the \end{center}) before the \longtable. Without the {center} the spaces under the table are those that I set up.