Now that we know how to write in Markdown, let’s add some references!
Adding reproducible references happens with BibTex keys. A typical BibTex key might look like as follows:
@article{nash51,
author = "Nash, John",
title = "Non-cooperative Games",
journal = "Annals of Mathematics",
year = 1951,
volume = "54",
number = "2",
pages = "286--295"
}
Two main components:
We will work with with bibliographies in the form of .bib
files (BibTeX Bibliographical Database). .bib
files are text files which contain a list of references in the form of BibTex keys.
@article{nash51,
author = "Nash, John",
title = "Non-cooperative Games",
journal = "Annals of Mathematics",
year = 1951,
volume = "54",
number = "2",
pages = "286--295"
}
@misc{RMarkdownWritingReproducible,
title = {{RMarkdown} for writing reproducible scientific papers},
url = {https://libscie.github.io/rmarkdown-workshop/handout.html},
urldate = {2023-04-18},
}
The typical workflow is as follows:
.bib
file through syncing with Zotero desktop and updating the .bib
file.@
+ reference identifier:
@nash51
OR @RMarkdownWritingReproducible
[@nash51]
OR [@nash51, @RMarkdownWritingReproducible]
You need to use a csl (citation style language) file to make sure references are properly formatted
I have included the apa.csl file in the Github folder
Add the csl
to your YAML and include the apa7.csl file
Render your document