GeneralHelp for table fitting

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
JoKo
Posts: 19
Joined: Tue Aug 12, 2008 11:28 am

Help for table fitting

Post by JoKo »

Hi again,

I am desperately trying to make some tables to fit my text. As I am using B5 paper and the margins are huge, it seems really impossible to put the tables I want.

Do you have any tips, any experience that could help me?


Thanks in advance,

JoKo

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Help for table fitting

Post by Stefan Kottwitz »

Hi JoKo,

what exactly is the problem?
Because you've mentioned the margins, are the tables just too wide?

Stefan
LaTeX.org admin
JoKo
Posts: 19
Joined: Tue Aug 12, 2008 11:28 am

Re: Help for table fitting

Post by JoKo »

Yes, the tables are too wide, indeed, and text keeps going out of the page... :(


P.S.: I'm glad you remember my problem, you, guys, have a great community here! :D
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Help for table fitting

Post by Stefan Kottwitz »

I've thought the other problem was solved.
Without resizing one could center the table in relation to the text. But perhaps do you like to resize the table to fit exactly to the text margins?

Stefan
LaTeX.org admin
JoKo
Posts: 19
Joined: Tue Aug 12, 2008 11:28 am

Re: Help for table fitting

Post by JoKo »

This is what I'm thinking. In general, I don't mind if my cells have more than one row, I just don't like using p{width}, because I am not so sure about the width...

As for the other problem, it's really solved, but most of my tables are too wide to fit even if I'm adjusting the width.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Help for table fitting

Post by Stefan Kottwitz »

Did you try tabularx already? With tabularx you can produce tables that fit exactly to \textwidth and use X columns automatically adjusting their widths to fit.

Stefan
LaTeX.org admin
JoKo
Posts: 19
Joined: Tue Aug 12, 2008 11:28 am

Re: Help for table fitting

Post by JoKo »

Thanks a lot, I had already tried tabularx, but without X instead of p/r/c/l (I hadn't read the manual). Now I know :D ...

Hmm, and maybe with the help of adjustwidth from the previous posts, I'll get a more beautiful result.
Post Reply