【问题标题】:Error when using biblatex with ACM-reference-format将 biblatex 与 ACM-reference-format 一起使用时出错
【发布时间】:2018-07-02 20:40:22
【问题描述】:

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

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

然后我得到以下错误:

我有什么遗漏吗?谢谢!

【问题讨论】:

    标签: latex bibtex bibliography biblatex


    【解决方案1】:

    默认情况下,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 的更多功能。

    【讨论】:

    • 我尝试了上述方法,但不断收到 ACM-Reference-Format not found 错误...说 l.13046 \RequireBibligographyStyle{\blx@bbxfile} 并且我确实有我的 ACM-Reference-Format。 bst 在文件夹中。这是否与此 bst 冲突?还是我错过了什么?
    • 我有这个:\documentclass[sigplan,10pt,review, natbib=false]{acmart}\settopmatter{printccs=false,printacmref=false,printfolios=true}
    • 您需要的文件是ACM-Reference-Format.bbxACM-Reference-Format.cbxACM-Reference-Format.dbx。它们都是标准 acm 分布的一部分。 .bst 文件用于标准 bibtex; biblatex 使用这些其他文件。
    • 添加了这些文件。然后我得到了新的错误: 扫描使用 \@writefil \par l.80 \begin{document} 时文件结束?有什么想法吗?
    • @HendyIrawan 标准网站是acm.org/publications/authors/submissions
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-04-13
    • 1970-01-01
    • 2016-05-12
    • 2016-11-05
    • 2021-12-06
    • 2015-07-15
    • 2016-05-04
    相关资源
    最近更新 更多