I found there are hundreds of cases of duplicated citation keys in one of my bib file. It seems generated by Mendeley but I'd rather believe it was me who made such mistake (I didnt remember I ever copied another bib file into this one, though). Anyway, now my problem is how to assign different citation keys to the enties sharing the same key (they are different articles). Doing this manually would be a bit time-consuming though could be fun if I try to make it ;). Is there some way by which this job can be done in one stroke? or I need to compose a Python script for this task?
1 Answer
Found the solution. You need to install the BBT plug-in on Zotero first. Then, a. Import the bib file into Zotero. b. Select all. Right click and select Better Bib TeX – Pin Bib TeX key. The BBT will automatically regenerate ALL citation keys - the previous ones will all be discarded. c. Export to a new bib file. The regenerated keys are pretty long, for example, "accessDrivingSaferGreenera". But it is ok for me. At least I dont need to set the duplicated keys one by one...
-
Import, export and odd bibkeys. All of this is can be avoided with JabRef, and as I explaned above, Jabref can make all the keys at once, not one by one, and moverover, you can specify the desired pattern for the auto generation of the bibkeys. You should take a closer look to this program.– FranCommented Oct 22, 2020 at 8:34
-
Agree with @Fran this is the best bibliography management software that is free and plays well with Latex Lyx and family. The only caveat its java so some enterprise systems do not allow installation of this. It also has ability to search and add from Medline/Pubmed/DOI. Commented Nov 15, 2021 at 19:14
.bib
file.