5 Bibliographies
5.1 File format
The best way to insert citations in your text is with an auxiliary file. The .bib (BibLaTeX) and .bibtex (BibTeX) formats are the most commonly used. Other formats can be viewed in the references.
The input format in .bib or .bibtex files occurs as shown in the examples below.
- Article
@article{Xarticle,
author = "",
title = "",
journal = "",
volume = "",
number = "",
pages = "",
year = "XXXX",
month = "",
note = "", }
@article{correa_2009,
title = {Comparison of three diagrammatic keys for the quantification of late blight in tomato leaves},
volume = {58},
copyright = {© 2009 The Authors. Journal compilation © 2009 BSPP},
issn = {1365-3059},
url = {http://onlinelibrary.wiley.com/doi/10.1111/j.1365-3059.2009.02140.x/abstract},
doi = {10.1111/j.1365-3059.2009.02140.x},
language = {en},
number = {6},
urldate = {2015-08-27},
journal = {Plant Pathology},
author = {Corrêa, F. M. and Bueno Filho, J. S. S. and Carmo, M. G. F.},
year = {2009},
keywords = {Phytophthora infestans, Solanum lycopersicum, disease assessment, disease severity},
pages = {1128--1133}, }
- Book
@book{Xbook,
author = "",
title = "",
publisher = "",
?_volume = "",
?_number = "",
?_series = "",
?_address = "",
?_edition = "",
year = "XXXX",
?_month = "",
?_note = "", }
@book{grolemund_r_nodate,
title = {R Markdown: The Definitive Guide},
shorttitle = {R {Markdown}},
url = {https://bookdown.org/yihui/rmarkdown/},
urldate = {2021-02-17},
author = {Grolemund, J. J. Allaire, Garrett, Yihui Xie}, }
Other types of references can be included, such as: booklet, conference, proceedings, manual, mastersthesis, phdthesis and, technical report.
See references for more details.
5.2 Citations and references
In order for the document to be rendered correctly, it is necessary to include the following line in your YAML header.
---
bibliography: references.bib
---
5.2.1 Citations
Citations must be enclosed in square brackets must be accompanied by @ followed by the name of the reference.
See (Corrêa, Bueno Filho, and Carmo 2009)
[@correa_2009] See
For multiples references, names must be separated by comma.
See (Corrêa, Bueno Filho, and Carmo 2009; Grolemund n.d.)
[@correa_2009; @grolemund_r_nodate] See
By default, references are inserted at the end of the text.