Wednesday, September 13, 2006

LaTeX: thick line in table

Sometime we want the top and bottom horizontal line thicker, try booktabs package:




\usepackage{booktabs}

....

\begin{tabular}

{>{\large}c >{\large\bfseries}l >{\itshape}c }\toprule[3pt]

A & B & C\\ \midrule[.5pt]

\hline 100 & 10 & 1 \\

\bottomrule

\end{tabular}


another approach (not recommend) is put "\doublerulesep=0.4pt" in pre-, this defines the distance between two lines, then use '\hline \hline ...'

No comments:

Post a Comment