I tried the following
----
\begin{longtable}{| l || r | r | r | c |}
\myhline
Name&Exam1&Exam2&Exam3&Grade\\
\myhline
Jack&12& 28&33&C \\
\hline
Paul&49& 35&60&B \\
\hline
Michael&76& 38&59&A \\
\myhline
\end{longtable}
----
with the following definition of \myhline :
\newdimen\arrayruleHwidth
\setlength{\arrayruleHwidth}{1.5pt}
\makeatletter
\def\myhline{%
\noalign{\LT@sep}%
\multispan\LT@cols
\unskip\leaders\hrule\@height\arrayruleHwidth\hfill\cr
\noalign{\penalty\@M}%
\@gtempa}
\makeatother
(from the longtable.sty after modification):
Now \myhline seems to work in longtable except the first \myhline
(before the first head).
When I use \myhline before the first head I get the following message :
----
Overfull \hbox (0.93033pt too wide) in paragraph at lines 325--325
[]|\T1/cmr/m/n/12 Time
[7]
! Undefined control sequence.
\myhline ->\noalign {\LT@sep
}\multispan \LT@cols \unskip \leaders \hrule \@he...
l.373 \myhline
?
---
When I use \hline\myhline before the first head it works:
----
\begin{longtable}{| l || r | r | r | c |}
\hline
\myhline
Name&Exam1&Exam2&Exam3&Grade\\
\myhline
Jack&12& 28&33&C \\
....
-----
But how to modify the definition of \myhline to get
it working before the first head of longtable?
TIA
Jan
|
|
0
|
|
|
|
Reply
|
mch2048 (14)
|
5/19/2004 2:17:00 PM |
|
mch2048@yahoo.com (jan) schrieb:
>
> But how to modify the definition of \myhline to get
> it working before the first head of longtable?
You can use booktabs, and read the documentation about using to much
vertical lines.
\documentclass{article}
\usepackage{longtable,booktabs}
\begin{document}
\begin{longtable}{| l || r | r | r | c |}
\toprule
Name&Exam1&Exam2&Exam3&Grade\\
\midrule
Jack&12& 28&33&C \\
\hline
Paul&49& 35&60&B \\
\hline
Michael&76& 38&59&A \\
\bottomrule
\end{longtable}
or use a command along the lines of
\newcommand{\myhline}{\noalign{\global\arrayrulewidth1cm}\hline
\noalign{\global\arrayrulewidth1pt}}
or
\setlength{\doublerulesep}{0pt}
\newcommand{\myhline}{\hline\hline\hline}
--
Ulrike Fischer
e-mail: zus�tzlich meinen Vornamen vor dem @ einf�gen.
e-mail: add my first name between the news and the @.
|
|
0
|
|
|
|
Reply
|
news9686 (1969)
|
5/19/2004 5:00:03 PM
|
|