如何在 solidity-highlighting.tex 包中添加标题

如何在 solidity-highlighting.tex 包中添加标题

我正在使用以下 Latex 代码显示 Solidity 列表,但它没有显示任何标题。我从以下地址下载了文件这里

请有人指导我如何添加标题。项目文件链接为:项目文件链接 我的代码是:

\documentclass[manuscript,screen]{acmart}
\usepackage{listings}
\input{solidity-highlighting.tex}
\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{A1}
\begin{abstract}
  Testing abstract
\end{abstract}
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10002978.10003022</concept_id>
<concept_desc> and 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}
\begin{lstlisting}[language=Solidity] 
contract TestList1{

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


\end{document}
\endinput

代码的输出是:

无标题输出

我正在寻找这样的东西:

所需输出

相关内容