Fix the extra alignment tab has been changed to cr error in LaTeX.
This error means LaTeX found an ampersand where it expected a row break, or more columns than your table preamble declared. Four common mistakes trigger it across tabular, array and matrix environments, and each has a direct fix.
The short answer: check your row endings for missing double backslashes, count your ampersands against your column specifiers, and watch out for alignment commands inside paragraph columns.
Why the error happens
LaTeX builds tables and matrices by counting alignment tabs, which are the & characters separating your cells. When a row contains more ampersands than the column definition allows, TeX tries to recover by substituting the unexpected character with \cr, which is its internal primitive for ending a row.
The resulting error message looks alarming, but it almost always points to a simple mismatch between your table structure and your code. Finding it requires looking at your column specifiers, your row endings, and any formatting commands inside fixed-width columns.
Four common causes and how to fix them
Too many ampersands in a row
If you declare a table with three columns using
c|c|c, every row must have exactly two ampersands. Adding a third ampersand introduces a fourth column that LaTeX did not expect.\begin{tabular}{c|c|c} 1 & 2 & 3 & 4 \\ 5 & 6 & 7 \\ \end{tabular}Missing row separator
Forgetting the
\\at the end of a row causes LaTeX to bleed the next row into the previous one. When it hits the first ampersand of what should be the second row, it throws the error.\begin{tabular}{ll} hello & there goodbye & now \\ \end{tabular}
How to track down the offending line
When a document contains multiple tables, the line number in the error log points to the exact spot where TeX gave up. Open the logs pane in your editor and look for the line number immediately preceding the ! Extra alignment tab has been changed to \cr message.
Check that specific row for extra ampersands, or trace backward to see if a previous row missed its double backslash. If the table is large, comment out half of it to isolate which section triggers the failure.
よくある質問
What does extra alignment tab has been changed to cr mean?
It means LaTeX encountered an ampersand where it expected a row break or the end of the table. TeX attempts to recover by substituting the extra ampersand with its internal row-ending command, \cr.
Why does my table give this error even though the output looks fine?
TeX's error recovery mechanism sometimes guesses correctly about where the row should end, producing a visible output that resembles what you intended. Ignoring the error can cause cascading layout failures in subsequent rows, so you should always fix the source code.
How many columns does a tabular environment support by default?
あなたの論文を Texeno で試してみましょう。
無料で始めて、プロジェクトを .zip でアップロードし、リコンパイルを押すだけ。コンパイル時間を延ばしたくなったらアップグレードしてください。
書き始める