How can I avoid unwanted table breaking in PDF (luatex) output? #14656
-
DescriptionI am aware of issue 13961. Mine is almost inverted (and I'm not using Typst). In my PDF output, even very short tables are split rather than floating. I want them to be ordinary floating LaTeX tables in PDF output. Is that not the default? If not, can I make it the default? (I do not have any long tables.) Can I set it on a table-by-table basis? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
As you did not provide anything actionable:
I'm not sure why you linked an issue that has nothing to do with yours. If you want a more direct answer please follow the guidelines / discussion template to provide sufficient information for others to help. |
Beta Was this translation helpful? Give feedback.
So Quarto relies on pandoc to convert markdown tables to LaTeX tables, and pandoc currently emits LaTeX tables using only the
longtableenvironment. There is currently no standard way to produce tables for multiple formats where the emitted LaTeX will use thetableenvironment (because e.g. kable emitstabularnottable). Post-processing of the LaTeX document might be possible, but simply replacinglongtablewithtablelooks risky. Use of a Lua filter to change table processing may be possible but is likely to have unexpected consequences. If the only output format is LaTeX, then of course one may replace markdown tables with raw LaTeX that uses atableenvironment.Is that about right?