表格 - 错误:额外的对齐制表符已更改为 \cr

表格 - 错误:额外的对齐制表符已更改为 \cr

我收到表格的错误消息。奇怪的是,我的文件中已经有类似的表格,因此我没有收到错误消息...有人能帮我吗?

表格如下:

\begin{table}[htbp]
\centering
\caption{Impact on Trade Balance, in million US \$ change from base}
\scalebox{1}{
\begin{tabular}{lccc}
    \hline\hline
    \multicolumn{4}{l}{Scenario A} \\
    \hline

               & EFTA & CA & ROW   \\[-10pt]
               &      &        &          \\




Non-Agriculture & 3.1598 & -3.9787 & 1.0283    \\

Agriculture &  -1.9159 & 3.2666 & -2.0655   \\

Services & -1.8677 & 0.3535 & 2.01962   \\\cline{2-12}

Total & -0.6238 & -0.3586 & 0.9824 \\

 \hline 
      \multicolumn{4}{l}{Scenario B} \\
    \hline 

    Non-Agriculture & 2.5389 & -3.0276 & 0.6769   \\

Agriculture &  -1.0801 & 1.9608 & -1.2893 \\

Services & -1.8290 & 0.7192 & 1.3302  \\\cline{2-12}

Total & -0.3702 & -0.3476 & 0.7178  \\

    \hline\hline
  \end{tabular}}
  \caption*{\scriptsize{Source: RunGTAP.}}
\label{tbl:EffectsOnTradeBalance}
\end{table}

错误信息如下:

! Extra alignment tab has been changed to \cr.
<template> \endtemplate
l.2510 \end{tabular}}

You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.

答案1

代码

\cline{2-12}

要求水平线从第 2 列到第 12 列。但是,tabular由于您使用了

\begin{tabular}{lccc}

您可能有兴趣使用\cline{2-4}

相关内容