GeneralTable positioning

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lbtori
Posts: 1
Joined: Sun Apr 22, 2007 11:27 pm

Table positioning

Post by lbtori »

Hi,

I have several short sections and lots of tables that need to be under specific sections.. I tried the [h] positioning but they still seem to go under the next section if there's not enough space in the page. Removing the \begin{table}..\end{table} it works fine but then I can't have a caption.
Sorry, I'm quite new to LaTeX..
Any ideas?

Thanks :)
Tania

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

Table positioning

Post by localghost »

At first, specify [!ht] in the options of the table environment. An option like [h] is always overwritten by the compiler with [ht] (see log file). If that doesn't help, add the \clearpage command after each table environment to force its output. In the case that the table is very large, place it on its own page without any text by specifying [!p] in the options. The "!" parameter slackens the strong rules of LateX for placing these floats.

You can always have a caption, even without a figure or table environment. For further information refer to the documentation of the caption package or the capt-of package. Much more stuff about graphics and figures can be found in epslatex.
balfonsi
Posts: 93
Joined: Wed Mar 14, 2007 12:05 am

Re: Table positioning

Post by balfonsi »

You may use the float package, which has an H option for positioning floats (H means here and nowhere else). Have a look also at the floatrow package, which is an extension of float. Also think of the subfig package, which lets you put several tables/figures side by side.

You must know that positioning of floats in LaTeX uses a number of parameters, among which one specifies the maximum percentage of the textheight used for floats (per page). You could modify this value in your preamble. You have answers for such problems in question 327 of the uktexfaq, last version ('Moving tables and figures in LaTex'). You'll find there a list of the parameters and how to modify them.

Best regards,
B.A.
Post Reply