\documentclass[journal]{IEEEtran}
\hyphenation{Smart Grid}
\usepackage[classicReIm]{kpfonts}
\usepackage{siunitx,booktabs}
\begin{document}
\begin{table*}
\centering
\caption{Analysis}
\label{tab:M_CPE}
\setlength{\tabcolsep}{0pt}
\begin{tabular*}{\textwidth}{
@{\extracolsep{\fill}}
S[table-format=2.0]
*{10}{S[table-format=1.2]}
@{}
}
\toprule
& \multicolumn{9}{c}{Proposed and existing forecast models} \\
\cmidrule{3-10}
{Hours} &
{Target} &
\multicolumn{2}{c}{FCRBM} &
\multicolumn{2}{c}{AFC-STLF} &
\multicolumn{2}{c}{Bi-level} &
\multicolumn{2}{c}{MI-ANN} \\
\cmidrule{3-4}\cmidrule{5-6}\cmidrule{7-8}\cmidrule{9-10}
& {P.load(kW)} & {MAPE(\%)}
& {P.load (kW)} & {MAPE(\%)}
& {P.load (kW)} & {MAPE(\%)}
& {P.load(kW)} & {MAPE(\%)} \\
\midrule
1 & 1.10 & 1.03 & 0.78 & 2.13 & 1.46 & 0.78 & 2.27 & 1.30 & 0.73 \\
2 & 1.44 & 0.95 & 0.67 & 2.17 & 1.47 & 0.60 & 2.15 & 1.45 & 0.48 \\
\midrule
{Avg.} & 1.10 & 1.03& 0.79 & 2.20 & 1.25 & 0.65 & 2.10 & 1.35 & 0.60 \\
\bottomrule
\end{tabular*}
\end{table*}
\end{document}
答案1
表格的第三行应该有两个空单元格,但您只插入一个。
此外,列数为十,而不是您设置的十一。
我变成(kW)
了正确的人(\si{\kilo\watt})
。
\documentclass[journal]{IEEEtran}
\usepackage[classicReIm]{kpfonts}
\usepackage{siunitx,booktabs}
\begin{document}
\begin{table*}
\centering
\caption{Analysis}
\label{tab:M_CPE}
\setlength{\tabcolsep}{0pt}
\begin{tabular*}{\textwidth}{
@{\extracolsep{\fill}}
S[table-format=2.0]
*{9}{S[table-format=1.2]} % 9, not 10
@{}
}
\toprule
& \multicolumn{9}{c}{Proposed and existing forecast models} \\
\cmidrule{3-10}
{Hours} &
{Target} &
\multicolumn{2}{c}{FCRBM} &
\multicolumn{2}{c}{AFC-STLF} &
\multicolumn{2}{c}{Bi-level} &
\multicolumn{2}{c}{MI-ANN} \\
\cmidrule{3-4}\cmidrule{5-6}\cmidrule{7-8}\cmidrule{9-10}
& % <---- this was missing
& {P.load (\si{\kilo\watt})} & {MAPE (\%)}
& {P.load (\si{\kilo\watt})} & {MAPE (\%)}
& {P.load (\si{\kilo\watt})} & {MAPE (\%)}
& {P.load (\si{\kilo\watt})} & {MAPE (\%)} \\
\midrule
1 & 1.10 & 1.03 & 0.78 & 2.13 & 1.46 & 0.78 & 2.27 & 1.30 & 0.73 \\
2 & 1.44 & 0.95 & 0.67 & 2.17 & 1.47 & 0.60 & 2.15 & 1.45 & 0.48 \\
\midrule
{Avg.} & 1.10 & 1.03& 0.79 & 2.20 & 1.25 & 0.65 & 2.10 & 1.35 & 0.60 \\
\bottomrule
\end{tabular*}
\end{table*}
\end{document}
顺便说一句,\hyphenation{Smart Grid}
什么都不做:这两个单词无论如何都不会被连字符连接。
您应该考虑删除第一行并将其合并到标题中。