rmarkdown: yaml references to bibliography

不羁的心 提交于 2019-12-24 05:53:02

问题


In rmarkdown/bibliography, how can I convert a bunch of YAML encoded references into one of the files formats accepted by the bibliography?

I am currently using:

references:
- id: fenner2012a
  title: One-click science marketing
  author:
  - family: Fenner
    given: Martin
  container-title: Nature Materials
  volume: 11
  URL: 'http://dx.doi.org/10.1038/nmat3283'
  DOI: 10.1038/nmat3283
  issue: 4
  publisher: Nature Publishing Group
  page: 261-263
  type: article-journal
  issued:
    year: 2012
    month: 3

and would like to use:

bibliography: bibliography.???

回答1:


Turns out I needed to copy the references into a .yaml file. AND to add

---
references:

at the start of the file and --- at the end of the file



来源:https://stackoverflow.com/questions/52889708/rmarkdown-yaml-references-to-bibliography

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!