我正在使用ACM-Reference-Format。我需要根据参考文献在论文中出现的顺序对它们进行排序,所以我尝试使用biblatex包,如下所示:
\usepackage[sorting=none]{biblatex}
\bibliographystyle{ACM-Reference-Format}但随后我得到了以下错误:

我是不是遗漏了什么?谢谢!
发布于 2018-01-24 17:15:26
默认情况下,acm类打开与biblatex不兼容的natbib。幸运的是,有一个选项可以关闭它。然后,您可以按如下方式使用biblatex,包括sorting=none选项:
\documentclass[sigconf,natbib=false]{acmart}
\usepackage[style=ACM-Reference-Format,backend=bibtex,sorting=none]{biblatex}
\addbibresource{sample-bibliography.bib}并放入
\printbibliography在文档中要打印文档的位置。
对sample-sigconf.tex执行此操作并添加一个\nocite{*}会产生如下所示的参考书目,将Lamport作为第一个参考文献,而不是作者以A开头的文章。

以下是演示这一点的最小文档:
\documentclass[sigconf,natbib=false]{acmart}
\usepackage[style=ACM-Reference-Format,backend=bibtex,sorting=none]{biblatex}
\addbibresource{sample-bibliography.bib}
\begin{document}
\title{Contribution title}
\author{A. N. Author}
\maketitle
\textcite{Kosiur01} and \textcite{Cohen07}
\printbibliography
\end{document}其中sample-bibliography.bib包含
@Article{Cohen07,
author = "Sarah Cohen and Werner Nutt and Yehoshua Sagic",
title = "Deciding equivalances among conjunctive aggregate queries",
journal = JACM,
articleno = "5",
numpages = "50",
volume = "54",
number = "2",
month = apr,
year = "2007",
doi = "10.1145/1219092.1219093",
url = "http://doi.acm.org/10.1145/1219092.1219093",
acmid = "1219093",
note = "",
}
@Book{Kosiur01,
author = "David Kosiur",
title = "Understanding Policy-Based Networking",
publisher = "Wiley",
year = "2001",
address = "New York, NY",
edition = "2nd.",
editor = "",
volume = "",
number = "",
series = "",
month = "",
note = "",
}在pdflatex, bibtex, pdflatex, pdflatex之后给予

删除sorting=none选项会导致书目中出现相反的顺序。
切换到默认的后端biber而不是bibtex将使您能够访问biblatex的更多功能。
https://stackoverflow.com/questions/48411689
复制相似问题