【问题标题】:R Markdown Not Rendering CitationR Markdown 不呈现引用
【发布时间】:2014-10-30 03:40:06
【问题描述】:

我正在尝试使用 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]。

【问题讨论】:

    标签: r rstudio r-markdown bibtex


    【解决方案1】:

    经过一些测试,我会回答我自己的问题。不幸的是,RStudio/RMarkdown 不允许您使用数字引文标识符。我用 a778431 替换了 778431 并且上面的代码有效。听说尾注会产生数字标识符,所以为了尾注用户,我希望这个问题得到一些关注。

    【讨论】:

    • Zotero 将生成标准的 BibTeX 密钥,可以很好地与 markdown-pandoc 配合使用(并且可以导入您的 EndNote 库以实现平滑过渡)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-14
    • 2019-03-04
    • 2021-12-21
    • 1970-01-01
    相关资源
    最近更新 更多