Quarto rewrites raw LaTeX table to move caption to top when using crossrefs. #10278
Replies: 2 comments 3 replies
-
You should use raw block to include raw code as much as possible. Regarding the caption location, see https://quarto.org/docs/authoring/tables.html#caption-location. There is currently no option to disable processing especially in the context of cross-reference system. |
Beta Was this translation helpful? Give feedback.
-
Thanks. The Caption argument fixes the caption problem at least, but it sounds like there is no way to stop Quarto from re-writing other parts of the table if I want to use cross-references, which is a bummer. Appreciate it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am writing a document in quarto. In it, I include a LaTeX table.
When I compile to .pdf, the reference works and the table shows up, but the caption is moved from the bottom of the table to the top. I have tried overriding this by using the LaTeX caption package and forcing all captions to below tables. No good. If I keep the .tex file, I notice that Quarto actually re-writes the end group, centering, table, tabular section as well.
If I rename the table's label to "table-main", this does not occur. In other words, it only occurs when the cross-ref system picks up on the table.
Is there a way to avoid this behavior?
Additionally, if the table is wrapped in a
\resizebox{}
(to, say, shrink width) this is also discarded by the rewrite process.(In my real example the LaTeX is in a separate .tex file which is included using the include directive, but it doesn't seem to matter for the reprex)
Beta Was this translation helpful? Give feedback.
All reactions