Text FormattingOrder of tables, figures and text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
singlebinary
Posts: 12
Joined: Fri Mar 12, 2010 5:43 pm

Order of tables, figures and text

Post by singlebinary »

I would like to have the following each on its own page:

Text
Figure
Table
Text

But Latex is not letting me do that.The tables are always pushed to the end and text up. How do I say I have the figure HERE and table HERE:

Text
Text
Figure
Table

Code: Select all

Text (Page 1.)
\begin{figure}
\end{figure}   % The figure appears on Page 2
\input{tables/table10}  % This table should appear on Page 3 but refuses to do so and slips to page 4. Grrrr...! 
Text (should appear on Page 4 but is pushed by the Table to page 1. :-(

For the table file the code is: 
\begin{table}[ht]
\caption{}
\begin{tabular}{c c c c c c}
...
\end{tabular}
\end{center}
\end{table}


Please help!!  

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Order of tables, figures and text

Post by kaiserkarl13 »

It's very unclear what you wish to do from your initial post. I suspect what you want is the optional arguments to the figure and table environments. For example, \begin{table}[htbp] makes a table that is placed [h]ere if possible, at the [t]op of the page if here looks bad, at the bottom of the page if here AND the top look bad, and on its own [p]age if that fails. You can change the order or leave out letters with impunity.

If you REALLY want it HERE, regardless of how bad it is, use [H].

If you just want every float to have its own page, try the [p] option. Or you can give a \clearpage after every float, but that's sort of like typesetting with a sledgehammer (i.e., MS-Word).
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Order of tables, figures and text

Post by josephwright »

If you don't want your floats to float, use the caption package and the \captionof macro. For [H] = really here, load the float package. Good quality typography usually allows some movement of floats to avoid bad whitespace. You could use the use the float package to set the default placement spec. to [htbp], which will at least leave some flexibility.
Joseph Wright
Post Reply