Graphics, Figures & TablesTable size control

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jubairarifctg
Posts: 13
Joined: Wed Sep 09, 2009 6:55 am

Table size control

Post by jubairarifctg »

Hi there

I can create a table perfectly. However the size is the problem. I got 7 columns and in each column I have some description which goes around 50 character. As a result my table width gets really so big that it goes beyond right hand margin.

I reduced the font size and could bring the table within margin. But now the text is unreadable.

How can I have such a table with normal readable font size? Can I break my sentences those are around 50 characters into different line? Because now these whole 50 characters are printed in one line.

Cheers
Arif.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Table size control

Post by Stefan Kottwitz »

Hi Arif,

you could use p-columns with certain width, the sentences in the cells would be broken then:

Code: Select all

\begin{tabular}{p{3cm}p{4cm}...}
...
\end{tabular}
Stefan
LaTeX.org admin
jubairarifctg
Posts: 13
Joined: Wed Sep 09, 2009 6:55 am

Re: Table size control

Post by jubairarifctg »

Hi Stefan

it was helpful and it works for me and the table width is now within page size. However, I found as my table is big, now it is gong over-length hight wise. I used \scalebox{0.70} and kept it inside a page.

Is it a good solution or there is any better way I can do it?

Cheers
Arif.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: Table size control

Post by Stefan Kottwitz »

If the quality is acceptable ... instead of \scalebox you could try a smaller font size again.
Further you could consider to set the table in landscape orientation or to use a table with a page break inside.

Stefan
LaTeX.org admin
Post Reply