IEEE 的表格格式有问题

IEEE 的表格格式有问题

您好,我正在尝试将 IEEE 论文的表格缩小到半列。为了复制该问题,我准备了一个小示例:

这是我目前所拥有的,但是这是不正确行为,请注意标题之间没有空格,并且表格和段落之间也没有空格:

在此处输入图片描述

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{siunitx}    % v3!
\usepackage{ragged2e}
\usepackage{caption} 

\usepackage{booktabs}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{mwe}

\usepackage{booktabs, makecell, multirow, tabularx}
\setcellgapes{2pt}
\newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}%
                     \hsize=#1\hsize}X}
\usepackage{lipsum}
\setlength\intextsep{0pt}


%\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}

% Some paragraphs........

\section{Systematic literature review}\label{sec:systematic_review}

\subsection{Analysis of publication data}

Wacker (1998), who identified two broad macrocategories of research methods (analytical and empirical) further divided
into six categories (analytical: conceptual, mathematical and statistical; empirical: experimental design, statistical sam-
pling and case studies). The classification developed by Wacker has already been used by Burgess, Singh, and Korogl
    
\begin{table}[ht]
\centering
\small
\setlength{\tabcolsep}{4pt}
\makegapedcells
\begin{tabularx}{\columnwidth}{@{}L{0.8}L{1.1}L{1.1} @{}}
    \toprule
Type of document    &   Frequency  &   Proportion (\%) \\
    \midrule
    Journal   &   930   &   23\% \\
    Conference Proceeding   &   168   &   23\% \\
    Book series   &   111   &   23\% \\
    Book   &   5   &   23\% \\
    \bottomrule
\end{tabularx}
\caption{Types of retrieved documents for 3D ultrasound query}
\label{tab:values}
\end{table}

Wacker (1998), who identified two broad macrocategories of research methods (analytical and empirical) further divided
into six categories (analytical: conceptual, mathematical and statistical; empirical: experimental design, statistical sam-
pling and case studies). The classification developed by Wacker has already been used by Burgess, Singh, and Korogl

我正在寻找一种占据列广告并提供适当 IEEE 空间的行为,示例如下所示,请注意适当的间距:

在此处输入图片描述

为了解决这个问题,我去了 overleaf 的官方网站(我正在使用的编辑器)并进行了研究此引用我申请了但是并没有真正达到我想要的效果。

经过搜索,我还发现了这个帖子但在一定程度上有帮助。

我不明白我错过了什么。感谢您指出正确的方向。

答案1

IEEEtran 要求表格标题位于表格上方。因此,您的 MWE(略作修改)应如下所示:

\documentclass{ieeetran}
\usepackage{booktabs, makecell}
\setcellgapes{3pt}
\usepackage{siunitx} % consider is v3

\begin{document}
\section{Systematic literature review}\label{sec:systematic_review}

\subsection{Analysis of publication data}

Wacker (1998), who identified two broad macrocategories of research methods (analytical and empirical) further divided
into six categories (analytical: conceptual, mathematical and statistical; empirical: experimental design, statistical sam-
pling and case studies). The classification developed by Wacker has already been used by Burgess, Singh, and Korogl

    \begin{table}[ht]
\caption{Types of retrieved documents for 3D ultrasound query}
\label{tab:values}
\centering
\makegapedcells
\begin{tabular}{l
                S[table-format=3.0]
                S[table-format=2.0{\,\%}] 
                }
    \toprule Type of document        &   {Frequency} &   {Proportion (\%)}   \\
    \midrule
Journal                 &   930         &   23\,\%          \\
Conference Proceeding   &   168         &   23\,\%          \\
Book series             &   111         &   23\,\%          \\
Book                    &   5           &   23\,\%          \\
    \bottomrule
\end{tabular}
    \end{table}

Wacker (1998), who identified two broad macrocategories of research methods (analytical and empirical) further divided
into six categories (analytical: conceptual, mathematical and statistical; empirical: experimental design, statistical sam-
pling and case studies). The classification developed by Wacker has already been used by Burgess, Singh, and Korogl
\end{document}

在此处输入图片描述

编辑: 假设您有可用的siunitx软件包版本 2,那么\,% in oS` 列的额外空间的规范略有不同:

    \begin{table}[ht]
\caption{Types of retrieved documents for 3D ultrasound query}
\label{tab:values}
\centering
\makegapedcells
\begin{tabular}{l
                S[table-format=3.0]
                S[table-format=2.0,
                  table-space-text-post={\,\%}] % when you have installed siunitx version 2}
    \toprule Type of document        &   {Frequency} &   {Proportion (\%)}   \\
    \midrule
Journal                 &   930         &   23\,\%          \\
Conference Proceeding   &   168         &   23\,\%          \\
Book series             &   111         &   23\,\%          \\
Book                    &   5           &   23\,\%          \\
    \bottomrule
\end{tabular}
    \end{table}

结果和以前一样。

相关内容