Graphics, Figures & Tablespreventing a line-break before a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zillions
Posts: 11
Joined: Fri Sep 04, 2009 10:45 pm

preventing a line-break before a table

Post by zillions »

I would like to have some text and then a small 2x2 table (tabular) on the same line. Now, there is an automatic line-break that's causing the table to be on the next line.

I read on another forum that ~ will prevent a line-break for text, but it doesn't seem to work in this situation.

I also thought that enclosing both the text and the table inside another table could work, but that gives some other errors.

Is there a straightforward way to accomplish this?

Thanks!

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

preventing a line-break before a table

Post by localghost »

Just provide a minimal working example (MWE). Get used to this process for future requests.


Best regards
Thorsten
Post Reply