When using the visual editor in RStudio to insert a citation for a conference proceedings paper from Zotero, the resulting biblatex entry that is added to the .bib file is different depending on whether I insert the citation using (1) inline completion versus (2) adding it via the "Insert > Citation ..." menu item. There seems to be a bug in the former that isn't there in the latter, so the resulting bib entry doesn't contain all the necessary information.
(Additionally, unfortunately the bug seems to exist for both insertion methods when using the visual editor in VSCode)
Steps to reproduce
In Zotero, say you have a citation that is type "Conference Paper", with the following data (importantly, it has a "conference name" as well as the title):
Title: A probabilistic Earley parser as a psycholinguistic model
Item Type: Conference Paper
Author: John T. Hale
Date: 2001
Proceedings Title: Second meeting of the North American chapter of the Association for Computational Linguistics
Conference Name: NAACL
... etc more information
Then, in RStudio, using the visual editor, there are two ways to add this reference to a document in a quarto project, while automatically importing it to a local references.bib file.
type inline like @hal... and select auto completed citation, then use the "Citation from Zotero" dialogue box to insert the citation into a local bib file (default name 'references.bib'), or
use the Insert > Citation ... menu item to insert citation from My Sources > Zotero, and select this citation item, and click "Insert" to add to references.bib.
Expected behavior
The expected behaviour would be for a new citation to be added to the references.bib file, corresponding to this citation, with all the relevant fields populated (and in particular the correct information in the title field and booktitle field).
Actual behavior
method 1 doesn't work correctly
When using method 1 (inserting a citation by typing "@" and using autocompleted citation), the citation item added to references.bib has a title field populated with the conference name (incorrectly), and no booktitle is added.
selecting citation by autocomplete
resulting add citation dialogue box
resulting entry in .bib file
The main problem with this ^ bib entry is that it doesn't have the correct info in the title field (it used the "conference name" info from Zotero to populate the title field).
method 2 does work correctly
When using method 2 (inserting a citation via menu), the citation item added to references.bib has a title and booktitle fields populated correctly.
use menu to insert citation
resulting Insert Citation dialogue box
resulting entry in .bib file
This ^ bib entry is better. Most importantly it has the correct title, and booktitle fields.
In VSCode
When I do the same thing in VSCode's version of the visual editor, I get the same bib entry as method 1 above (the bad behaviour), whether I insert using method 1 or 2.
Your environment
RStudio Version 2023.12.1+402 (2023.12.1+402)
macOS Sonoma Version 14.3.1
VSCode Version: 1.88.0-insider
Quarto check output
quarto check output
❯ quarto check
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
Path: /Users/myusername/Documents/GitHub/quarto-cli/package/dist/bin
[✓] Checking tools....................OK
TinyTeX: v2024.03
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/j/Library/TinyTeX/bin/universal-darwin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.12
Path: /Users/myusername/.pyenv/versions/3.10.12/bin/python3
Jupyter: 5.7.1
Kernels: julia-1.10, python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Bug description
When using the visual editor in RStudio to insert a citation for a conference proceedings paper from Zotero, the resulting biblatex entry that is added to the .bib file is different depending on whether I insert the citation using (1) inline completion versus (2) adding it via the "Insert > Citation ..." menu item. There seems to be a bug in the former that isn't there in the latter, so the resulting bib entry doesn't contain all the necessary information.
(Additionally, unfortunately the bug seems to exist for both insertion methods when using the visual editor in VSCode)
Steps to reproduce
In Zotero, say you have a citation that is type "Conference Paper", with the following data (importantly, it has a "conference name" as well as the title):
Then, in RStudio, using the visual editor, there are two ways to add this reference to a document in a quarto project, while automatically importing it to a local references.bib file.
@hal...
and select auto completed citation, then use the "Citation from Zotero" dialogue box to insert the citation into a local bib file (default name 'references.bib'), orExpected behavior
The expected behaviour would be for a new citation to be added to the references.bib file, corresponding to this citation, with all the relevant fields populated (and in particular the correct information in the title field and booktitle field).
Actual behavior
method 1 doesn't work correctly
When using method 1 (inserting a citation by typing "@" and using autocompleted citation), the citation item added to references.bib has a title field populated with the conference name (incorrectly), and no booktitle is added.
selecting citation by autocomplete![Screenshot 2024-03-23 at 12 40 41](https://github.com/quarto-dev/quarto-cli/assets/5202957/b1481cb7-0451-40c5-91bd-bc807b9eb75c)
resulting add citation dialogue box![Screenshot 2024-03-23 at 12 41 03](https://github.com/quarto-dev/quarto-cli/assets/5202957/0b7321e7-17d7-411d-b654-d1df00051146)
resulting entry in .bib file![Screenshot 2024-03-23 at 12 41 50](https://github.com/quarto-dev/quarto-cli/assets/5202957/e862d6e2-d151-4e20-b273-9acf5e68e216)
The main problem with this ^ bib entry is that it doesn't have the correct info in the title field (it used the "conference name" info from Zotero to populate the title field).
method 2 does work correctly
When using method 2 (inserting a citation via menu), the citation item added to references.bib has a title and booktitle fields populated correctly.
use menu to insert citation![Screenshot 2024-03-23 at 12 42 21](https://github.com/quarto-dev/quarto-cli/assets/5202957/9dc61e8b-b0dc-4acf-b8a9-da67ebc009d4)
resulting Insert Citation dialogue box![Screenshot 2024-03-23 at 12 43 07](https://github.com/quarto-dev/quarto-cli/assets/5202957/b66730b5-6211-42d1-bfed-2928483c74c3)
resulting entry in .bib file![Screenshot 2024-03-23 at 13 26 32](https://github.com/quarto-dev/quarto-cli/assets/5202957/f41c47e6-34c9-4334-8915-bbd0a3c63d7b)
This ^ bib entry is better. Most importantly it has the correct title, and booktitle fields.
In VSCode
When I do the same thing in VSCode's version of the visual editor, I get the same bib entry as method 1 above (the bad behaviour), whether I insert using method 1 or 2.
Your environment
Quarto check output
quarto check output