Graphics, Figures & Tablestext flowing off of the end of the page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dalupus
Posts: 2
Joined: Sat Oct 18, 2014 12:14 am

text flowing off of the end of the page

Post by dalupus »

I am running into an issue with the interaction between longtable and include graphics. It appears that if include graphics floats onto the next page longtable doesn't realize this and makes text run off the screen.

Everything works fine if I remove the graphic or if I change longtable to tabular. Unfortunately changing to tabular isn't an option since I am using pandoc to make the table.
overflow.png
overflow.png (87.22 KiB) Viewed 9135 times
Thanks to anyone that can help. Not sure if this is a bug that was recently introduced or ...
Attachments
unnamed-chunk-3-1.pdf
(6.77 KiB) Downloaded 367 times
overlow.tex
(8.4 KiB) Downloaded 365 times

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

dalupus
Posts: 2
Joined: Sat Oct 18, 2014 12:14 am

Re: text flowing off of the end of the page

Post by dalupus »

I have found the issue. There is a bug in longtable that it doesn't work when floats end up on the same page as a table.

http://tex.stackexchange.com/questions/ ... 748#207748

http://www.latex-project.org/cgi-bin/lt ... tools/3512

You have to change a few lines in the longtable.sty file. I'm surprised more users are not running into this issue.
Post Reply