如何强制 R markdown / LaTeX 在参考书目中显示 'note' 字段(显示附加信息)?

How can I force R markdown / LaTeX to display 'note' field in bibliography (display additional information)?

我在 .Rmd 文件中使用参考书目:

bibliography: bibliography.bib

我的示例 .bib 条目如下所示:

@misc{XYZ,
    author = "Somebody",
    note = "Accessed: 2017-01-10",
    title = "{Global database of LaTeX}",
    url = "http://writeInLatex.com",
    year = "2016"
}

我必须在参考书目中显示 "notes" 个字段。 如果是上面的例子(网页)- 关于访问日期的信息,如果是文章 - 文章的语言。

对于上面的示例,我希望在 PDF 文件中包含以下条目:

Somebody, 2016. Global database of LaTeX. Accessed: 2017-01-10

我该怎么做?

  1. 我从 'elsevier-harvard.csl' 下载了引文样式 http://www.zotero.org/styles
  2. 我打开了 http://editor.citationstyles.org/visualEditor/ 并加载提到 风格
  3. 在书目布局下我添加了节点'Text',设置类型: 'variable' 和所选变量 'note'
  4. 我更改了样式的名称 然后下载它 (elsevier-harvard-with-titles-with-notes.csl)
  5. 在我的 .Rmd 文件的 header 中,我添加了以下内容 行:csl: elsevier-harvard-with-titles-with-notes.csl

现在可以使用了!