great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

Option to export tables to LaTeX code

Open aeturrell opened this issue 1 year ago • 5 comments
trafficstars

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!

aeturrell avatar Dec 11 '23 13:12 aeturrell

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.

rich-iannone avatar Dec 11 '23 15:12 rich-iannone

Amazing news, thank you.

aeturrell avatar Dec 11 '23 15:12 aeturrell

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!

apoorvkh avatar Sep 24 '24 07:09 apoorvkh

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 😅

machow avatar Sep 24 '24 21:09 machow

Great, thanks so much for the update!

apoorvkh avatar Sep 24 '24 22:09 apoorvkh

+1 that would be super helpful!

fzyzcjy avatar Nov 01 '24 08:11 fzyzcjy

I'll close this issue as the feature has been implemented and merged.

jrycw avatar Dec 14 '24 13:12 jrycw

Congratulations and thanks for the feature!

fzyzcjy avatar Dec 14 '24 13:12 fzyzcjy

This is fantastic news, thank you for implementing. I will add to Coding for Economists in due course! (Issue here)

aeturrell avatar Dec 16 '24 09:12 aeturrell