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

Long table header repeated on each page. #1630

Open
1 task done
rjazwiec opened this issue Apr 23, 2024 · 2 comments
Open
1 task done

Long table header repeated on each page. #1630

rjazwiec opened this issue Apr 23, 2024 · 2 comments
Assignees

Comments

@rjazwiec
Copy link

Prework

Proposal

As far as I looked it in .tex files gt uses longtable environment for tables spanning over few pages.
Unfortunately, table headers are not repeated on each page.

I'm not LaTex pro, but I tested manually adding \endhead after \midrule before the first row of data, and each time it worked very well. Both for tables rendered in portrait and in landscape*.

I think it would be nice to have parameter in gt() that decides if \endhead should be added to latex output.

*package lscape

@rjazwiec
Copy link
Author

Sample result of manually adding \endhead rendered to pdf
sample2.pdf

@bzkrouse
Copy link

bzkrouse commented May 8, 2024

I agree this would be a very helpful addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants