Discussion:
thicker \hline after firsthead and head in longtable (tabular)
(too old to reply)
jan
2004-05-14 18:04:49 UTC
Permalink
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
Randy Yates
2004-05-14 18:59:37 UTC
Permalink
Post by jan
How to get instead \hline\hline just \emph{one THICKER than other \hline}
\noalign{\hrule height 1.5pt}

Change to whatever height suits your fancy.
--
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
***@sonyericsson.com, 919-472-1124
Donald Arseneau
2004-05-14 21:20:04 UTC
Permalink
Post by jan
\hline\hline
For this to be a "double thick" line, you need the right setting of
\doublerulesep (?). Interpretation of this parameter is *changed*
when array.sty is in effect, and with normal LaTeX you need
\doublerulesep=\arrayrulewidth



Donald Arseneau ***@triumf.ca

Loading...