簡體   English   中英

R Markdown不呈現引用

[英]R Markdown Not Rendering Citation

我正在嘗試使用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},
}

輸出沒有顯示引用,而是顯示:

布拉赫@ 778431

這是怎么回事? 要查看格式建議,請訪問http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html。我相信我的設置是正確的,但是如果我錯過了一個小錯誤,我很樂意指出。

注意,我最初在文件中嘗試過[@ 778431]。

經過測試,我將回答我自己的問題。 不幸的是,RStudio / RMarkdown不允許您使用數字引用標識符。 我用a778431替換了778431,以上代碼起作用了。 我聽說Endnote會產生數字標識符,所以為了Endnote用戶,我希望這個問題能引起注意。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM