LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2007, 05:45 PM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
how do you shrink a table in latex?


Hey all,

How do you shrink a table in latex? \small doesn't work, and specifying its width like this:
Code:
\begin{tabular*}{width}[pos]{cols}
.. shrinks the size of the table but not the text, so the text overflows.

any ideas?

Thanks!
George
 
Old 04-05-2007, 01:58 PM   #2
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
For me, \small works; I'm putting an example where I used it below. The effect of \small is not very strong; use \tiny instead to see a big difference. You see my other efforts to squeeze the table: reducing table column separation to 5.8pt, and suppressing the (half) space before the first and after the last column with @{}.

Code:
\begin{table}[htbp]
  \begin{center}
    \tabcolsep 5.8pt
    \small
    \begin{tabular}{@{}l|llllllll@{}}
      & bott   & c      & c2     & dk     & edif   & font   & polt   & trat   \\ \hline
 bott & 0      & 0.3957 & 0.3910 & 0.1553 & 0.2064 & 0.2588 & 0.1759 & 0.2079 \\
 c    & 0.3957 & 0      & 0.0159 & 0.5251 & 0.1811 & 0.5255 & 0.5381 & 0.2388 \\
 c2   & 0.3910 & 0.0159 & 0      & 0.5296 & 0.1824 & 0.5386 & 0.5094 & 0.2412 \\
 dk   & 0.1553 & 0.5251 & 0.5291 & 0      & 0.3133 & 0.2071 & 0.2779 & 0.2884 \\
 edif & 0.2064 & 0.1811 & 0.1824 & 0.3133 & 0      & 0.3237 & 0.2830 & 0.1132 \\
 font & 0.2588 & 0.5255 & 0.5386 & 0.2071 & 0.3237 & 0      & 0.3364 & 0.3267 \\
 polt & 0.1759 & 0.5381 & 0.5094 & 0.2779 & 0.2830 & 0.3364 & 0      & 0.3239 \\
 trat & 0.2079 & 0.2388 & 0.2412 & 0.2884 & 0.1132 & 0.3267 & 0.3239 & 0
    \end{tabular}
  \end{center}
  \caption{Dissimilarity between the descriptors and hence between the shapes
    of any two of the small test objects.}
  \label{tab:dist8}
\end{table}

Last edited by Quigi; 04-05-2007 at 02:10 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help spacing out cells in a latex table hedpe Programming 2 02-15-2007 03:59 PM
table alignment in LaTeX thelonius Programming 1 10-04-2005 07:41 AM
stretching a table in LaTeX trutnev Linux - Software 1 08-01-2005 06:42 PM
Latex, width of a tabular table? fei Programming 5 05-23-2005 09:11 AM
latex -- table alignment kaon Linux - Software 2 04-04-2005 02:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration