Using gt to produce tables in pdf (LaTeX) documents #6095
Closed
HaroldDMiller
started this conversation in
Feature Requests
Replies: 1 comment
-
As I said (#6084 (comment)), this is not up to Quarto CLI, but up to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I would really like to have gt work with Quarto via the standard LaTeX engines in order to produce nicely formatted tables. The other table generation packages, such as kableextra, are vastly inferior to gt in terms of overall capabilities, but they are compatible with Quarto pdfs. gt and Quarto work beautifully together for html output and produce far superior results to other packages, but they don't work together for pdf output: the font sizes/colors/line widths/etc that are saved as inline css are not carried through to pdfs via LaTeX. The solution I'm currently using is to output the gt tables as a png file and then display the png file as an image. This preserves all of the formatting added by gt, but the scaling of the image has to be done manually in order to have some semblance of consistency in font size, but it still generally looks bad if there are multiple tables of different widths. I don't know whether the best solution is to change gt or Quarto or both, but it seems to me to be important functionality for Quarto to have.
Beta Was this translation helpful? Give feedback.
All reactions