Sunday, September 09, 2007

Latex note: how to shrink tables

To reduce the size of a table, two general methods can be used.

1. Shrink the the font size.
For example, use \small{content} instead of content in the table cell.

2. Squeeze space between columns.
For example, a table could be written in the following way
\begin{tabular}
\setlength{\tabcolsep}{1pt}
...
\end{tabular}

3 comments:

Dr. Tuan A. Nguyen said...

Thanks for the post. However, in my case, this must work:
\begin{table}
\setlength{\tabcolsep}{1pt}
\begin{tabular}

\end{tabular}
\end{table}
In addition, {\small this is the small text}, the \small{} will let all following text smaller :-)
Thanks anyway.

Riyaz said...
This comment has been removed by the author.
Riyaz said...

Thanks for the post, helped to relieve me of my pain.