How to get a bibliography in Spanish using R markdown


#1

Hello, I'm trying to write get the bibliography of my thesis, which must be in Spanish, to render successfully in rmarkdown when I knit it to a PDF.

I link to a .bib file in my YAML header and I have tried to to link to to CSL files that are supposedly APA in Spanish (I can't find an official header in the zotero apa page)

Anyway, in my document I use citations like @ciation1 which I think are pandoc styles.

I'm not sure if the best way would be to try to use pandoc and like to a CSL file. Or use a package like natbib or apacite in latex.

In the header of my YAML i have included:

  • \usepackage[utf8]{inputenc}
  • \usepackage[spanish]{babel}