r - 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。谢谢!
解决方案
这对你有用吗?;)
---
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
推荐阅读
- debugging - C struct - lldb 表达式失败
- javascript - Jquery 元素宽度与检查模式元素宽度
- python-3.x - 创建/检索内部类python的多个实例
- ios - Swift 如何避免在子类中覆盖初始化?(编码器)
- angular - ngx-translate:无法读取未定义的属性“currentLang”
- python - 根据分组字段计算唯一值
- java - 当我移动时,onLocationChange 方法没有执行
- ajax - 在 symfony 3 项目中使用 jQuery/ajax 获取 selectBox 的选定值
- c# - .Net Core:如何从 URL 字符串中获取 RouteData?
- powerbi - 比较 Power BI 中的静态列和计算列