Graphics, Figures & Tableshow to keep the order "text -> table -> text"?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Tie
Posts: 9
Joined: Tue Dec 22, 2009 4:10 pm

how to keep the order "text -> table -> text"?

Post by Tie »

Hello all,

I have written something like that:

"some texts before the table"
\begin{table}
...
\end{table}
"some texts after the table"

As the table is floating and not small, Latex shows the order like this:

"some texts before the table"
"some texts after the table"
the table on the next page

However, the order of text->table->text is more important for me than being floating. And i do not mind having some blank lines between texts and the table.

Does anyone know how to make LaTeX respect the order?

Thanks and regards

Tie CHENG

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

how to keep the order "text -> table -> text"?

Post by josephwright »

Well, if you really don't want it to float don't use a floating environment. On the other hand, if you insist on using a floating environment but don't want it to float, load the float package and use the H specifier:

Code: Select all

\begin{table}[H]
 ...
\end{table}
Joseph Wright
Tie
Posts: 9
Joined: Tue Dec 22, 2009 4:10 pm

Re: how to keep the order "text -> table -> text"?

Post by Tie »

This is exactly what i want!

Thank you very much!

Tie CHENG
Post Reply