Graphics, Figures & Tables ⇒ Multi-page Table with automatic Column Width
Multi-page Table with automatic Column Width
I want to do something quite simple. I have a big table that is both too large and too long for a single page.
Up to now, when I have a table that is too long, I use the xtabular package, with all the nice head and tail options. Works fine.
In the past, when I have a table that is too large, I use the tabularx package, set it to the text width, and give a X to the offending columns, and it works perfectly, it forces those columns to wrap. Maybe tabulary would work better for me, but usually I only have a single column with a X.
Now, I have a table that is challenging me, as it is both too long and too wide. I would like the ability to have both the feature of xtabular and tabularx, to automatically break it over multiple pages and have the columns automatically sized.
It would seem that it would be something obvious to do, but I can not figure out how to combine both packages. I've search on the Internet, but most likely I'm not using the right keywords.
Would anybody be kind enough to enlighten me ?
Thanks in advance...
Jean
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Multi-page Table with automatic Column Width
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Multi-page Table with automatic Column Width
I've had a look. You probably meant longtabu. First issue is that it's not available in my distro, it seems just too recent. Second issue is that I would have to figure how to translate xtabular formatting into longpage formatting, and it seems from the web that longpage does not play nice with other packages so who knows what incompatibility I would get into...localghost wrote:Try the tabu package
I was hoping it would be easier...
It's just very colorful, it must be modern.localghost wrote:(in spite of its terrible manual).
Thanks a lot for the quick answer !localghost wrote:Best regards and welcome to the board
Thorsten
Jean
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Multi-page Table with automatic Column Width
The package is named tabu. It provides thejean2 wrote:[…] You probably meant longtabu. […]
longtabu
environment. That's an important difference.
What TeX distribution do you use? All common distributions (TeX Live, MiKTeX) have a package manager for comfortable maintenance.jean2 wrote:[…] First issue is that it's not available in my distro, it seems just too recent.
I don't know »longpage«. So I suggest just to take a shot at it.jean2 wrote:[…] Second issue is that I would have to figure how to translate xtabular formatting into longpage formatting, and it seems from the web that longpage does not play nice with other packages so who knows what incompatibility I would get into. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10