Text Formatting ⇒ how to change space below tables
-
- Posts: 15
- Joined: Wed Mar 04, 2009 12:33 am
how to change space below tables
Hi, I would like to change the space that separates the table to the text. any help is greatly appreciated.
\begin{table}
blbla
\end{table}
text text
thanks
Javier
\begin{table}
blbla
\end{table}
text text
thanks
Javier
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
how to change space below tables
If you mean the distance between the text and floats, try
If you mean the distance above the captions, try
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
But, what if I need the \caption under the table?
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.
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: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
how to change space below tables
LaTeX.org admin
how to change space below tables
Well, actually I'm using it:
But it only works with \figures, but it isn't working with \tables and \longtable.
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.
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
I normally use
I am not sure exactly what you want, but maybe you can modity the above code and get what you want.
Code: Select all
\usepackage[figureposition=bottom,tableposition=top]{caption}
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)
Re: how to change space below tables
Ok, I just discovered the following: this only happens on one page with little text and 3, 3-lines, floating tables with the command \begin{table}[h]. Without the [h], the space is normal, but the tables move to another page ('cause they float, jeje). I need the tables where I wrote, so I need the parameter [h]. I need help here!
By the way, the \longtable uses its own spaces…
By the way, the \longtable uses its own spaces…
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
how to change space below tables
Hi Javier,
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
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
LaTeX.org admin
Re: how to change space below tables
Ok, I solved it!!!!
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.
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.