Siunitx 乳胶中的“重复指数标记”错误

Siunitx 乳胶中的“重复指数标记”错误
\begin{table}[ht]
\centering
\caption{Evaluation of the proposed }
\label{tab:Comput}
    \setlength{\tabcolsep}{0pt}
    \sisetup{round-mode=places,
             round-precision=2,
             table-format=1.2,
             }
\begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}}  l  *{5}{S} }
    \toprule
 & \multicolumn{5}{c}{Proposed and benchmark forecasting frameworks} \\
    \cmidrule{2-6}
\thead{Months}
        & {\thead{FS-ANN\\ Computational \\efficiency}}
        & {\thead{Bi-level\\ Computational \\efficiency}}
            & {\thead{AFC-STLF\\ Computational \\efficiency}}
                & {\thead{MI-mEDE-ANN\\ Computational\\efficiency}}
                     & {\thead{FS-FCRBM-GWDO \\ Computational \\efficiency}} \\
\midrule
    Computational complexity (level) & Low & High & Moderate & High & Moderate \\

\midrule
%Avg.& 2.12 & 1.79 & 1.44 & 0.410\\
\bottomrule
\end{tabular*}
\end{table} 

在此处输入图片描述

答案1

正如评论中提到的那样:S列中的文本应该放在花括号内。由于最后一行的文本中没有包含花括号,所以你得到了上述错误。

顺便说一句,您的表格太宽了,无法放入文本区域(这是未知的,因为您没有提供 MWE,而只是提供代码片段),所以我建议在表格设计上做一些微小的改动:

\documentclass{article}
\usepackage{geometry}
\usepackage{booktabs, makecell}
\renewcommand\theadfont{\small\bfseries}
\renewcommand\theadgape{}
\newlength\colwidth
\usepackage[skip=1ex,labelfont=bf,font=small]{caption}
\usepackage{siunitx}

\begin{document}
\begin{table}[ht]
\centering
\caption{Proposed and benchmark forecasting frameworks}
\label{tab:Comput}
    \setlength{\tabcolsep}{0pt}
    \sisetup{round-mode=places,
             round-precision=2,
             table-format=1.2,
             }
    \settowidth\colwidth{complexity (level)}
\begin{tabular*}{\columnwidth}{ @{\extracolsep{\fill}}  
                                p{\colwidth}  *{5}{S} }
    \toprule
 & \multicolumn{5}{c}{\thead{Computational efficiency}} \\
    \cmidrule{2-6}
\thead{Months}
    & {\thead{FS-ANN}}
        & {\thead{Bi-level}}
            & {\thead{AFC-STLF}}
                & {\thead{MI-mEDE-ANN}}
                     & {\thead{FS-FCRBM-GWDO}} \\
\midrule
    Computational complexity (level) & {Low} & {High} & {Moderate} & {High} & {Moderate} \\

\midrule
Avg.& 2.12 & 1.79 & 1.44 & 0.410\\
\bottomrule
\end{tabular*}
\end{table} 
\end{document}

在此处输入图片描述

答案2

这应该有帮助

在此处输入图片描述

\begin{table}[ht]
    \centering
    \caption{Evaluation of the proposed }
    \label{tab:Comput}
    \setlength{\tabcolsep}{0pt}
    \sisetup{round-mode=places,
        round-precision=2,
        table-format=1.2,
    }
    \begin{tabular}{l*{5}{S}}                                                \toprule
                 & \multicolumn{5}{c}{Proposed and benchmark forecasting frameworks} \\                       \cmidrule{2-6}
        {Months} & {FS-ANN} & {Bi-level} & {AFC-STLF} & {MI-mEDE-ANN} & {FS-FCRBM-GWDO} \\         \cmidrule{1-6}
        {Computational complexity (level)} & {Low} & {High} & {Moderate} & {High} & {Moderate} \\   \cmidrule{1-6}
        Avg.& 2.12 & 1.79 & 1.44 & 0.410&\\                                                           \bottomrule
    \end{tabular}
\end{table} 

相关内容