Biblatex 在转换为 pdf 时打印 5 位数字

Biblatex 在转换为 pdf 时打印 5 位数字

我在用Emacs Org 模式导出为 pdf。我在参考文献中打印出一个五位数字,例如下面的 00005。

Schneier, B., (2004 年 1 月),秘密与谎言:网络世界中的数字安全(第 1 版),00005,纽约:Wiley。

我的 .bib 文件如下所示。我认为佐特罗把数字放在所有“注释 =”

    @book{schneier_secrets_2004,
    address = {New York},
    edition = {1 edition},
    title = {Secrets and {Lies}: {Digital} {Security} in a {Networked} {World}},
    isbn = {9780471253112},
    shorttitle = {Secrets and {Lies}},
    abstract = {Bestselling author Bruce Schneier offers his expert guidance on achieving security on a networkInternationally recognized computer security expert Bruce Schneier offers a practical, straightforward guide to achieving security throughout computer networks. Schneier uses his extensive field experience with his own clients to dispel the myths that often mislead IT managers as they try to build secure systems. This practical guide provides readers with a better understanding of why protecting information is harder in the digital world, what they need to know to protect digital information, how to assess business and corporate security needs, and much more.* Walks the reader through the real choices they have now for digital security and how to pick and choose the right one to meet their business needs* Explains what cryptography can and can't do in achieving digital security},
    language = {English},
    publisher = {Wiley},
    author = {Schneier, Bruce},
    month = jan,
    year = {2004},
    note = {00005}
}

因此,问题的根源是 note = {00005}。奇怪的是,从命令行使用 pandoc 到 .odt 不会发生这种情况。只有使用 .pdf 导出时才会发生这种情况。

我的 .org 文件的相关部分。

#+LaTeX_HEADER: \usepackage[british]{babel}
#+LaTeX_HEADER: \usepackage{csquotes}
#+LaTeX_HEADER: \usepackage[backend=biber,style=apa,url=true, doi=false, isbn=false, eprint=false, maxbibnames=10, maxcitenames=3,language=british]{biblatex}
#+LaTeX_HEADER: \DeclareLanguageMapping{british}{british-apa}
#+LATEX_HEADER: \bibliography{/home/felixdz/Dropbox/bibliography/references}

我如何停止打印五位数字?

答案1

我想为稍后再讨论这个问题的人提供更多细节,尤其是因为我认为将此描述为 Zotero 问题有点误导——Zotero 正在做它应该做的事情。这是一个数据输入问题。特别是当从亚马逊等低数据质量来源导入时,用户需要在导入后清理数据。这不仅在导出到 bibtex 时如此,而且在用 Zotero 的内置功能生成正确的引文时也是如此。具体来说:

  1. 花括号:Zotero 希望将标题输入到句子形式。因此,任何以大写字母开头的单词都被视为专有名词,因此用花括号括起来,以防止 bibtex 强制小写。

  2. bibtex 中的字段note由 Zotero 中的“Extra”字段填充,其用途大致相同。本例中它包含 0005 的原因几乎肯定是因为用户安装了第三方插件就是这样。(这里有一点哲学问题,因为 Zotero 总是包含尽可能多的项目数据,而许多 bibtex 样式假设所有提供的数据都应该被引用——这也解释了书籍引用的月份,这是不正确的 APA。从 Zotero 的角度来看,我认为这是 apa.bst 中的一个错误,但这主要是方法上的差异。Extra/Note 字段也是如此:APA 书籍引用中没有“Note”这样的东西,所以即使填充了 Extra 字段,Zotero 也不会将其包含在 APA 引用中,但 apa.bst 样式确实包含了它note。所以除非你将 Zotero 生成的 bibtex 与来自其他来源的 bibtex 混合在一起,否则我会说按照上面评论中的建议使用\clearfield就可以了)。

  3. 如上所述,就像在 bibtex 中一样,在 Zotero 中版本字段应该显示“1”(或者,在这种情况下可能只是空的)。

答案2

在我看来,这是一个 Zotero 问题,而不是 Biblatex 问题。我发现通过Zotero 论坛这个五位数字是由于 Zotero 中一个名为“Extra”的字段造成的,而“1 Edition”而不是“1st Edition”是由于从亚马逊导入造成的。

解决方法是手动删除 Zotero 中的“额外”字段并更正书籍的版本。我还必须确保在添加新条目时这些内容正确无误。

感谢那些回复的人。

相关内容