I was asked to clarify the question, hopefully this is clearer.
When building a book using bookdown, citations in footnotes do not appear in the references section for a specific chapter, but do appear in the global references at the end of the book. Example below.
# 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]
The johndoe2020a citation will appear as a reference at the end of the chapter, but janesmith2019 and bobjohnson2018 will not. All three references will appear at the end of the book.
Is there a way to get citations within the footnotes of a chapter to appear in the references section for that chapter?
Here is the repository.