如何删除标题和关键字列表后不必要的字符?

如何删除标题和关键字列表后不必要的字符?

我的项目中出现了不必要的字符。我使用了一个简单的应用程序,但它也生成了这些字符。我尝试注释我之前的更改,但仍然会出现这些字符。我还遇到了错误\maketitle

我的代码是:

\documentclass[manuscript,screen]{acmart}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{listings}
\input{solidity-highlighting.tex}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{rotating} 


\usepackage{array, makecell}
\renewcommand\rotheadgape{}
\usepackage{xparse}
\NewExpandableDocumentCommand\mcc{O{1}m}
    {\multicolumn{#1}{>{\bfseries\small}c|}{#2}}

%---------------- show page layout. don't use in a real document!
%\usepackage{showframe}
%\renewcommand\ShowFrameLinethickness{0.15pt}
%\renewcommand*\ShowFrameColor{\color{red}}

\usepackage{lipsum} 

%\usepackage{natbib}
%\bibliographystyle{unsrtnat}
%\title{TestingLatexCopy}
%\author{ }
%\date{August 2020}

\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 Testing}
%Survey on the Tools Support and Vulnerability Detection in Smart Contracts}


\author{A1author}
\authornote{A1Note}
\email{}
%\orcid{}
\author{A2author}
\authornotemark{A2Note}
\email{}
\affiliation{
  \institution{}
%  \streetaddress{P.O. Box 1212}
%  \city{Dublin}
%  \state{Ohio}
%  \postcode{43017-6221}
}
%\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>Security </concept_desc>
<concept_significance>500</concept_significance>
</concept>
<concept>
<concept_id>10002944.10011122.10002945</concept_id>
<concept_desc>General overviews</concept_desc>
<concept_significance>500</concept_significance>
</concept>
</ccs2012>
\end{CCSXML}

\ccsdesc[500]{Security and privacy}
\ccsdesc[500]{General and reference}


%%
%% Keywords. The author(s) should pick words that accurately describe
%% the work being presented. Separate the keywords with commas.
\keywords{Testing1, Testing2, testing3}


\maketitle

\section{Introduction}



\bibliographystyle{ACM-Reference-Format}
\bibliography{sourcefile-bib}


\end{document}
\endinput

我的输出图像是:

A3 Image_A2NOTE 放错位置

文件链接:例如 Solidity-highlighting.tex、ACM_Reference 格式文件、acmart 文件和 .bib 文件请使用以下链接: 项目文件链接

在我的评论1中更改之后,图像是:

仍有不必要的字符

答案1

如果我将第 35-44 行更改为以下代码,Overleaf 中不会出现任何错误:

\documentclass[manuscript,screen]{acmart}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{listings}
\input{solidity-highlighting.tex}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{rotating} 


\usepackage{array, makecell}
\renewcommand\rotheadgape{}
\usepackage{xparse}
\NewExpandableDocumentCommand\mcc{O{1}m}
    {\multicolumn{#1}{>{\bfseries\small}c|}{#2}}

%---------------- show page layout. don't use in a real document!
%\usepackage{showframe}
%\renewcommand\ShowFrameLinethickness{0.15pt}
%\renewcommand*\ShowFrameColor{\color{red}}

\usepackage{lipsum} 
\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 Testing}
   
\author{A1}
% \authornote{}
% \email{}
%\orcid{}
\author{A2}
% \authornotemark{}
% \email{}
% \affiliation{
%   \institution{}
% }
\begin{abstract}
  Testing abstract
\end{abstract}
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10002978.10003022</concept_id>
<concept_desc>Security </concept_desc>
<concept_significance>500</concept_significance>
</concept>
<concept>
<concept_id>10002944.10011122.10002945</concept_id>
<concept_desc>General overviews</concept_desc>
<concept_significance>500</concept_significance>
</concept>
</ccs2012>
\end{CCSXML}

\ccsdesc[500]{Security and privacy}
\ccsdesc[500]{General and reference}


\keywords{Testing1, Testing2, testing3}


\maketitle

\section{Introduction}



\bibliographystyle{ACM-Reference-Format}
\bibliography{sourcefile-bib}


\end{document}
\endinput

我收到的唯一警告是:Package natbib Warning: Empty `thebibliography' environment on input line 40.

在此处输入图片描述

相关内容