[Tugindia] Table width
Ashis Kumar Mal
akmal at ece.iitkgp.ernet.in
Sat Sep 20 12:53:29 CEST 2003
On Tue, 2 Sep 2003, Herbert Voss wrote:
> Arun Kejariwal schrieb:
> > I am using a two column mode. Inspite of using \tiny, my table is
> > overflowing the column boundary. How do I manipulate the table width. My
> > priority is to fit the table with in the column irrespective of how much
> > it shrinks the font size.
> use resizebox
>
> \documentclass[a4paper,12pt,twocolumn]{article}
> \usepackage{graphicx}
> \begin{document}
> \begin{table}[!h]
> \resizebox{\linewidth}{!}{%
> \begin{tabular}{c|c|c|c|c|cccc}
> blah & blah &blah &blah &blah &blah &blah &blah &blah \\
> blah & blah &blah &blah &blah &blah &blah &blah &blah \\
> blah & blah &blah &blah &blah &blah &blah &blah &blah \\
> blah & blah &blah &blah &blah &blah &blah &blah &blah \\
> \end{tabular}%
> }
> \caption{Hardware Library}\label{table:exlib}
> \end{table}
> \end{document}
I tried above code with additional columns. But table
is going beyond linewidth.
Please advise me if I am doing wrong.
Regards,
Ashis
Kharagpur
More information about the tugindia
mailing list