Citation Keys Changed
Zotero installed an update for Microsoft Word, which I don't use. I'm exporting my library using Better Bib(La)Tex and compiling in TexMaker. After the update all of my citation keys changed. A message popped up about it (I think), but I was trying to get a thought down and closed the message quickly without reading it thoroughly. I'm kicking myself for this, but I can't figure out how to roll the citation keys back to their previous values.
Example:
Old key: author_firstwordoftitle_year
New key: authormostofthetitleyear (all smashed together)
I think I'm inching closer to a solution. Trying this: [auth:fold:lower]_[Title:nopunct:skipwords:select,1,1:lower]_[year]
based off of this page: https://github.com/retorquere/zotero-better-bibtex/issues/212
I'm still having issues when I compile but I feel like I'm closer than before. I'll report back- sorry for the excessive posts. I condensed the second into this one- mods feel free to delete the second one.
Thanks!
Example:
Old key: author_firstwordoftitle_year
New key: authormostofthetitleyear (all smashed together)
I think I'm inching closer to a solution. Trying this: [auth:fold:lower]_[Title:nopunct:skipwords:select,1,1:lower]_[year]
based off of this page: https://github.com/retorquere/zotero-better-bibtex/issues/212
I'm still having issues when I compile but I feel like I'm closer than before. I'll report back- sorry for the excessive posts. I condensed the second into this one- mods feel free to delete the second one.
Thanks!
Your citekey pattern is set to the default '[auth][shorttitle][year]'. Please make sure this is the pattern you want, or change it in the preferences -- references will have citekeys formatted by it. If you have references generated by the default Zotero BibTeX exporters, you will want to change it to '[zotero:clean]'
To roll your keys back, change the pattern in the BBT prefs, select all your references, right-click, and choose "refresh".
Cheers!
Old key: author_firstwordoftitle_year
New key: authormostofthetitleyear (all smashed together)
Is it not possible to provide a specification, in JabRef BibTeX key generator format (https://help.jabref.org/en/BibtexKeyPatterns), that would allow one to recreate the default export key format of earlier Zotero versions?
This thread is about a third-party plugin. It has nothing to do with the Zotero developers or the default BibTeX support in Zotero. As noted above, if you have a question about BBT, you should post to its GitHub Issues. If you have a question about Zotero's default BibTeX support, you should start a new thread.
If so, this is a Zotero issue, not an issue with BBT.
The problem with changing the default citation key format is that many people will have bibtex dependent manuscripts with the old default citation key format and when they go to update the manuscript, they will find that the citation keys in their manuscripts no longer correspond to the default export from Zotero after a Zotero update.
This leaves the problem of trying to reverse engineer what the default export format was for Zotero v4, in the style of the JabRef BibTeX key generator format.
To recreate v4, with BBT, how to get
@article{haraldsdottir_chrr_2017,
title = {{{CHRR}}: Coordinate Hit-and-Run with Rounding for Uniform Sampling of Constraint-Based Models},
volume = {33},
doi = {10.1093/bioinformatics/btx052},
shorttitle = {{{CHRR}}},
number = {11},
journaltitle = {Bioinformatics},
shortjournal = {Bioinformatics},
date = {2017-01-06},
pages = {1741-1743},
author = {Haraldsdóttir, Hulda S. and Cousins, Ben and Thiele, Ines and Fleming, Ronan M. T. and Vempala, Santosh}
}
to export instead as
@article{haraldsdottir_chrr:_2017,
title = {{{CHRR}}: Coordinate Hit-and-Run with Rounding for Uniform Sampling of Constraint-Based Models},
volume = {33},
doi = {10.1093/bioinformatics/btx052},
shorttitle = {{{CHRR}}},
number = {11},
journaltitle = {Bioinformatics},
shortjournal = {Bioinformatics},
date = {2017-01-06},
pages = {1741-1743},
author = {Haraldsdóttir, Hulda S. and Cousins, Ben and Thiele, Ines and Fleming, Ronan M. T. and Vempala, Santosh}
}
This seems close:
[auth:fold:lower]_[Title:skipwords:select,1,1:lower]_[year]
but returns the key haraldsdottir_chrr_2017, rather than haraldsdottir_chrr:_2017 as desired.
Again, this thread is about BBT export.
There's not currently a field to store a citation key in Zotero, so changes to the generation algorithm, which have been necessary a few times over the years to fix bugs, will unavoidably break links to existing documents. That's part of the reason people who use BibTeX-based workflows use BBT. A future version of Zotero will add a native citation key field, which will help with this aspect, but BBT is likely to remain useful, since BibTeX isn't Zotero's primary concern.
- Choose this option if you have documents that refer to keys generated by BBT; your citation keys will look like goffmanForms1981
- Choose this option if you have documents that refer to keys generated by Zotero without the help of BBT; your citation keys will look like goffman_forms_1981
- Choosing this option will select the BBT default format; your citation keys will look like goffmanForms1981
It is possible BBT did not pick up your existing keys (which it should have); for that you can open an issue at https://github.com/retorquere/zotero-better-bibtex/issues and then I can have a look.@ronan.mt.fleming
Anyhow, probably got one now.