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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to use excel2latex for converting excel tables into LaTeX. Here is the simple code I am using:

\caption{Add caption}
1     & 4     & 6     & 8 \\
-53   & 9     & 10    & 10 \\

basically, when I copy the LaTeX code from excel2latex add-in and paste it in my LaTeX code, I get tons of errorserror list but if I remove the last two lines and type it manually, it work.

share|improve this question
Your given code runs perfect on my system (MiKTeX). Can you add the two lines causing the errors? It seems to be a code problem. You seems to have a special character in your excel style sheet that can't be converted correctly. Can you delete this character in your excel file? – Kurt Oct 30 '12 at 0:13
^^@ represents ASCII "NUL" (byte 0); from the form of the error lines it seems that line 29 contains a row of NULs. – egreg Oct 30 '12 at 13:15
@egreg Looks like an answer to me :-) – Joseph Wright Nov 20 '12 at 19:39
Are you using OS X by any chance? – krlmlr Mar 24 '15 at 14:11
up vote 3 down vote accepted

When TeX shows ^^@, it wants to represent the ASCII character NUL (byte 0). Judging from the error messages, it seems that your editor has inserted a row consisting of NUL characters.

As a protection against this kind of invisible characters, LaTeX declares that ^^@ (or NUL) is invalid if found in the input file.

Check your file and zap the offending characters.

share|improve this answer

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.