首页 > 解决方案 > RMarkdown 内联引用不显示

问题描述

我想在我的 RMD 中创建一个内联参考列表,如https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html中所述。不幸的是,参考没有显示。我在rmd中的代码:

---
output: pdf_document
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
---

According to
https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html
I should have the example reference below

# References 

有人知道我能做些什么来让它显示出来吗?它以前确实有效,不知道这是否是在升级到 R4 之前。所有软件包都是最新的(刚刚进行了更新)。RStudio 版本 1.2.5042。谢谢!

标签: rreferenceyamlr-markdown

解决方案


这对你有用吗?;)

---
output: pdf_document
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
---

According to
https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html
I should have the example reference below

But only if we use the reference: [@fenner2012a]



# References 

推荐阅读