How to move the bibliography in markdown/pandoc How to move the bibliography in markdown/pandoc r r

How to move the bibliography in markdown/pandoc


There is another solution:

<div id="refs"></div>

It lets you put the references wherever you want.


You can place your bibliography wherever you like by inserting

::: {#refs}:::

wherever you want the bibliography printed. From the "Placement of the bibliography" section of the pandoc markdown manual.

For example:

...main body# References::: {#refs}:::# Appendix


I just figured out that it works when you use a tex file, like --include-after-body=appendix.tex. I'm not an RMarkdown or Tex expert at all but I could imagine that it will only include the file after your main Rmd is already converted to a tex file using the default template.