Bookdown:如何使脚注中的引用出现在章节参考文献中?

Jim*_*hen 5 r bookdown

我被要求澄清这个问题,希望这更清楚。

使用 bookdown 构建书籍时,脚注中的引用不会出现在特定章节的参考文献部分,但会出现在书籍末尾的全局参考文献中。下面的例子。

# Introduction {#intro}

Lorem ipsum.

You can write citations, too. For example, we are using the **bookdown** package [@R-bookdown] in this sample book, which was built on top of R Markdown and **knitr** [@xie2015].

This is a citation [@johndoe2020a].[^note1]

Citations in footnotes in line doesn't work either^[This is another footnote that contains a citation @bobjohnson2018]

The citations in the footnotes do not show up in the end of chapter references section (right below this line), but does show up in the end of book references.

[^note1]: This footnote contains a citation [@janesmith2019]
Run Code Online (Sandbox Code Playgroud)

johndoe2020a 引文将作为参考出现在本章末尾,但 janesmith2019 和 bobjohnson2018 不会。所有三个参考文献都将出现在本书的末尾。

有没有办法让某一章的脚注中的引用出现在该章的参考文献部分?

是存储库。