jan
2004-05-14 18:04:49 UTC
How to get instead \hline\hline just \emph{one THICKER than other \hline}
in the following table (actually I use longtable instead tabular):
----
\begin{tabular}{| l || r | r | r | c |}
\hline
Name&Exam1&Exam2&Exam3&Grade\\
\hline\hline
Jack&12& 28&33&C \\
\hline
Paul&49& 35&60&B \\
\hline
Michael&76& 38&59&A \\
\hline
\end{tabular}
----
When I use the following definition of \myhline
---
\newdimen\myarrayrulewidth
\setlength{\arrayruleHwidth}{3pt}
\makeatletter
\def\myhline{%
\noalign{\ifnum0=`}\fi\hrule \@height \myarrayruleHwidth \futurelet
\***@a\@xhline}
\def\@xhline{\ifx\***@a\hline
\vskip\doublerulesep
\vskip-\myarrayrulewidth
\fi
\ifnum0=`{\fi}}
\makeatother
----
(from latex.ltx) instead \hline\hline
it seems to work well with tabular environment
but \emph{not with longtable}. In the longtable case the \myhline
is \emph{longer than the width of longtable}.
Does anyone has any idea how to achieve ``thicker'' \hline
in longtable (e.g. how to modify the above definition \myhline
to work with longtable properly)?
TIA
Jan
in the following table (actually I use longtable instead tabular):
----
\begin{tabular}{| l || r | r | r | c |}
\hline
Name&Exam1&Exam2&Exam3&Grade\\
\hline\hline
Jack&12& 28&33&C \\
\hline
Paul&49& 35&60&B \\
\hline
Michael&76& 38&59&A \\
\hline
\end{tabular}
----
When I use the following definition of \myhline
---
\newdimen\myarrayrulewidth
\setlength{\arrayruleHwidth}{3pt}
\makeatletter
\def\myhline{%
\noalign{\ifnum0=`}\fi\hrule \@height \myarrayruleHwidth \futurelet
\***@a\@xhline}
\def\@xhline{\ifx\***@a\hline
\vskip\doublerulesep
\vskip-\myarrayrulewidth
\fi
\ifnum0=`{\fi}}
\makeatother
----
(from latex.ltx) instead \hline\hline
it seems to work well with tabular environment
but \emph{not with longtable}. In the longtable case the \myhline
is \emph{longer than the width of longtable}.
Does anyone has any idea how to achieve ``thicker'' \hline
in longtable (e.g. how to modify the above definition \myhline
to work with longtable properly)?
TIA
Jan