额外的对齐标签已更改为 \cr?

额外的对齐标签已更改为 \cr?

我收到了问题标题中提到的错误。你能帮助我吗?

\begin{table}[htb!]
      \centering
        \caption{\textit{others criterias : first scenario}} \label{Table2}
        \resizebox{0.5\columnwidth}{!}{%

    \begin{tabular}{c|ccc|cccc|c}
    &\multicolumn{3}{c}{\underline{Instances}}
    &\multicolumn{4}{c}{\underline{DPA}}
    &&
    &Staff &Activities &periods  &EA     &EB    &TG-AV   &RV-TD   \\ \hline
       &3     &72        &10     &477    &47     &178    &1421    \\
        \hline
         &3     &72        &10     &1087   &34     &207    &1170    \\
        \hline
         &3     &72        &10     &1415   &22     &215    &932     \\
        \hline
         &5     &120       &10     &1925   &1977   &485    &1897    \\
        \hline
         &5     &120       &10     &457    &552    &216    &1123    \\
        \hline
         &6     &140       &10     &1605   &1981   &347    &3039    \\
    \hline
    \end{tabular}%
    }
    \end{table}

答案1

建议选择第二种方案。

\documentclass{article}

\usepackage{graphics} % for \resizebox (PS)

\begin{document}


\begin{table}[htb!]
      \centering
        \caption{\textit{others criterias : first scenario}} \label{Table2}
        \resizebox{0.5\columnwidth}{!}{%

    \begin{tabular}{c|ccc|cccc|c}
    &\multicolumn{3}{c}{\underline{Instances}}
    &\multicolumn{4}{c}{\underline{DPA}}
%    &&  % PS
&\\ % PS
    &Staff &Activities &periods  &EA     &EB    &TG-AV   &RV-TD   \\ \hline
       &3     &72        &10     &477    &47     &178    &1421    \\
        \hline
         &3     &72        &10     &1087   &34     &207    &1170    \\
        \hline
         &3     &72        &10     &1415   &22     &215    &932     \\
        \hline
         &5     &120       &10     &1925   &1977   &485    &1897    \\
        \hline
         &5     &120       &10     &457    &552    &216    &1123    \\
        \hline
         &6     &140       &10     &1605   &1981   &347    &3039    \\
    \hline
    \end{tabular}%
    }
    \end{table}



But the first and last column are, in fact, unused. Hence rather:

\begin{table}[htb!]
      \centering
        \caption{\textit{others criterias : first scenario}} \label{Table2}
        \resizebox{0.5\columnwidth}{!}{%

    \begin{tabular}{|ccc|cccc|}
    \multicolumn{3}{c}{\underline{Instances}}
    &\multicolumn{4}{c}{\underline{DPA}}
    \\
    Staff &Activities &periods  &EA     &EB    &TG-AV   &RV-TD   \\ \hline
       3     &72        &10     &477    &47     &178    &1421    \\
        \hline
         3     &72        &10     &1087   &34     &207    &1170    \\
        \hline
         3     &72        &10     &1415   &22     &215    &932     \\
        \hline
         5     &120       &10     &1925   &1977   &485    &1897    \\
        \hline
         5     &120       &10     &457    &552    &216    &1123    \\
        \hline
         6     &140       &10     &1605   &1981   &347    &3039    \\
    \hline
    \end{tabular}%
    }
    \end{table}


\end{document}

在此处输入图片描述

相关内容