Bibtex export error due to improper handing of "{" in abstract
When an abstract contains the symbol "{", zotero exports it to Bibtex file in verbatim. However, if the symbol "{" is not properly matched, this will lead to a Bibtex parsing error. For example:
@article{a_test_1800,
title = {test article},
volume = {1},
abstract = {{asfdaf{afaf}},
number = {1},
journal = {Journal of a},
author = {B A},
year = {1800},
pages = {1}
}
will cause a bibtex error as the curly brackets in the abstract fields are NOT matched.
This could happen if there is unmatched "{" or "}" in other fields too. Escaping it with "\{" and "\}" may be a solution.
@article{a_test_1800,
title = {test article},
volume = {1},
abstract = {{asfdaf{afaf}},
number = {1},
journal = {Journal of a},
author = {B A},
year = {1800},
pages = {1}
}
will cause a bibtex error as the curly brackets in the abstract fields are NOT matched.
This could happen if there is unmatched "{" or "}" in other fields too. Escaping it with "\{" and "\}" may be a solution.
Here's the relevant part of the .bib file I exported: https://gist.github.com/js54434/4dde579bbf29668f0a52 .
Here's the error I got when running bibtex on the paper: https://gist.github.com/js54434/23cf98ce2a5bc07d2d24
It's a bit odd though, because I'm seeing the same issue with the abstract field, and I would have expected someone to already have reported this if it was a widespread problem (braces have been backslash escaped for a long long time). Maybe the BibTeX parser that ships with TeX Live is at fault here after all. It would be good for someone to check on a different setup (and also with Biber).
I'll wait until I get a confirmation of this bug with another BibTeX compilation to release a fix.
For file field we'll strip it out anyway, because that will create fewer problems with compatibility.
We're now stripping out braces from the file path and file title.
For all other fields, we're using special escaping that doesn't break the BibTeX processor. See the TeX.SX link above for more details on that.