Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RMarkdown References section -name change

I'm currently writing in R Studio an R Markdown document. Since I am not using English, I want to change the name of the # References header to "Referencias". My output is HTML. I went thru the pandoc documentation and tried reference-section-title: Referencias in my YALM header, with no luck.

like image 821
Nicolás Sacco Avatar asked Oct 23 '25 14:10

Nicolás Sacco


1 Answers

The easiest way is to set the metadata field reference-section-title in the YAML header:

---
reference-section-title: Referencias
---

Alternatively, you could write the section title directly into the document, then use a special fenced div with id #refs to place the bibliography anywhere you need it:

# Referencias

::: #refs
:::
like image 70
tarleb Avatar answered Oct 27 '25 02:10

tarleb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!