Advice on gtsave and how it behaves with Quarto #1653
Unanswered
SarahJMills
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I've created a gt table that I want to render to pdf but was struggling to get all the styling rendered. I saw a Rich Iannone post somewhere 4th July 2022 explaining that LaTeX tables in gt don't support the full set of styling options available in HTML tables, but that a reasonable work around was to save an HTML table as a PNG graphic with the
gtsave()
function.That does seem to work, but I don't understand how this code, which I thought would just save the png to file, also causes it to be rendered in the pdf (produced in a Quarto book project).
gtsave(tbl_msiassay_gt, file.path(here("figures"), "fig_msiassay.png"))
I therefore am not sure how/where to add code to play with the size of the PNG version of the table.
Grateful for any guidance (& massively grateful for gt!...making it SO much easier to create professional looking tables for my dissertation).
Beta Was this translation helpful? Give feedback.
All reactions