I have some troubles of changing the citation style of bibliography in my thesis. According to r-markdown to specify the bib style (I need acm
from latex) I just need to do the following:
---
title: "title"
bibliography: biblioteka.bib
biblio-style: acm
output:
pdf_document
---
However, the biblio-style: acm
seems to have no influences on the citation style.
current citation:
random forest has been already applied in credit scoring [@author1]
...
@Article{author1,
Title = {some title},
Author = {Einstein},
Year = {1997}
}
desired output:
random forest has been already applied in credit scoring [1]
...
References
[1] Einstein, some title, 1997
Another possibility which works best for me is to add a Citation Style Language (CSL) file - in your case a acm.csl - and refer to it in the YAML header. Open your text editor and copy following XML-Code into it, save it into your working directory and rename it to "acm.csl".
After that refer in your YAML Header to this file:
In order to change the style, just find another citation style at the CSL-Website and proceed accordingly with a different *.csl.
For the sake of completeness, at the end of your thesis you need to add the bibliography: