如何在使用条形环境时在表格中添加标题和标签?

如何在使用条形环境时在表格中添加标题和标签?

我正在使用 IEEE Access 模板撰写论文,在页面中间,我需要插入一个横跨两列的表格。因此,我使用了。我得到的输出如下图所示。 在此处输入图片描述

问题是我无法按照 IEEE Access 样式写标题,如下图所示。 在此处输入图片描述

以下是我的 MWE。

\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{cuted}
\usepackage{textcomp}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.}
\doi{10.1109/ACCESS.2017.DOI}

\title{Preparation of Papers for IEEE ACCESS}


\begin{abstract}
These instructions give you guidelines for preparing papers for 
IEEE Access. Use this document as a template if you are 
using \LaTeX.
\end{abstract}

\begin{keywords}
A,B,C
\end{keywords}

\titlepgskip=-15pt

\maketitle

\section{Introduction}
\label{sec:introduction}
\PARstart{T}{his} document is a template for \LaTeX. 
\begin{strip}
\centering
\setlength{\tabcolsep}{3pt}
\begin{tabular}{|p{45pt}|p{115pt}|p{150pt}|p{150pt}|}
\hline
\textbf{Reference} & \textbf{Technique(s)} & \textbf{Data} & \textbf{Findings} \\
\hline
[1] & Text & Some Text & Some More Text \\ \hline
\end{tabular}
\end{strip}
\EOD

\end{document}

请帮助我如何按照规定的格式添加标题和标签。

答案1

您可以使用包\captionof中的命令capt-of。在您的 MWE 中,

\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{cuted}
\usepackage{textcomp}
\usepackage{capt-of}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.}
\doi{10.1109/ACCESS.2017.DOI}

\title{Preparation of Papers for IEEE ACCESS}


\begin{abstract}
These instructions give you guidelines for preparing papers for 
IEEE Access. Use this document as a template if you are 
using \LaTeX.
\end{abstract}

\begin{keywords}
A,B,C
\end{keywords}

\titlepgskip=-15pt

\maketitle

\section{Introduction}
\label{sec:introduction}
\PARstart{T}{his} document is a template for \LaTeX. 
\begin{strip}
\centering
\captionof{table}{Text of the caption.}
\setlength{\tabcolsep}{3pt}
\begin{tabular}{|p{45pt}|p{115pt}|p{150pt}|p{150pt}|}
\hline
\textbf{Reference} & \textbf{Technique(s)} & \textbf{Data} & \textbf{Findings} \\
\hline
[1] & Text & Some Text & Some More Text \\ \hline
\end{tabular}
\end{strip}
\EOD

\end{document}

相关内容