COMPGROUPS.NET | Browse | Post | Groups | Users | Stream | About | |

### thicker \hline before firsthead of longtable

• Email
• Follow

I tried the following

----
\begin{longtable}{| l || r | r | r | c |}
\myhline
\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
\noalign{\penalty\@M}%
\@gtempa}
\makeatother

(from  the longtable.sty  after  modification):

Now \myhline seems to work in longtable except the first \myhline

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

\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

See related articles to this posting

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
\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 (1970) 5/19/2004 5:00:03 PM

1 Replies
229 Views

Similar Articles

[PageSpeed] 30

• Email
• Follow

Similar Artilces:

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\hrul...

>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\myarrayru...

\hline with longtable
I use the longtable package, and \hline to separate different items. When a \hline occurs at a page break, the line is put at the top of the next page. I would like to automatically supress the \hline when it occurs at a page break. I didn't find any option to do this with longtable. Replacing \hline with another command that would exec \hline only when not at a page break would be fine, but I don't know how to code it. Thanks for your help, AC Arthur Chereau wrote: > I use the longtable package, and \hline to separate different items. > When a \hline occurs at a page break,...

Longtable, colortbl, and hline
Hello, I'm a relative LaTeX newbie, and I'm using longtable to create a multi- page table. I'm using the repeating header feature of longtable to reproduce the header at the top of each page, and using rowcolor from colortbl to color the header row light blue. I also use vertical lines and \hline between each row/column. The problem is when I use rowtable to color the header row, the color bleeds onto the left, right, and top line. By increasing \arraystrethch, I am able to pull the color back from the vertical lines, but it still bleeds especially onto the top \hline, and I have...

colored \hline in longtable
Hi all, I have quite a long table (more than one page) in my .tex document which I made with the longtable package. I can't change that. Now, I would like to have a couple of lighter \hline's in that table. Just a little bit grayed would be fine already. I found the colortbl package from Carlisle, but doesn't seem to be able to help me in the case of longtables. Maybe anyone here knows how to solve my little problem here? greetings, Bart Have a look at "colortbl.sty" package Best of Luck Saravanan,M. India Bart Van Loon <bbbart@kotnet.org> wrote in message...

can one prevent longtable from breaking after \hline in a header
I've got some code in which longtable is misbehaving quite a bit. It's pagebreaking after an hline where it shouldn't be breaking at all, namely the first \hline in a header. I have the following code: \documentclass{article} \usepackage{longtable,needspace} \begin{document} \rule{0pt}{49em} % represents text that precedes this table on the page \subsubsection{Table problems start here} \begin{longtable}[h]{| l l |} \hline stroke & drawing order\\* \hline \endhead% \hline \endfoot row 1 & some data\\ row 2 & some data\\ row 3 & some data\\ \end...

more space between \hline \hline
Hi I'm trying to put more space between \hline \hline in a longtable or tabular environment. Unfortunatly \hline \vspace{5pt} \hline doesn't do the job. Any ideas? best regards - Chris Chris Burkert <chris@chrisburkert.de> schrieb: > Hi > > I'm trying to put more space between \hline \hline in a longtable or > tabular environment. Unfortunatly \hline \vspace{5pt} \hline doesn't do > the job. > > Any ideas? Change the length \doublerulesep. -- Ulrike Fischer e-mail: zus�tzlich meinen Vornamen vor dem @ einf�gen. e-mail: add my first ...

hline
Could I make my own command like \myhline that produces a horizontal line in tables similar to \hline but with a scaleable thickness? For example \myhline{0.5cm} would produce a horizontal line with the thickness of 0.5cm. How could this be done....? I do not want to set the \arrayrulewidth to a new value permanently as I still want the \hline command to produce horizontal lines with the same width as it does now. Best Regards Don Don wrote: > Could I make my own command like \myhline that produces a horizontal line in > tables similar to \hline but with a scaleable thickness? For ...

longtable
I need a way to split a table between two consecutive pages. I entered the \usepackage{longtable}'' command into my .tex file, but I'm not sure of the syntax for using the longtable package. I tried replacing \begin{tabular}'' with \begin{longtable}'', and \end{tabular}'' with `\end{longtable}'', but I got the following error message: --------------------------------- ! Missing number, treated as zero. <to be read again> \hfil l.221 \end{longtable} -------------------------------- Can anyone tell me what I n...