该行显示:放错了 \omit。第 818--818 行对齐中的 underfull \hbox badness(1000)。下面还提到了错误

该行显示:放错了 \omit。第 818--818 行对齐中的 underfull \hbox badness(1000)。下面还提到了错误

我运行的代码:

\begin{table*}[htbp]
\caption{alekga g. The number of stars represents the strength levels. (* = good, * = better, * = best)}
\centering
\begin{tabularx}{\textwidth}{|>{\centering\hsize=0.3\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.05\hsize\arraybackslash}X|>{\centering\hsize=0.35\hsize\arraybackslash}X|}
     
\hline
 &
\multicolumn{7}{c|}{\textbf{Strengths}} &
   \\ \cline{2-8}
\multirow{-2}{*}{\textbf{Techniques}} & \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{Complexity }} \end{turn} & \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{Accuracy}} \end{turn} & \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{Robustness }} \end{turn} & \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{VSTLF}} \end{turn} & \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{STLF}} \end{turn} & \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{MTLF}} \end{turn}& \begin{turn}{90}
  \multicolumn{1}{l}{\textbf{LTLF}} \end{turn} &
  \multirow{-2}{*}{\textbf{References}} \\ \hline
LSTM &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{X} &
  X &
  \cite{Rafi2021,Phyo2019221,dat_hybrid_2021,YANG2022108150,Han2019,Fang2022,JAVED2022117689,JHA2021107479,SHI1,GUO20201046,Xuan2021} \\ \hline
SVR &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{*} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{***} &
  *** &
  \cite{KAVOUSIFARD20146047,WANG201265,en5114430,en9020070,FattaheianDehkordi2014,Tran20223410,KONG2020114368,Niu_2021,ZHANG2012850,KAYTEZ2015431,Alire2019,Li2016,Zhang2020,Zeng2018,en9100827,Jawad2020} \\ \hline
ANN &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{***} &
  *** &
  \cite{Mohammed2022,article11,Hamzacebi2019,OFORINTOWJNR2021102679,su14010188,rizk2020,WU2013126,arssfdticle,Kavousi-Fard2014517,golilarz_short-term_2021,Farfar2019,Phyo2021,kuruge,Gafar2018,essallah_comparative_2019,YU2015176,ARDAKANI2014452,AZADEH2013605,GUO20181186,Cheng2020,salgado_hybrid_2013,Liu2021,Gao2020,MOAZZAMI2013489,Ma2020,articsdale,YU2014102,BENDAOUD2021111152,en12122445,sarvba,en14175510,Sheikhan2012,azadeh_optimization_2014,houimli_short-term_2020,hu020,Mir2021,liu_short-term_2021,ARVV3,electronics11101524,Ananthu2021114,Bedi2018} \\ \hline
Time series &
  \multicolumn{1}{l|}{*} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{*} &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{**} &
  *** &
  \cite{saleh_hybrid_2014,KAZEMZADEH2020117948,fard201223,VELASQUEZ2022123483,paperi021,Xie2017,LEE2012251,HAMZACEBI2014165,zeng2017,YUKSELTAN2020100524,en13205309,ZHAO2016272,paul2019,Han2021,Li2018,CHRENG202276,SERRANOGUERRERO2021117173,migon2013,9403196} \\ \hline
ANFIS &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{**} &
  \multicolumn{1}{l|}{*} &
  \multicolumn{1}{l|}{***} &
  \multicolumn{1}{l|}{X} &
  ** &
  \cite{SHAO2015876,Fallahpour2021142,mollaiy-berneti_optimal_2016,jain2019,PatiRaySingh+2022+59+72,LAOUAFI2016136,Cevik2015,artitiancle,rahtor20} \\ \hline
  \end{tabularx}
  \label{st4}
  \end{table*}

我得到的错误:

\multispan ->\omit 
                   \@multispan 
l.818   \end{tabularx}
                      
I expect to see \omit only after tab marks or the \cr of
an alignment. Proceed, and I'll ignore this case.

答案1

你对旋转单元格的构造是错误的。而不是

\begin{turn}{90} \multicolumn{1}{l}{\textbf{<content>}} \end{turn} 

