Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a longtable, that is inputted to the main-file using LTXTable, but it does not work, when the longtable is more than one page long.
The latex-code for the table can be found here:
The main latex-code can be found here
The other latex-files can be found at and
And the payinfo.tex refered to in the error-output can be replaced by an empty file.
And the errors are

LaTeX Warning: Reference `LastPage' on page 1 undefined on input line 49.

(./includes/latex/payinfo.tex (includes/latex/inv8578445//auto0.tex
! Extra alignment tab has been changed to \cr.
<template> \endtemplate 

l.3 \footnotesize
                  NR. \rule{0pt}{15pt}\rule[-10pt]{0pt}{0pt}        & \footnotesize...

! Emergency stop.
<template> \endtemplate 

l.3 \footnotesize
                  NR. \rule{0pt}{15pt}\rule[-10pt]{0pt}{0pt}        & \footnotesize...

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on includes/latex/inv8578445//timereg.log.

Can anybody in here give me a clue of what I am doing wrong?
I can of course also put the main file on my page, if you need it

share|improve this question
Please provide a full minimal example, i.e. a file that is compilable. What is the Y column specifier in this case? The error means that somewhere you have too many &'s, wrapping a preamble around it and changing Y to l, and it compiles fine. So please provide a bit more information. – daleif Mar 10 '11 at 19:53
@daleif Now I have provided a full minimal example in my question. You can also find, what Y means in the main-file. I can not find the place, where I have to many &'s, too less columns or forgotten a \\ – The87Boy Mar 10 '11 at 20:11
@The87Boy: using the code you linked to I can compile without errors (after commenting out the line that loads the uarial package, which I don't have installed). – Gonzalo Medina Mar 10 '11 at 20:29
Interesting, I started having your error, then I downloaded everything again, and it went away. Only thing I did was to insert the longtable.tex name in the \LTXtable command – daleif Mar 10 '11 at 20:33
Do you have 2 pages or more? If you only have 1, could you then try to add some pages, as I then have removed too much information from the main-page – The87Boy Mar 10 '11 at 20:38

1 Answer 1

up vote 1 down vote accepted

! Extra alignment tab has been changed to \cr.

you have defined too less columns for the table or forgotton a \\ at a tabular line end.

share|improve this answer
I can not find the place, where I have to many cells or forgotten a \\ – The87Boy Mar 10 '11 at 20:13
the above links with your code works well for me. – Herbert Mar 10 '11 at 20:27
@Herbert That sounds strange. Do it output more than one page? If it only output one page, could you then try to add some more rows, so it generates 2 pages or more? – The87Boy Mar 10 '11 at 20:33
@The87Boy: start at the end of the longtable and comment every line out until the error went away. – Herbert Mar 10 '11 at 20:48
@The87Boy: from my point of view it is a problem with one of the packages. Please comment out step by step any additional package except longtable and colortbl. – Herbert Mar 11 '11 at 6:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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