I am having trouble doing the following in the tabular
environment:
title1 title2
------ ------
a 1
b 2
. .
. .
. .
z 26
That, having only the column titles underlined and instead of the usual line across all columns. I want the space in between columns without having a vertical line in between columns.
Best Answer
I suggest you give the booktabs package a try. The following MWE (Minimum Working Example) shows how one might use its commands
\toprule
,\bottomrule
, and\cmidrule
. These commands work pretty much like the LaTeX commands\hline
and\cline
, except that they provide much better spacing above and below the horizontal lines. In addition, the lines created by\toprule
and\bottomrule
are heavier (thicker) than those created by\midrule
and\cmidrule
, further contributing to a polished appearance of the table.