表程式碼 sintux 在 IEEE 模板中不可執行。請幫忙

表程式碼 sintux 在 IEEE 模板中不可執行。請幫忙
\documentclass[journal]{IEEEtran}
\usepackage{booktabs, makecell}
\usepackage{siunitx}
\begin{document}
\begin{table*}[!htbp]%[H]
\centering
\caption{{Overall performance evaluation}}
\label{Tab:OPT}
%   \scalebox{0.9}[0.9]{
\begin{tabular}{cccccccccc}
    \toprule
 \multirow{2}{*}{\textbf{Performance evaluation}}& \multicolumn{4}{c}{\textbf{Case study I}& \multicolumn{4}{c}{\textbf{Case study II}} \\
    \cmidrule{2-8}
    & \textbf{ANN}
        & \textbf{LSTM}
            & \textbf{CRBM}
                & \textbf{FCRBM}
    & \textbf{ANN}
        & \textbf{LSTM}
            & \textbf{CRBM}
                & \textbf{FCRBM}\\
\midrule
    Computational complexity (level) & {Low} & {High} & {Moderate} & {Moderate} & {Moderate}& {High} & {Moderate} & {Moderate} \\
\bottomrule
\end{tabular}%}
\end{table*}
\end{document} 

答案1

據我所知,讓你的表編譯並同時看起來相當不錯所需的唯一包是包booktabs

在以下解決方案中,我進行了更改\cmidrule{2-8}\cmidrule(lr){2-5} \cmidrule(l){6-9}修復標題材料的上部和下部之間的分離。我也全部刪除了粗體字從標題單元格:如果表格設計良好且佈局清晰,那麼只需不需要採取廉價的伎倆——例如粗體字——為了帶給桌子它所需要和應有的視覺吸引力。相反,如果表格的佈局不合格,無論有多少選擇性的粗體字面都無法改善其外觀。

在此輸入影像描述

\documentclass[journal]{IEEEtran}
\usepackage{booktabs}
\begin{document}

\begin{table*}[!htbp]
\centering
\caption{Overall performance evaluation}
\label{Tab:OPT}
\begin{tabular}{@{} l *{8}{c} @{}}
    \toprule
 Performance evaluation &  
 \multicolumn{4}{c}{Case study I}& 
 \multicolumn{4}{c@{}}{Case study II} \\
 \cmidrule(lr){2-5} \cmidrule(l){6-9}
    & ANN & LSTM & CRBM & FCRBM 
    & ANN & LSTM & CRBM & FCRBM \\
\midrule
    Computational complexity (level) & 
    Low & High & Moderate & Moderate & 
    Moderate & High & Moderate & Moderate \\
\bottomrule
\end{tabular}
\end{table*}
\end{document} 

答案2

試試這個程式碼

\documentclass[journal]{IEEEtran}

\usepackage{booktabs, makecell}
\usepackage{siunitx}
\usepackage{multirow} %added

\begin{document}
\begin{table*}[!htbp]%[H]
\centering
\caption{{Overall performance evaluation}}
\label{Tab:OPT}
%   \scalebox{0.9}[0.9]{
\begin{tabular}{cccccccccc}
    \toprule
\multirow{2}{*}{\textbf{Performance evaluation}}& \multicolumn{4}{c}{\textbf{Case study I}}& \multicolumn{4}{c}{\textbf{Case study II}} \\
    \cmidrule{2-8}
    & \textbf{ANN}
        & \textbf{LSTM}
            & \textbf{CRBM}
                & \textbf{FCRBM}
    & \textbf{ANN}
        & \textbf{LSTM}
            & \textbf{CRBM}
                & \textbf{FCRBM}\\
\midrule
    Computational complexity (level) & {Low} & {High} & {Moderate} & {Moderate} & {Moderate}& {High} & {Moderate} & {Moderate} \\
\bottomrule
\end{tabular}%}
\end{table*}
\end{document} 

在此輸入影像描述

我剛剛意識到這個答案已經由大衛·卡萊爾在他的評論中完成了。

相關內容