表格中的表名稱位置 (\documentclass = IEEEtran Conference )

表格中的表名稱位置 (\documentclass = IEEEtran Conference )

我正在使用以下程式碼:

\documentclass[10pt, conference, letterpaper]{IEEEtran}
\begin{document}
        \begin{table}
            \begin{tabular}{|c|c|c|c|}
                \hline 
                Algorithm  & Space  & Query / Update time & Some other metric   \tabularnewline
                \hline 
                \hline 
                A  & 1  & 1  & 11  \tabularnewline
                \hline 
            \end{tabular}   
            \caption{Why like this?}
        \end{table}
    \end{document}

並得到以下結果:

在此輸入影像描述

請注意,「TABLE I」的頂部與上面的相交\hline

我怎麼能讓“TABLE I”下降一點,這樣它就不會與桌子相交?

答案1

使用

\makeatletter
\def\@IEEEtablestring{figure}
\makeatother

透過這種方式,您可以對表格和圖形使用相同的空間定義。

答案2

您只需將\usepackage{subcaption}其放在後面\documentclass...即可生成:

\documentclass[10pt, conference, a4paper]{IEEEtran}
\usepackage{subcaption}
\begin{document}
%...

結果: 在此輸入影像描述

相關內容