You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Text that includes a table continues beyond the bottom margin when a figure is floated to the next page.
Steps to reproduce the issue
Create a document containing multiple paragraphs.
Insert a figure before the last paragraph of the first page. Insert two more paragraphs, then a simple table, then plenty more paragraphs
Render the document. If the figure still renders on the same page, add a little paragraph before such that the figure does not anymore fit, and render again.
Expected behavior: Once the figure was floated to the next page, the continuing text (that includes the table) should flow until the bottom margin.
Observed behavior: The continuing text renders beyond the bottom margin to the bottom of the page.
Remark: This appears to be caused by the markdown table. If it is removed, or replaced by another figure, text continues to flow correctly.
Included are a sample markdown file and a small sample graphic with which the issue can be reproduced.
I suspect this is a longtable (LaTeX) issue and not something we can fix in pandoc.
longtable used to have a bug that caused text to spill over the page; this was fixed in recent versions, but there may be similar issues still.
Indeed, it looks like this. I can even reproduce the issue with the most simple tex document possible, see attachment. One can therefore argue that pandoc, for the time being, should probably revert to the Latex \table environment to render out to PDF. This issue breaks automated formatting.
Explain the problem.
Text that includes a table continues beyond the bottom margin when a figure is floated to the next page.
Steps to reproduce the issue
Create a document containing multiple paragraphs.
Insert a figure before the last paragraph of the first page. Insert two more paragraphs, then a simple table, then plenty more paragraphs
Render the document. If the figure still renders on the same page, add a little paragraph before such that the figure does not anymore fit, and render again.
Expected behavior: Once the figure was floated to the next page, the continuing text (that includes the table) should flow until the bottom margin.
Observed behavior: The continuing text renders beyond the bottom margin to the bottom of the page.
Remark: This appears to be caused by the markdown table. If it is removed, or replaced by another figure, text continues to flow correctly.
Included are a sample markdown file and a small sample graphic with which the issue can be reproduced.
Pandoc version?
layoutissue.md (7 kb)
testgraphic.png (12 kb)
The text was updated successfully, but these errors were encountered: