Discussion:
"thick" \hline ?
(too old to reply)
George Varsamopoulos
2004-08-28 01:54:08 UTC
Permalink
Hello LaTeX gurus,

I am styling my thesis and I need the top and bottom \hline in
tabular environment to be thick (thicker than the normal \hline).

\begin{tabular}{l}\hline % I want this \hline thicker
search-improving techniques \\ \hline % I like this \hline the way it is
location caching\\
profile replication\\
predictive paging \hline % I want this \hline thicker too
\end{tabular}

How can i make those hlines thicker?

Regards,
George
Will Robertson
2004-08-28 03:37:11 UTC
Permalink
Post by George Varsamopoulos
I am styling my thesis and I need the top and bottom \hline in
tabular environment to be thick (thicker than the normal \hline).
\begin{tabular}{l}\hline % I want this \hline thicker
search-improving techniques \\ \hline % I like this \hline the way it is
location caching\\
profile replication\\
predictive paging \hline % I want this \hline thicker too
\end{tabular}
How can i make those hlines thicker?
\documentclass{article}
\usepackage{booktabs} % or use the memoir class!
\begin{document}

% Requires the booktabs if the memoir class is not being used:
\begin{table}[htbp]
\centering
%\topcaption{Table captions are sometimes better up top} % requires
the topcapt package
\begin{tabular}{@{} lcr @{}} % Column formatting, @{} suppresses
leading/trailing space
\toprule
\multicolumn{2}{c}{Item} \\
\cmidrule(r){1-2} % Partial rule. (r) trims the line a little bit
on the right; (l) & (lr) also possible
Animal & Description & Price (\$)\\
\midrule
Gnat & per gram & 13.65 \\
& each & 0.01 \\
Gnu & stuffed & 92.50 \\
Emu & stuffed & 33.33 \\
Armadillo & frozen & 8.99 \\
\bottomrule
\end{tabular}
\caption{Remember, \emph{never} use vertical lines in tables.}
\label{tab:booktabs}
\end{table}

\end{document}

Regards,
Will Robertson
Vilar Camara Neto
2004-08-28 03:37:00 UTC
Permalink
If you are using the "memoir" class, you have the commands \toprule,
\midrule and \bottomrule, where the first and last ones are thicker by
default. Also, these commands provide fine adjustments in vertical
spacing, bringing a more professional look to the tables than \hline.

Regards,
Vilar Camara Neto
Post by George Varsamopoulos
Hello LaTeX gurus,
I am styling my thesis and I need the top and bottom \hline in
tabular environment to be thick (thicker than the normal \hline).
\begin{tabular}{l}\hline % I want this \hline thicker
search-improving techniques \\ \hline % I like this \hline the way it is
location caching\\
profile replication\\
predictive paging \hline % I want this \hline thicker too
\end{tabular}
How can i make those hlines thicker?
Regards,
George
Saravanan,M.
2004-08-28 09:11:41 UTC
Permalink
Try with the following command:

\def\firsttablerule{\hrule \@height 1pt % <- rule height
}

\begin{tabular}
\firsttablerule
...
\end{tabular}

Regards
Saravanan,M.
India
Post by George Varsamopoulos
Hello LaTeX gurus,
I am styling my thesis and I need the top and bottom \hline in
tabular environment to be thick (thicker than the normal \hline).
\begin{tabular}{l}\hline % I want this \hline thicker
search-improving techniques \\ \hline % I like this \hline the way it is
location caching\\
profile replication\\
predictive paging \hline % I want this \hline thicker too
\end{tabular}
How can i make those hlines thicker?
Regards,
George
Harry Schmidt
2004-08-28 12:22:08 UTC
Permalink
Post by George Varsamopoulos
I am styling my thesis and I need the top and bottom \hline in
tabular environment to be thick (thicker than the normal \hline).
\begin{tabular}{l}\hline % I want this \hline thicker
search-improving techniques \\ \hline % I like this \hline the way it
is location caching\\
profile replication\\
predictive paging \hline % I want this \hline thicker too
\end{tabular}
How can i make those hlines thicker?
Use booktabs.sty and read its nice manual.

Harry

Loading...