Graphics, Figures & TablesMulti-page Table with automatic Column Width

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jean2
Posts: 2
Joined: Wed Mar 14, 2012 11:08 pm

Multi-page Table with automatic Column Width

Post by jean2 »

Hi,

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Multi-page Table with automatic Column Width

Post by localghost »

Try the tabu package (in spite of its terrible manual).


Best regards and welcome to the board
Thorsten
jean2
Posts: 2
Joined: Wed Mar 14, 2012 11:08 pm

Multi-page Table with automatic Column Width

Post by jean2 »

localghost wrote:Try the tabu package
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...

I was hoping it would be easier...
localghost wrote:(in spite of its terrible manual).
It's just very colorful, it must be modern.
localghost wrote:Best regards and welcome to the board
Thorsten
Thanks a lot for the quick answer !

Jean
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Multi-page Table with automatic Column Width

Post by localghost »

jean2 wrote:[…] You probably meant longtabu. […]
The package is named tabu. It provides the longtabu environment. That's an important difference.
jean2 wrote:[…] First issue is that it's not available in my distro, it seems just too recent.
What TeX distribution do you use? All common distributions (TeX Live, MiKTeX) have a package manager for comfortable maintenance.
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. […]
I don't know »longpage«. So I suggest just to take a shot at it.
Post Reply