默认情况下,acm 类打开natbib,这与biblatex 不兼容。幸运的是,有一个选项可以关闭它。然后您可以按如下方式使用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 的更多功能。