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 9209 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 374 times
overlow.tex
(8.4 KiB) Downloaded 369 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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