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
Adding Citations to Existing Citation Blocks Fails #8337
Comments
|
This looks like it may not be working properly for me, but I'm not exactly sure of the expected behavior. I tested on the latest daily 1.4.1073. When I attempt to insert a citation within a citation, the dialog pops up and does not automatically populate my existing citation, as if to extend it and make it a multi-citation. Then when I insert, it generates a citation tag like so:
However, an actual multi-citation is different:
Also, I notice I don't see a citation preview for the multi-citation at all. Is that a separate bug or intended behavior? |
|
This is great feedback, thank you.
I'm going to take a look at the change to support deal with the second item above. I do expect that previews of citations in the multiple citation should work properly. Are you able to consistently reproduce that issue as that would be unexpected... |
|
@dragonstyle The multi-citation never seems to show the preview like a regular citation. Seems to reproduce 100% of the time for me on macOS. |
|
@kfeinauer Ok great, would you mind sharing a sample doc + bibliography for me (email or slack or whatev)? (I'm not seeing it in my simple cases but I'm probably everything the way I always do and just missing another way to do things). |
|
Will send everything via Slack |
|
(Note to self) - the citation preview issue was caused by an empty entry in the bibliography When we use pandoc to convert this to CSL, it is expecting minimally a comma following the id, like: Our internal Bibtex generator isn't writing that comma which causes parsing of the whole bibliography to fail (and hence the preview to fail). This is worse than the failing preview however, as it results in a failure to knit properly since the bibliography can't be parsed by pandoc. |
|
Both issues should be fixed. Thx @kfeinauer! |
|
This is looking great now! Verified on 1.4.1078. |
See:
https://community.rstudio.com/t/mechanism-to-check-for-duplicate-citations-while-adding-citations-in-the-preview-releases/87335/4
System details
Steps to reproduce the problem
Insert a citation using the form [@foo].
Place the cursor at the end of the citation and insert one or more additional citations.
Describe the problem in detail
Brackets are nested as a citation has been inserted into another citation. The brackets or @ may be escaped.
Describe the behavior you expected
Ideally, we would simply modify the existing citation by adding the additional entries.
The text was updated successfully, but these errors were encountered: