
Я получаю ненужные символы в своем проекте. Я использовал простое приложение, но оно также генерирует эти символы. Я пытался комментировать свои предыдущие изменения, но все равно получаю эти символы. Я также получаю ошибку с \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, файлы 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.