retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.43k stars 291 forks source link

pandoc-citeproc error when citation key includes "&" character #655

Closed samkimhis closed 7 years ago

samkimhis commented 7 years ago

Report ID: 8W66A3N2

I tried to export to BibTeX or BibLaTeX from Zotero library and use pandoc-citeproc. The problem was that one of my citation keys generated by Better BibTeX contained "&". When I removed "&" manually, the pandoc-citeproc error was gone. I think "&" should be rejected from the citation key to prevent this kind of error.

retorquere commented 7 years ago

The submitted report only says "Zotero: 4.0.28.8, Better BibTeX: 1.6.95"; can you leave the checkbox in the first tab of the error submission dialog enabled? It submits information which I need.

Is there a particular reason you're still on Zotero 4.0.28.8?

retorquere commented 7 years ago

Ah wait, the info I needed was in the references. You have your citekey format at the default [zotero], which has a lot of known problems. If you change it to pretty much anything else, or you post-filter it at least through [zotero:nopunct] or [zotero:alphanum], I think the problem will go away. But the [zotero] pattern is broken-by-design as it aims to replicate the standard Zotero citekey generation precisely.

samkimhis commented 7 years ago

Thanks! That solved the problem On Sat, Apr 8, 2017 at 06:57 retorquere notifications@github.com wrote:

Ah wait, the info I needed was in the references. You have your citekey format at the default [zotero], which has a lot of known problems https://github.com/retorquere/zotero-better-bibtex/wiki/Citation-Keys#configurable-citekey-generator. If you change it to pretty much anything else, or you post-filter it at least through [zotero:nopunct] or [zotero:alphanum], I think the problem will go away. But the [zotero] pattern is broken-by-design as it aims to replicate the standard Zotero citekey generation precisely.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/retorquere/zotero-better-bibtex/issues/655#issuecomment-292719772, or mute the thread https://github.com/notifications/unsubscribe-auth/ADRo2AQB8xGmOAuHJymWkFqHBtd5wTE7ks5rt5JXgaJpZM4M3jCT .

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.