BetterBibTex - multiple patterns

Hi everyone,
I have just started out using the above mentioned BetterBibTex plugin. Currently I am trying to configure my customized citekey:
The usual format should be [auth][year], which works just fine.
However, I want to add multiple patterns, in case an author is not given. On the website (http://zotplus.github.io/zotero-better-bibtex/citation-keys.html) it says:
"If you want to get fancy, you can set multiple patterns separated by a vertical bar, of which the first will be applied that yields a non-empty string. If all return a empty string, a random key will be generated."
So, I did:
[auth][year]|[title][year]
So that in every case an author is not given the citekey uses the title. However, when then applying this key to a source which has no author, the citekey only consits of the year.

Can anybody help me or has a different approach to the problem?

Thanks, James
  • BBT currently can't handle this. The first pattern generates a key (only the year), so that is picked. I'd recommend setting a fixed key for this reference, but feel free to open a discussion here: https://github.com/retorquere/zotero-better-bibtex/issues (I don't come here often enough to do reliable support here)

    (In all honesty, the alternates system was created in a "no reason, just because I can!" mood after a single key failed to resolve in my library, back when I still had oodles of time to build such frivolities.)
  • Ugh, I'm such a pushover. Try https://github.com/retorquere/zotero-better-bibtex/releases/download/builds/zotero-better-bibtex-1.6.39-circle-shortcut-2076.xpi, with pattern [auth][>0][year]|[title][year]

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.