解决 overleaf 的 ACM 会议论文参考文献乱序(ACM-Reference-Format格式)

ACM会议投稿时,使用 .bib 文件引入参考文献时,使用模板(模板:sample-sigconf.tex)给出的代码:

\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}  %这里的sample-base是你参考文献的.bib文件

 在正文中会出现引用序号乱序的情况,情如:

Reference部分:

如果把代码:

\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}  %这里的sample-base是你参考文献的.bib文件

 换成:

% \bibliographystyle{unsrt}
% \bibliography{sample-base}

 此时,正文展示结果:

 Reference部分:

此时,参考文献的格式和 ACM-Reference-Format 的格式不同,因此,不能使用 unsrt 格式。

解决方法如下:

 1、在编译完 ACM-Reference-Format 格式后,点击日志和生成的文件,拉到最底部,找到“其他日志和文件”,选择“output.bbl”文件并下载:

 

 

打开 "output.bbl" 文件(win用户使用记事本就可以打开,也可以用vscode打开),长下面这样子:

%%% -*-BibTeX-*-
%%% Do NOT edit. File created by BibTeX with style
%%% ACM-Reference-Format-Journals [18-Jan-2012].

\begin{thebibliography}{31}

%%% ====================================================================
%%% NOTE TO THE USER: you can override these defaults by providing
%%% customized versions of any of these macros before the \bibliography
%%% command.  Each of them MUST provide its own final punctuation,
%%% except for \shownote{}, \showDOI{}, and \showURL{}.  The latter two
%%% do not use final punctuation, in order to avoid confusing it with
%%% the Web address.
%%%
%%% To suppress output of a particular field, define its macro to expand
%%% to an empty string, or better, \unskip, like this:
%%%
%%% \newcommand{\showDOI}[1]{\unskip}   % LaTeX syntax
%%%
%%% \def \showDOI #1{\unskip}           % plain TeX syntax
%%%
%%% ====================================================================

\ifx \showCODEN    \undefined \def \showCODEN     #1{\unskip}     \fi
\ifx \showDOI      \undefined \def \showDOI       #1{#1}\fi
\ifx \showISBNx    \undefined \def \showISBNx     #1{\unskip}     \fi
\ifx \showISBNxiii \undefined \def \showISBNxiii  #1{\unskip}     \fi
\ifx \showISSN     \undefined \def \showISSN      #1{\unskip}     \fi
\ifx \showLCCN     \undefined \def \showLCCN      #1{\unskip}     \fi
\ifx \shownote     \undefined \def \shownote      #1{#1}          \fi
\ifx \showarticletitle \undefined \def \showarticletitle #1{#1}   \fi
\ifx \showURL      \undefined \def \showURL       {\relax}        \fi
% The following commands are used for tagged output and should be
% invisible to TeX
\providecommand\bibfield[2]{#2}
\providecommand\bibinfo[2]{#2}
\providecommand\natexlab[1]{#1}
\providecommand\showeprint[2][]{arXiv:#2}

\bibitem[Boneh et~al\mbox{.}(2003)]%
        {BilinearMaps}
\bibfield{author}{\bibinfo{person}{Dan Boneh}, \bibinfo{person}{Craig Gentry}, \bibinfo{person}{Ben Lynn}, {and} \bibinfo{person}{Hovav Shacham}.} \bibinfo{year}{May 4-8, 2003}\natexlab{}.
\newblock \showarticletitle{Aggregate and Verifiably Encrypted Signatures from Bilinear Maps}. In \bibinfo{booktitle}{\emph{Proceedings of the International Conference on the Theory and Applications of Cryptographic Techniques (EUROCRYPT)}} (Warsaw, Poland) \emph{(\bibinfo{series}{Lecture Notes in Computer Science}, Vol.~\bibinfo{volume}{2656})}, \bibfield{editor}{\bibinfo{person}{Eli Biham}} (Ed.). \bibinfo{publisher}{Springer}, \bibinfo{pages}{416--432}.
\newblock
\urldef\tempurl%
\url{https://doi.org/10.1007/3-540-39200-9\_26}
\showDOI{\tempurl}


\bibitem[Bordes et~al\mbox{.}(2011)]%
        {Bordes11Learning}
\bibfield{author}{\bibinfo{person}{Antoine Bordes}, \bibinfo{person}{Jason Weston}, \bibinfo{person}{Ronan Collobert}, {and} \bibinfo{person}{Yoshua Bengio}.} \bibinfo{year}{Aug. 7-11, 2011}\natexlab{}.
\newblock \showarticletitle{Learning Structured Embeddings of Knowledge Bases}. In \bibinfo{booktitle}{\emph{Proceedings of the 25th {AAAI} Conference on Artificial Intelligence (AAAI)}} (San Francisco, California, USA), \bibfield{editor}{\bibinfo{person}{Wolfram Burgard} {and} \bibinfo{person}{Dan Roth}} (Eds.). \bibinfo{publisher}{{AAAI} Press}, \bibinfo{pages}{301--306}.
\newblock
\urldef\tempurl%
\url{https://doi.org/10.1609/AAAI.V25I1.7917}
\showDOI{\tempurl}

% 剩余文献 。。。

\end{thebibliography}

 这个 "output.bbl" 文件里面的文献仍然是乱序的,需要你自己根据正文中参考文献的引用顺序整理一下,整理完后可以看到顺序变了:

 3、整理完顺序后,将该文件所有内容复制,粘贴到 overleaf 的参考文献部分,并注释代码:

% \bibliographystyle{ACM-Reference-Format}
% \bibliography{reference}

 

然后再编译,就可以得到正确的正文引用顺序和参考文献格式了

 

posted @ 2025-05-24 20:08  豆豆是只乖狗狗  阅读(1127)  评论(0)    收藏  举报