Modify how Better BibTeX handles key clashes
I'm using Better BibTeX (BBT) with Overleaf integration, and everything works great, except for one minor detail: my citation key formula is 'auth.lower + shorttitle(3,3) + year', and sometimes key clashes occur. Now, BBT handles this by appending a postfix 'a' to one of the keys (preventing the clash), but I'd like it to be smarter (if that's even possible...).
The first reason a clash occurs could be that two papers (by the same author, same year) are distinct but have identical titles up to the first 3 words (e.g., 'Observer based self-triggered control of linear plants with unknown disturbances' and 'Observer based self-triggered control of an acyclic interconnection of linear plants'). In that case, would it be possible to tell BBT to use the citation key formula 'auth.lower + shorttitle(x,x) + year', where it keeps increasing x > 3 until a collision no longer occurs?
The second reason a clash can occur is that there exists a preprint and journal version of a reference (with identical titles, published in the same year). As the former will fail, would it then instead be possible to tell BBT to use would it be possible to tell BBT to use the citation key formula 'auth.lower + shorttitle(x,x) + year + type'?
I suspect very well that none of this is possible (without modifying the BBT source code), but if it is (or if there are any workarounds), I'd be very interested!
The first reason a clash occurs could be that two papers (by the same author, same year) are distinct but have identical titles up to the first 3 words (e.g., 'Observer based self-triggered control of linear plants with unknown disturbances' and 'Observer based self-triggered control of an acyclic interconnection of linear plants'). In that case, would it be possible to tell BBT to use the citation key formula 'auth.lower + shorttitle(x,x) + year', where it keeps increasing x > 3 until a collision no longer occurs?
The second reason a clash can occur is that there exists a preprint and journal version of a reference (with identical titles, published in the same year). As the former will fail, would it then instead be possible to tell BBT to use would it be possible to tell BBT to use the citation key formula 'auth.lower + shorttitle(x,x) + year + type'?
I suspect very well that none of this is possible (without modifying the BBT source code), but if it is (or if there are any workarounds), I'd be very interested!
-
adamsmith(You're likely to get a direct answer from the dev if you post this on BBT's github)