Closed micwij closed 7 months ago
So, the entries for software with BibTex are usually @Manual
, @Book
, or @Misc
. The supported choices are found here: BibTex Entry Types. The only kind of value "omitted" would be the reference key, e.g. \cite{MyEntryKeyForR2023}
. With this in mind, the citation()
function is R defaults to having all entries with @Manual
.
For example, if we call citation()
in R we get:
To cite R in publications use:
R Core Team (2023). _R: A Language and Environment for Statistical
Computing_. R Foundation for Statistical Computing, Vienna, Austria.
<https://www.R-project.org/>.
A BibTeX entry for LaTeX users is
@Manual{,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2023},
url = {https://www.R-project.org/},
}
Note that the entry type here is @Manual
, but there is no entry key being given.
Similarly, this is the case if we wanted to obtain a package citation, e.g.:
citation("bibtex")
To cite package ‘bibtex’ in publications use:
Francois R, Hernangómez D (2023). _bibtex: Bibtex
Parser_. R package version 0.5.1,
<https://CRAN.R-project.org/package=bibtex>.
A BibTeX entry for LaTeX users is
@Manual{,
title = {bibtex: Bibtex Parser},
author = {Romain Francois and Diego Hernangómez},
year = {2023},
note = {R package version 0.5.1},
url = {https://CRAN.R-project.org/package=bibtex},
}
So, using the write.bib()
function, we're just making multiple calls to obtain citation information for each R package and, then, writing the bib entries.
I hope that clarifies what's going on and why you are seeing the @Manual
key for zotero.
Closing the issue as we haven't heard back from the opener given the response.
Hi,
I noticed that when I import a .bib entry into Zotero it automatically classifies it as a book, rather than software. Not sure if this a Zotero issue. I guess that maybe there is no info on the reference type and Zotero assumes it is a book if this info is missing. So I am wondering whether this info could be added to the .bib entry when generating a citation with the bibtex package.
Thanks!