Latex 错误:失控参数段落在表格和表格中的 \@@@cimidrule 完成之前结束

Latex 错误:失控参数段落在表格和表格中的 \@@@cimidrule 完成之前结束
\documentclass[journal]{IEEEtran}
\usepackage{booktabs,siunitx}

\begin{document}
\begin{table*}%[!htbp]
\centering
\caption{Day ahead accuracy assessment}
\label{tab:Day_ahead_Accuracy}
\begin{tabular}{@{} l *{6}{c} @{}}
    \toprule
 Hours &
 \multicolumn{6}{c}{US utility } \\
  \cmidrule(lr){2-7} %\cmidrule(l){10-17}
 &
  \multicolumn{1}{c}{Without optimization algorithms} &
 \multicolumn{4}{c@{}}{With optimization algorithms} &
 \multicolumn{1}{c}{Proposed} \\
 \cmidrule(lr){2} \cmidrule(l){3-6} \cmidrule(l){7} 
    &\theadb{SVR} & \theadb{SVR-PSO} & \theadb{SVR-WO} & \theadb{SVR-CBSSO} & \theadb{SVR-FA} & \theadb{SVR-mFFO}\\ 
\midrule
NSW & 4.81 & 30.1 & 0.325 & 3.35 & 25.3 & 0.500 \\
QLD & 4.84 & 28.4 & 0.625 & 2.80 & 28.9 & 0.590 \\ 

\bottomrule
\end{tabular}
\end{table*}
\end{document}

在此处输入图片描述

答案1

对于单列,\cmidrule您需要写,例如,\cmidrule{2-2}而不是\cmidrule{2}

相关内容