-
Notifications
You must be signed in to change notification settings - Fork 24
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
Allow leading "@" symbol in the bib keys (pandoc-style) #80
Comments
Since
|
Sorry I did not make myself clear. I want to be able to do this bib <- RefManageR::BibEntry(bibtype = "Misc", title = "Hello World!",
author = "John Wick", year = 2012,
key = "wick2012HelloWorld")
bib[["@wick2012HelloWorld"]]
#> Warning message:
#> In `[[.BibEntry`(bib, "@wick2012HelloWorld") : subscript out of bounds
RefManageR::Citep(bib, "@wick2012HelloWorld")
#> [1] ""
RefManageR::Citet(bib, "@wick2012HelloWorld")
#> [1] "" You would say that I am misspecifying the key and you will be correct. But I need my key to look like that ( What I am asking is, could Your objection might be, "well, what if user has specified bibentry key with leading @ ?" Fair enough but I wonder how would pandoc specification look like for those entries One more idea then. How about we make |
I was looking for a similar functionality and started this discussion. At the end I came out with the use of I'm working in an own package to interact with bibtex libraries and implemented this search in the function Of course, the function and the package are experiments for the moment and will be happy to get any comments. |
That's what |
I'm sorry for intruding in this discussion, but I don't really see a necessity of including the @ symbol in the names of bib-items since you can easily use Here an example comparing the usage of biblio (I just wrote a method for character values). library(biblio)
library(RefManageR)
library(rbbt)
Bib <- ReadBib(file=file.path(path.package("biblio"), "LuebertPliscoff.bib"))
match_keys(x=names(Bib), rmd_file=file.path(path.package("biblio"), "document.Rmd")) If you just need the list of the bibtexkeys: unique(match_keys(x=names(Bib), rmd_file=file.path(path.package("biblio"), "document.Rmd"))$bibtexkey) Of course, the bbt_detect_citations(path=file.path(path.package("biblio"), "document.Rmd")) |
The big difference is that The workflow between In You could argue that TL;DR: All I am asking, could we please harmonize the UX of |
I am using
rbbt
add-in to paste keys from Zotero and they get pasted together with@
symbol in front. These symbols are also used byrbbt::bbt_detect_citations()
to extract citation keys from text, which I use to automatically create.bib
file.I would like to be able to pass they keys with
@
symbol intoRefManageR::Cite()
(and by extension intoCitet()
andCitep()
). This requires modifyingRefManageR::SearchBib()
with something like:P.S. I am aware of the Zotero workflow offered by {RefManageR}, but I still prefer interactivity of
rbbt
and the fact that I do not have to export references by hand.The text was updated successfully, but these errors were encountered: