我正在尝试使用RMarkdown的bibtex功能进行引用,但我的引用没有被呈现。
我使用的是R,RStudio和RMarkdown的最新版本。
我的rmd文件如下所示:
---
title: "Music Recommender Systems"
output:
html_document:
theme: united
toc: yes
pdf_document:
toc: yes
word_document: default
bibliography: bibliography.bib
---
Blah blah @778431
我的bibtex文件" bibliography.bib"保存在.rmd文件旁边,如下所示:
@inproceedings{778431,
author = {Lesaffre, Micheline and Leman, Marc and Martens, Jean-Pierre},
booktitle = {Dagstuhl Seminar Proceedings},
editor = {Crawford, T. and Veltkamp, R.C.},
issn = {1862-4405},
language = {eng},
location = {Dagstuhl, Germany},
pages = {1--11},
publisher = {Internationales Begegnungs- und Forschungszentrum fur Informatik (IBFI), Schloss},
title = {A user-oriented approach to music information retrieval},
url = {http://drops.dagstuhl.de/vollt...},
year = {2006},
}
输出只是说:
而不是渲染引文Blah blah @ 778431
发生了什么?要查看格式建议,请参阅http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html 我相信我的设置是正确的,但如果我错过了一个小错误,我很高兴能指出它。
注意,我最初在我的档案中试过[@ 778431]。
答案 0 :(得分:3)
经过一些测试,我会回答我自己的问题。不幸的是,RStudio / RMarkdown不允许您使用数字引用标识符。我用a778431替换了778431并且上面的代码工作了。我听说Endnote会产生数字标识符,所以为了给尾注用户起见,我希望这个问题得到一些关注。