[OS X TeX] Spacing of first two rows in tabular environment
Berend Hasselman
bhh at xs4all.nl
Fri Oct 2 16:09:26 CEST 2009
On 01-10-2009, at 16:19, Chris Goedde wrote:
> Hi,
>
> This isn't Mac specific, but it's something that's bugged me for a
> LONG time, and maybe someone can help me out. I've always felt that
> the second row of a table is too close to the horizontal rule (if
> any) that separates it from the top row. For example, when I typeset
> the table below in 11pt Lucida, the exponents touch the horizontal
> rule. Is there a simple, non-kludgy fix or adjustment for this? I
> don't want to increase all the linespacing, just the spacing between
> the first and second row. Thanks.
>
> Chris
>
> The table:
>
> \begin{center}
> \begin{tabular}{lccc}
> Planet & Mass (kg) & Distance from Sun (km) & Period of Orbit
> (years) \\\hline
> Earth & $5.98\times10^{24}$ & $1.50\times10^8$ & 1.00 \\
> Venus & $4.87\times10^{24}$ & $1.08\times10^8$ & 0.615 \\
> Mars & $6.40\times10^{23}$ & $2.28\times10^8$ & 1.88
> \end{tabular}
> \end{center}
I find this on the FAQ: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=struttab
Place \usepackage{bigstrut} in your preamble
and use \hline\bigstrut[t] instead of \hline and your table should
look better.
bigstrut also seems not to interfere with array.
Berend
More information about the macostex-archives
mailing list