[OS X TeX] Spacing of first two rows in tabular environment

Alain Matthes alain.matthes at mac.com
Mon Oct 5 07:45:11 EDT 2009


Le 5 oct. 2009 à 03:29, Ross Moore a écrit :

>
>
> This works for me, to ~2pt of extra space while picking up
> any vertical cell lines that have been specified:
>
> \hline
>  & & ... & \\[-12pt]
>
> (assuming the normal baselineskip is ~14pt)
>
> where there is an '&' for each new cell, as usual.
>
>> the OP could get what he wants without additional packages.
>
> Agreed. The extra packages are fine if they provide effects that
> you cannot normally achieve. Otherwise the extra syntax that they
> require can obfuscate what you are doing and make your tabular
> material less portable.


Hi, (sorry for my bad english)

"less portable" ?? Are you sure ?


>  & & ... & \\[-12pt]
>
> (assuming the normal baselineskip is ~14pt)

this is not portable ! the code depends of the font size

\documentclass[a4paper,10pt]{article} and
\documentclass[a4paper,12pt]{article} give different result

A package like cellspace.sty is on TexLiVe and MacTeX, same remark
  for booktabs. It's why LaTeX is interesting because it's easy to
  get good extensions.

The best solution is to use "booktabs". You have a fine
  result without change the syntax or add hacks or tricks.
You have improvments like midrule, toprule and bottomrule.

You only have to load "booktabs", and It' perhaps the best
  package for tables.

Best Regards

Alain Matthes





More information about the MacOSX-TeX mailing list