Skip to content

Column widths from gt not respected in html and typst #12846

Answered by cscheid
aghaynes asked this question in Q&A
Discussion options

You must be logged in to vote

Inspecting the .typ file, the widths do not seem to be passed to typst at all (perhaps due to column width being specified in px in gt?).

I don't know why you're mentioning .typ (your example has format: html), but you're correct that the culprit is ultimately the column width specification being in pixels.

Quarto uses Pandoc to parse and process HTML tables, so that libraries like GT can use leverage Quarto features: https://quarto.org/docs/authoring/tables.html#disabling-quarto-table-processing

Pandoc, unfortunately, doesn't understand how to specify column widths in pixels. As a result, we end up with a table lacking the specifier.

In HTML, you can choose to opt out of Quarto's HTML …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cscheid
Comment options

Answer selected by aghaynes
@aghaynes
Comment options

@cderv
Comment options

@aghaynes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tables Issues with Tables including the gt integration typst
3 participants