Skip to content

feat: Enhance LaTeX output tables by adding support for the stub and row groups#784

Draft
rich-iannone wants to merge 3 commits intomainfrom
feat-latex-output-enhance
Draft

feat: Enhance LaTeX output tables by adding support for the stub and row groups#784
rich-iannone wants to merge 3 commits intomainfrom
feat-latex-output-enhance

Conversation

@rich-iannone
Copy link
Member

This PR adds improved LaTeX rendering support for GT(rowname_col=), GT(groupname_col=), and .tab_options(row_group_as_column=). As these options heavily interact, all combinations of parameters were accounted for and checked (plus snapshot tests were added after visual verification).

Basic stub with row labels (top), Non-stub layout with row groups (bottom):

image

Row groups and stub (with row labels):

image

Two column stub layout using .tab_options(row_group_as_column=True):

image

One-column stub using .tab_options(row_group_as_column=True) with no row names:

image

Table with other structural features (title and source note):

image

Fixes: #783

@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 96.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.32%. Comparing base (34888dd) to head (aede33d).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
great_tables/_utils_render_latex.py 96.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #784      +/-   ##
==========================================
+ Coverage   92.31%   92.32%   +0.01%     
==========================================
  Files          49       49              
  Lines        6009     6048      +39     
==========================================
+ Hits         5547     5584      +37     
- Misses        462      464       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions bot temporarily deployed to pr-784 October 17, 2025 19:35 Destroyed
@rich-iannone rich-iannone marked this pull request as ready for review October 17, 2025 20:01
@rich-iannone rich-iannone requested a review from machow as a code owner October 17, 2025 20:01
bleonard314 added a commit to bleonard314/great-tables that referenced this pull request Jan 26, 2026
@rich-iannone rich-iannone marked this pull request as draft January 29, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

epic: Add support for rowname_col= and groupname_col= in LaTeX tables

1 participant