R Markdown不呈现引用 [英] R Markdown Not Rendering Citation

查看:212
本文介绍了R Markdown不呈现引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用RMarkdown的bibtex功能进行引用,但是我的引用没有被渲染。

I am trying to use the bibtex feature of RMarkdown for citations, but my citations are not being rendered.

我正在使用最新版本的R,RStudio,

I am using the latest versions of R, RStudio, and 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},
}

输出没有显示引文,而是显示:

Instead of rendering the citation, the output just says:

Blah blah @ 778431

Blah blah @778431

这是怎么回事?要查看格式建议,请参阅 http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html
我相信我的设置是正确的,但是如果我错过了一个小错误,我很乐意指出。

What's going on? To review format recommendations, see http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html I believe that my setup is all correct, but if there is a small mistake that I have missed, I'm happy to have it pointed out.

注意,我最初在文件中尝试了[@ 778431]。

Note, I originally tried [@778431] in my file.

推荐答案

经过测试,我将回答我自己的问题。不幸的是,RStudio / RMarkdown不允许您使用数字引用标识符。我用a778431替换了778431,以上代码起作用了。我听说Endnote会产生数字标识符,所以为了Endnote用户,我希望这个问题能引起注意。

After some testing, I will answer my own question. Unfortunately RStudio/RMarkdown does not allow you to use numerical citation identifiers. I replaced 778431 with a778431 and the code above worked. I have heard that Endnote produces numerical identifiers, so for the sake of endnote users, I hope the issue gets some attention.

这篇关于R Markdown不呈现引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