2014-10-30 122 views
0

我正在尝试使用RMarkdown的bibtex功能进行引用,但我的引文未呈现。R Markdown Not Rendering Citation

我正在使用最新版本的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 

我的中文提供文件 “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]。

回答

1

经过一番测试,我会回答我自己的问题。不幸的是RStudio/RMarkdown不允许你使用数字引用标识符。我用a778431替换了778431,上面的代码工作。我听说Endnote生成数字标识符,所以为了endnote用户,我希望这个问题得到一些关注。

+0

[Zotero](https://www.zotero.org/)将生成与markdown-pandoc配合使用的标准BibTeX密钥(并可导入EndNote库以实现平滑过渡) – Ben 2014-10-30 07:46:17