【问题标题】:Cannot cite using bibtex in blogdown?不能在 blogdown 中引用使用 bibtex?
【发布时间】:2018-05-17 19:58:22
【问题描述】:

我的问题类似于How to cite using bibtex in blogdown?

但是我使用了 Rmd 文件来引用但仍然无法正常工作。我不知道哪里出了问题,我应该在 Rmd 文件中添加什么。

我希望在文本中引用 Casella 的 Statistical Inference 书并生成参考。

例如

  1. 我从谷歌学者创建了 si.bib 文件并将其放入 /content/post 文件夹。

  2. 我创建了一个名为“引用某事”的 Rmd 文件并包含这样的代码

    ---
    title:  cite something
    author: ''
    date: '2018-05-17'
    slug: cite-something
    categories: []
    tags: []
    bibliography: [si.bib]
    link-citations: true
    ---
    @si
    # Reference
    

我希望创造这样的东西

但只能得到

我的 github 仓库在这里:https://github.com/hc704/hc704.com

我的 netlify 网站在这里:hc704.netlify.com

提前感谢您的帮助。

【问题讨论】:

    标签: r blogdown citations bibliography


    【解决方案1】:

    请注意,您使用的是@si,这似乎是错误的。 si 是包含您所有引用的文件的名称,它不是 Casella 引用的键。

    Your current bib file 是:

    @book{casella2002statistical,
      title={Statistical inference},
      author={Casella, George and Berger, Roger L},
      volume={2},
      year={2002},
      publisher={Duxbury Pacific Grove, CA}
    }
    

    然后您应该将其引用为@casella2002statistical 而不是@si(这是文件的名称)。

    【讨论】:

    • 得到它!非常感谢一辉!
    • 非常感谢 Guilherme 的回答!
    猜你喜欢
    • 2018-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-15
    相关资源
    最近更新 更多