Reputation: 71
I'm building an article (documentclass: article
) in Bookdown for output as PDF, and I'd like to include an appendix after the bibliography. Is there a way to insert the bibliography wherever you choose rather than it just showing up at the end of the rendered document?
I suspect the solution is similar to this, but I don't have a good understanding of how Pandoc and Bookdown are related. Sorry for the newb question.
Upvotes: 1
Views: 933
Reputation: 1494
I found an answer here:
https://stackoverflow.com/a/44294306/6242384
which cited this: https://groups.google.com/forum/#!searchin/pandoc-discuss/bibliography$20position|sort:relevance/pandoc-discuss/Q2Y0C2ZS4es/vNJAUWjoAwAJ
Basically, you add this line where you want the bibliography:
<div id="refs"></div>
I tried it and it worked for me.
Upvotes: 2