bretauv
bretauv

Reputation: 8557

R Markdown: change the title of the "References" section?

I am writing a report with R Markdown in which I include references. The problem is that R markdown automatically includes references at the end of the report (without calling them with \printbibliography for example) and the section title is "References". I am writing in French so I would like the title to be "Références", but more generally is there any way to modify the title of that section?

Below is reproducible example:

---
title:
author:
date: 
abstract: 

output: 
  pdf_document:
    template: NULL
    number_sections: true
    citation_package: biblatex
bibliography: references.bib
biblio-style: bwl-FU
---

# Partie 1

\cite{greenwood_financial_1989}

# Partie 2

bla bla 

and here is the content of the references.bib file:

@article{greenwood_financial_1989,
  title = {Financial Development, Growth and the Distribution of Income},
  url = {https://www.nber.org/papers/w3189},
  number = {3189},
  journaltitle = {NBER Working Paper Series},
  date = {1989},
  author = {Greenwood, Jeremy and Jovanovic, Boyan}
}

Does anybody have a solution?

Upvotes: 3

Views: 1330

Answers (3)

Sle R.
Sle R.

Reputation: 119

In my document, I used :

header-includes:
  - \usepackage[french]{babel}

And your Contents section also changes.

Upvotes: 1

Brendan A.
Brendan A.

Reputation: 1268

Here's the solution that combines this answer on doing something similar with bibtex and this one on the TeX required to do it in biblatex, plus @Ralf's comment about adding lang: fr

---
title:
author:
date: 
abstract: 

output: 
  pdf_document:
    template: NULL
    number_sections: true
    citation_package: biblatex
bibliography: references.bib
biblio-style: bwl-FU

lang: fr
---

Upvotes: 2

Richard J. Acton
Richard J. Acton

Reputation: 915

I had a similar problem I wanted to place the bibliography above a supplemental section and placing <div id = "refs"></div> where you want the references successfully repositioned the section. I also had no problem renaming the section by simply changing the # title above that section. This did work for PDF output as well as HTML despite appearing to be an HTML only solution, though I was also using the markdown flavored ([@Smith2019]) references in the body of my document I don't know if using the LaTeX style will affect things.

Upvotes: 0

Related Questions