使用ACM参考文献格式的biblatex出现错误

12

我正在使用ACM参考文献格式。我需要根据论文中出现的顺序对参考文献进行排序,因此我尝试使用如下所示的biblatex包:

\usepackage[sorting=none]{biblatex}
\bibliographystyle{ACM-Reference-Format}

但是我收到了以下错误:

在此输入图片描述

我是否漏掉了什么?谢谢!

1个回答

17

默认情况下,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 运行后:

Sample output

去掉sorting=none选项会导致参考文献的相反排序。

改用默认后端biber而不是bibtex将为您提供更多的功能。


3
我尝试了上述方法,但一直收到“ACM-Reference-Format未找到”错误的提示……在第13046行中出现“\RequireBibliographyStyle{\blx@bbxfile}”,而我已经将ACM-Reference-Format.bst文件放在了文件夹中。这是因为我的bst与之冲突了吗?还是我漏掉了什么东西? - Edamame
我有这个:\documentclass[sigplan,10pt,review, natbib=false]{acmart}\settopmatter{printccs=false,printacmref=false,printfolios=true} - Edamame
3
你需要的文件是 ACM-Reference-Format.bbxACM-Reference-Format.cbxACM-Reference-Format.dbx。它们都是标准 ACM 发行版的一部分。.bst 文件适用于标准 bibtex,而 biblatex 使用这些其他文件。 - Andrew Swann
清理临时文件后(将*.tex复制到新文件中),程序成功运行。非常感谢! - Edamame
1
@HendyIrawan 标准网站为 https://www.acm.org/publications/authors/submissions - Andrew Swann
显示剩余7条评论

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接