Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing bibtex to Zotero classifies citation as "Book" #53

Closed
micwij opened this issue Nov 21, 2023 · 2 comments
Closed

Importing bibtex to Zotero classifies citation as "Book" #53

micwij opened this issue Nov 21, 2023 · 2 comments

Comments

@micwij
Copy link

micwij commented Nov 21, 2023

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!

@coatless
Copy link
Collaborator

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.

@coatless
Copy link
Collaborator

Closing the issue as we haven't heard back from the opener given the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants