默认情况下,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
将为您提供更多的功能。
ACM-Reference-Format.bbx
、ACM-Reference-Format.cbx
和ACM-Reference-Format.dbx
。它们都是标准 ACM 发行版的一部分。.bst
文件适用于标准 bibtex,而 biblatex 使用这些其他文件。 - Andrew Swann