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.
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{cc}
\toprule
title1 & title2 \\
\cmidrule(r){1-1} \cmidrule(l){2-2}
a & 1\\
$\vdots$ & $\vdots$\\
z & 26 \\
\bottomrule
\end{tabular}
\end{document}
tabular
s, or one with an empty (second) column and use\cline{1-1}\cline{3-3}
(say).