Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add as_typst() function to support styled tables in typst Quarto output format #1500

Open
2 tasks done
elipousson opened this issue Nov 29, 2023 · 5 comments
Open
2 tasks done

Comments

@elipousson
Copy link
Contributor

Prework

Proposal

This may be premature given that the typst format is pre-release but I figured I'd offer the suggestion now that a as_typst() function that supports or enables custom table formatting when using the typst Quarto output format could be a great addition.

Some background via the Quarto documentation:

Quarto v1.4 includes support for the typst output format. Typst is a new open-source markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.

The Quarto repo already has a related issue for incorporating the typst-tablex library for table formatting: quarto-dev/quarto-cli#6811 Not sure if that would make a as_typst() function unnecessary or if the two could work in concert.

@andrie
Copy link
Member

andrie commented Jan 26, 2024

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

@sda030
Copy link

sda030 commented Mar 11, 2024

Updates to Typst's included table formatting on the way: https://staging.typst.app/docs/changelog

@rich-iannone rich-iannone modified the milestones: v0.11.0, v0.12.0 Jun 6, 2024
@olivroy
Copy link
Collaborator

olivroy commented Jul 4, 2024

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/

@roaldarbol
Copy link

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.

@sverrirarnors
Copy link

@olivroy, it's at least not fully resolved I think. Quarto's CSS conversions do not look good in typst pdf documents and I have had a lot of issues trying to make gt tables look good.

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To discuss / To plan
Development

No branches or pull requests

7 participants