라텍스 테이블: 이해 문제 및 캡션 문제

라텍스 테이블: 이해 문제 및 캡션 문제

내 코드에는 아직 테이블과 관련된 내용이 표시되지 않습니다. 다음은 내 코드입니다.

\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}[]

관련 정보