我的代码尚未显示与表相关的任何内容。以下是我的代码:
\documentclass[manuscript,screen]{acmart}
\usepackage{listings}
\input{solidity-highlighting.tex}
\usepackage[colorinlistoftodos]{todonotes}
\AtBeginDocument{%
\providecommand\BibTeX{{%
\normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}
\setcopyright{acmcopyright}
\copyrightyear{2020}
\acmYear{2020}
\acmDOI{10.1145/1122445.1122456}
\begin{document}
\title{A Test of Latex}
\author{ Khan}
\email{Khan@edu}
\affiliation{}
\institution{ University}
\renewcommand{\shortauthors}{Trovato and Tobin, et al.}
\begin{abstract}
Testing abstract
\end{abstract}
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10002978.10003022</concept_id>
<concept_desc>Testing and testingand privacy~ application security</concept_desc>
<concept_significance>500</concept_significance>
</concept>
<concept>
<concept_id>10002944.10011122.10002945</concept_id>
<concept_desc>General and reference~Surveys and overviews</concept_desc>
<concept_significance>500</concept_significance>
</concept>
</ccs2012>
\end{CCSXML}
\ccsdesc[500]{Security and privacy~Software and application security}
\ccsdesc[500]{General and reference~Surveys and overviews}
\maketitle
\section{Introduction}
Hello. \citet{1}, \citet{2}, \citet{3} %\cite{8} \cite{105} \cite{112} %\cite{48} \cite{87}.
\begin{lstlisting}[language=Solidity]
contract TestList1{
}
\end{lstlisting}
**begin{table}[]**
\centering
\begin{tabular}{l|ccccc|cccc|cc|ccc|ccc|ccc}
\end{tabular}
\caption{Testing Table for Classification.}
\label{tab:classification}
\vspace{-0.1in}
\end{table}
\bibliographystyle{ACM-Reference-Format}
\bibliography{sourcefile-bib}
\end{document}
\endinput
我收到以下错误信息:
Package caption Error: \caption outside float.
main.tex, line 191
Too many }'s.
我无法理解以下事情:
begin{table}[]???Can't understand
\label{tab:classification}???Can't understand
\vspace{-0.1in} ???Can't understand
图像是:
答案1
您还未提供各种内容,例如文件solidity-highlighting.tex
。请确保您的 MWE 可供其他人处理。
无论如何,你的问题是你说的begin{table}[]
是\begin{table}[]