EDIT: The issue was something completely different. The Better BibTex plugin for Zotero changes the way citation keys are generated. This can be changed in Preferences -> Better BibTex -> Open Better BibTex preferences -> Citation keys -> typing "[zotero]" for the "Citation key formula". Then, you must go to the entries in your Zotero library -> right click -> Better BibTex -> Refresh BibTex Key. Do this for each entry. Then export the collection/library as .bib file for use with .tex file.
When or how the citation keys started being generated differently, I have no clue, and never will.
Orignal post:
I am writing a paper using Overleaf and using Zotero to manage the references. I export the collection from Zotero as refs.bib in 'Better BibLaTex' format and use the following code in the preamble of the .tex document:
\usepackage[style=numeric,sorting=none]{biblatex}
\addbibresource{refs.bib}
and I am using \cite{} in the text to create citations. The paper was compiling fine until I re-exported the collection from Zotero and re-uploaded it to Overleaf. Now, instead of rendering in the text as "[1]", a citation will render as "[<first author>•<first word of title>•<year>]".
This has happened before, and my memory is that there was some bad character somewhere in the .bib file (coming from Zotero). When I delete all of the references except for 1 for a MWE, then everything compiles fine.
I cannot find which reference in the .bib file it is that is causing the issue, and am wondering if there is any guidance for sanitizing the .bib file to correct this issue, or anything else. Is it possible to upload my .bib file for others to look at?
refs.bibfile. However, I have already tried deleting those specific references (and their in-text citation), and this error persists. Hence, I believe there is something wrong with the .bib file generated by Zotero, possibly some uninterpreted character in one of my old references. I remember figuring this issue out last time it happened, but am totally flummoxed this time... – Steven Basmith Nov 30 '23 at 05:26refs.bibfile. God what a mess. So basically I am now using all completely incorrect identifiers for my citations. – Steven Basmith Nov 30 '23 at 05:41log-file). Replacing the old keys by the new (or the new in thebib-file by the old from the document) should be a (diligent but) routine piece of work. For the future, I recommend to compare new an oldbib-file before replacing the original one or simply use a new name for the new file and only change the\addbibresourcecommand (or add a new one). – cabohah Nov 30 '23 at 07:39