I've been wrestling with longtables/longtabu for a while now, and I have it almost working the way I want. The last thing that I want to be able to do is have a \hline inserted for every row.

Here's what I'm trying:



\everyrow{\hline} % If I comment out this, or use anything but \hline it works
First & First & First \\
Rest & Rest & Rest \\
Foot & Foot & Foot \\
Last & Last & Last \\
hello & banana & world


The error I'm getting is:

! Misplaced \omit.
\multispan ->\omit 
l.18 \end{longtabu}

Any help would be great!

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Speravir Jan 24 '14 at 21:42
  • 1
    Seems like a bug in tabu. It works with \everyrow{\tabucline-}. Do not expect, that the author fixes this supposed bug. – Speravir Jan 24 '14 at 21:42
  • Related to my latest comment: groups.google.com/d/msg/comp.text.tex/xRGJTC74uCI/jkNlDkpG5cMJ (GL is Florent Chervet, the writer of package tabu). – Speravir Jan 24 '14 at 21:59
  • 2
    rather than mess with \every... why not just end each row with \mycr defined as \newcommand\mycr{\\\hline} – David Carlisle Jan 24 '14 at 23:21

Rather than use the \every.. hooks it is simpler to use \mycr rather than \\ to end the table rows, defined as

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.