I am trying to use longtable
with repeating headers on each page. For example:
Column 1 & Column 2 & Column 3 \endhead \midrule
results in an ugly multi-page table. The horizontal rule separating the headers from the data appears only on the first page.
In an attempt to fix it:
Column 1 & Column 2 & Column 3 \midrule \endhead
I'd get the following error upon compile:
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@...
l.6 ...) & Column 2 & Column 3 \midrule
\endhead
How do I make the horizontal rule also appear on every page?
Here's a screenshot of the part of the manual where \endhead
is described:
Best Answer
It seems that you simply forgot the double
\\