Graphics, Figures & TablesTables too wide for a page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jrrrudy
Posts: 4
Joined: Tue Sep 21, 2010 10:26 pm

Tables too wide for a page

Post by jrrrudy »

My question is about splitting tables across multiple pages. I know that if I have a table that is too long for a page, I can use longtable to split that table across multiple pages. If I have a table that is too wide for a page, I can use sidewaystable or make everything tiny to get some extra room. If I have a table that is seriously too wide but not very long, obviously I could transpose the contents of the table and then use longtable. There are situations, however, in which none of these solutions will work. If I have a table that is so wide that it will not fit sideways on a page, even if I make it tiny, and transposing the data does not leave me any better off, what is the best thing to do? Ideally I would like to turn the table sideways and then use something analogous to longtable to split the columns of the table across multiple pages. Does anybody know a latex package that does this, or is the only solution to split my wide tables into multiple tables manually?
Last edited by jrrrudy on Thu Sep 23, 2010 11:46 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Tables too wide for a page

Post by gmedina »

Hi,
jrrrudy wrote:...Ideally I would like to turn the table sideways and then use something analogous to longtable to split the columns of the table across multiple pages. Does anybody know a latex package that does this, or is the only solution to split my wide tables into multiple tables manually?
As far as I know, there's no package that splits columns across pages; you'll have to do it manually.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Tables too wide for a page

Post by Montag »

jrrrudy wrote:If I have a table that is so wide that it will not fit sideways on a page, even if I make it tiny, and transposing the data does not leave me any better off, what is the best thing to do? Ideally I would like to turn the table sideways and then use something analogous to longtable to split the columns of the table across multiple pages.
Sometimes I simply rotate the column headings via \rotatebox. Helps a lot. It even looks alright.
Last edited by Montag on Wed Sep 22, 2010 11:37 am, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
jrrrudy
Posts: 4
Joined: Tue Sep 21, 2010 10:26 pm

Re: Tables too wide for a page

Post by jrrrudy »

Thanks for the tips, Enrico, and for the feedback Gmedina. I forgot to mention using rotatebox on the column headings. I have done that as well. Using linebreak is no good for me, as all my entries are numeric. I'm inclined to believe Gmedina, as extensive searching has turned up nothing. I just wanted to see what the experts had to say. Any other ideas would be appreciated.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Tables too wide for a page

Post by frabjous »

The geometry package can now (with the \newgeometry and \restoregeometry commands) set different settings for different page ranges, so that, e.g., you could set several pages in a row in landscape (and have a table span them with longtable without needing sidewaystable or similar) and then switch back to portrait in the same document, but it sounds like that by itself isn't going to solve your problem. I think you're going to have to settle for manually breaking things or rethinking whether a single table is the best way to present these data.
jrrrudy
Posts: 4
Joined: Tue Sep 21, 2010 10:26 pm

Re: Tables too wide for a page

Post by jrrrudy »

Okay, I guess doing it manually is the way to go then. That geometry trick is clever, though, and I may see if I can work out something with that if I have more time in the future.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Tables too wide for a page

Post by localghost »

If the problem is solved with that, please be so kind and mark the topic accordingly as clearly written in the Board Rules (to be read before posting). Otherwise tell us what is missing.


Best regards
Thorsten
Post Reply