
내 프로젝트에 불필요한 문자가 나타납니다. 나는 간단한 응용 프로그램을 사용했지만 해당 문자도 생성하고 있습니다. 이전 변경 사항에 대해 설명하려고 했지만 여전히 해당 문자가 표시됩니다. 에서도 오류가 발생합니다 \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
내 출력 이미지는 다음과 같습니다
파일 링크: Solidity-highlighting.tex, ACM_Reference Format 파일, acmart 파일, .bib 파일은 다음 링크를 사용하세요. 프로젝트 파일 링크
내 comment1을 변경한 후 이미지는 다음과 같습니다.
답변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.