chrisgrieser / alfred-bibtex-citation-picker

Picker for markdown-based citations and lightweight reference manager for BibTeX libraries.
MIT License
145 stars 8 forks source link

Quotation marks in bibtex field #13

Closed chenbinzero closed 2 years ago

chenbinzero commented 2 years ago

Hi Chris,

Thanks for the fantastic tool! I enjoy it a lot.

I am using it to supplement paperpile, which auto-exports a bibtex file. However, instead of using brackets to define fields:

title = {how to use bibtex citation picker}

it uses quotation marks:

title = "how to use bibtex citation picker"

This I believe confuses the citation picker and so the url cannot be opened and bibligraphy cannot be copied from citation picker.

I wonder if you can take a look and see if there is a way to solve the issue?

Thanks,

Bin

CleanShot_2022-07-27_at_14 57 43

chrisgrieser commented 2 years ago

Sorry for the late response. I look into it, and it looks like Paperpile uses a non-standard form of BibTeX format. While technically I could try to make it work, I am somewhat reluctant, since supporting all sorts of niche formatting would make the parser quite error-prone. And lowering the parsing quality for supporting a small subgroup of formatting cases feels like a bad trade-off.

I think the best solution to this is if you used some sort of BibTex formatter like this one and see if you can manage to get it to properly format your BibTeX file. Maybe you could also export the paperpile library in an intermediary format, and then convert it with another app to proper BibTeX?