posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.9k stars 71 forks source link

Option to export tables to LaTeX code #75

Open aeturrell opened 11 months ago

aeturrell commented 11 months ago

Prework

Proposal

It would be fantastic if there was an option to export tables to LaTeX as this would unlock a wide range of further uses in presentations, papers, and reports. For prior art, the original gt package in R does this, and pandas has a table export option.

Thanks for the great work on great tables!

rich-iannone commented 11 months ago

Yes! We are planning for this, and it'll be something that's done in early-to-mid 2024. The reason for it being scheduled a bit later is so we could first get the core functionality into this package working well.

aeturrell commented 11 months ago

Amazing news, thank you.

apoorvkh commented 2 months ago

Just wondering, do you think this will be implemented by the next version? Or a longer timeline?

Would love to ditch my pandas dependency and rely on polars and great-tables instead!

machow commented 2 months ago

We should have the more fine-grained styling options implemented pretty soon (https://github.com/posit-dev/great-tables/pull/341), which will be useful to have in place before implementing latex support. Lemme check with @rich-iannone in our next meeting on timing 😅

apoorvkh commented 2 months ago

Great, thanks so much for the update!

fzyzcjy commented 3 weeks ago

+1 that would be super helpful!