I am using RMarkdown to make a document with references from a .bib file as shown below. How can change the font size and line spacing of the references list printed at the end of the page

author: "Keniajin
bibliography: bibliography.bib
csl: vancouver.csl
documentclass: article
fontsize: 12pt
linestretch: 1.5
link-citations: yes
linkcolor: blue
    fig_caption: yes
      in_header: mystyle.sty
    keep_tex: yes
    latex_engine: xelatex

You simply can't with pandoc. However, there is a workaround. Just after the last title #References for example, you can add some tex directly and then render the file using the -s flag.

Here is a MWE (using pandoc instead of Rmd):

bibliography: ./source/library.bib

# Lorem Ipsum

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet [@chou2003interactivity], consectetur, adipisci velit..."

# References


All references will have smaller size with this.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.