你应该写简单

\begin{turn}{90} \textbf{<content>}\end{turn} 

通过此修正,您的表格代码可以无错误地编译。结果是:

在此处输入图片描述

无关:

  • 您的表格似乎是用一些表格生成器生成的...因此代码包含很多不必要的东西\multicolumn{1}{l|}{...}。请将它们全部删除。
  • 第一列的宽度太宽!请尝试将其列规格更改为cl
  • 您的列指定被表格代码中的命令覆盖\multicolumns。因此单元格内容左对齐而不是居中。
  • 在我看来,使用`tabularray 包可以获得更漂亮的表格和更简单的代码:
\documentclass[twocolumn]{article}
\usepackage{rotating}
\usepackage{makecell}
\usepackage{tabularray}

\begin{document}
    \begin{table*}
\caption{alekga g. The number of stars represents the strength levels.
         (* = good, * = better, * = best)}
\label{st4}
\settowidth\rotheadsize{\normalsize\bfseries Complexity}
\renewcommand\theadfont{\normalsize}
\begin{tblr}{hlines, vlines,
             colspec = {l *{7}{X[c]} X[7,l]},
             row{1}  = {font=\bfseries},
             row{2}  = {font=\bfseries, cmd=\rothead}
             }
\SetCell[r=2]{c}  Techniques
    &    \SetCell[c=7]{c}  Strengths
        &   &   &   &   &   &   &  \SetCell[r=2]{c}  References \\
    & Complexity
        & Accuracy
            & Robustness
                & VSTLF
                    &  STLF
                        &  MTLF
                            &  LTLF
                                &       \\
LSTM    & *** & **  & *** & *** & *** & X   & X
    & \cite{Rafi2021, Phyo2019221, dat_hybrid_2021, YANG2022108150, Han2019, Fang2022,
            JAVED2022117689, JHA2021107479, SHI1, GUO20201046, Xuan2021} \\
SVR     & **  & *** & **  & *   & *** & *** & ***
    & \cite{KAVOUSIFARD20146047,WANG201265,en5114430,en9020070,FattaheianDehkordi2014,
            Tran20223410,KONG2020114368,Niu_2021,ZHANG2012850,KAYTEZ2015431,Alire2019,
            Li2016,Zhang2020,Zeng2018,en9100827,Jawad2020} \\
ANN     & **  & *** & *** & **  & ***  & *** & ***
    & \cite{Mohammed2022,article11,Hamzacebi2019,OFORINTOWJNR2021102679,su14010188,rizk2020,
            WU2013126,arssfdticle,Kavousi-Fard2014517,golilarz_short-term_2021,Farfar2019,
            Phyo2021,kuruge,Gafar2018,essallah_comparative_2019,YU2015176,ARDAKANI2014452,
            AZADEH2013605,GUO20181186,Cheng2020,salgado_hybrid_2013,Liu2021,Gao2020,MOAZZAMI2013489,
            Ma2020,articsdale,YU2014102,BENDAOUD2021111152,en12122445,sarvba,en14175510,Sheikhan2012,
            azadeh_optimization_2014,houimli_short-term_2020,hu020,Mir2021,liu_short-term_2021,
            ARVV3,electronics11101524,Ananthu2021114,Bedi2018} \\
Time series
        & *   & *** & *   & **  & *** & **  & ***
    & \cite{saleh_hybrid_2014,KAZEMZADEH2020117948,fard201223,VELASQUEZ2022123483,paperi021,
            Xie2017,LEE2012251,HAMZACEBI2014165,zeng2017,YUKSELTAN2020100524,en13205309,
            ZHAO2016272,paul2019,Han2021,Li2018,CHRENG202276,SERRANOGUERRERO2021117173,
            migon2013,9403196} \\
ANFIS   & **  & *** & **  & *   & *** & X   & **
    & \cite{SHAO2015876,Fallahpour2021142,mollaiy-berneti_optimal_2016,jain2019,
            PatiRaySingh+2022+59+72,
            LAOUAFI2016136,Cevik2015,artitiancle,rahtor20} \\
\end{tblr}
    \end{table*}
\end{document}

在此处输入图片描述

相关内容