Open elipousson opened 12 months ago
It seems to me that this typst
package is going to be relevant for this work: https://github.com/typst/packages/tree/main/packages/preview/tablex/0.0.8
Updates to Typst's included table formatting on the way: https://staging.typst.app/docs/changelog
I think this is resolved natively with Quarto 1.5 (just released last week) https://quarto.org/docs/blog/posts/2024-07-02-beautiful-tables-in-typst/
I'd just add that for some workflows, the native Quarto solution doesn't solve the issue - I usually save my tables to also incorporate them into other LaTeX documents (mytable |> gtsave("mytable.tex"
). It would definitely be great to be able to export a Typst table. Hopefully the native conversion may aid that, but I don't think the issue is resolved yet.
Prework
Proposal
This may be premature given that the
typst
format is pre-release but I figured I'd offer the suggestion now that aas_typst()
function that supports or enables custom table formatting when using thetypst
Quarto output format could be a great addition.Some background via the Quarto documentation:
The Quarto repo already has a related issue for incorporating the typst-tablex library for table formatting: https://github.com/quarto-dev/quarto-cli/issues/6811 Not sure if that would make a
as_typst()
function unnecessary or if the two could work in concert.