How ought table packages to interact with quarto? #1068
-
{huxtable} author here. huxtable typically spits out HTML, TeX, etc. within an What's the best approach for interacting with quarto? For example, it would be nice for options like |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
OK, thank you. So I should just continue wrapping output in |
Beta Was this translation helpful? Give feedback.
-
We actually override htmlPreserve to create a raw html block so that should work too |
Beta Was this translation helpful? Give feedback.
-
This seems to work great so far. I have one more question, if I may: is there a simple way to provide table labels from within R to quarto? For example, if a user calls |
Beta Was this translation helpful? Give feedback.
-
See bug #1069. |
Beta Was this translation helpful? Give feedback.
tbl-cap
will actually read the raw HTML or LaTeX table source and attempt to inject the caption and crossref label. So yes you should just spit it out and trust Quarto to tweak it (if it doesn't work then this code might not be interacting well with your HTML or LaTeX: https://github.com/quarto-dev/quarto-cli/blob/main/src/resources/filters/quarto-pre/table-captions.lua). Any problems you see should either be fixed by changes in huxtable output OR changes in our code that handles the output.