
プロジェクトに不要な文字が表示されています。単純なアプリケーションを使用しましたが、それらの文字も生成されます。以前の変更をコメント化しようとしましたが、それでもそれらの文字が表示されます。また、 というエラーも表示されます\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 ファイルなど、次のリンクを使用してください。 プロジェクトファイルへのリンク
コメント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.