![如何在使用条形环境时在表格中添加标题和标签?](https://linux22.com/image/406690/%E5%A6%82%E4%BD%95%E5%9C%A8%E4%BD%BF%E7%94%A8%E6%9D%A1%E5%BD%A2%E7%8E%AF%E5%A2%83%E6%97%B6%E5%9C%A8%E8%A1%A8%E6%A0%BC%E4%B8%AD%E6%B7%BB%E5%8A%A0%E6%A0%87%E9%A2%98%E5%92%8C%E6%A0%87%E7%AD%BE%EF%BC%9F.png)
我正在使用 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}