Help with citation key formula in Better BibTex

edited 11 days ago
I was wondering whether it's possible to format the citation key formula to be dependent on a condition, i.e. the number of authors.

What I want to achieve is that as long as there's only one author, the citation key should be: auth + authForeIni + year +shorttitle(3,3) BUT if there are more authors, then I want the formula to be: authEtAl + year + shorttitle(3,3).

  • creators(max=1).discard + auth + authForeIni + year +shorttitle(3,3);
    authEtAl + year + shorttitle(3,3)
  • Or

    (creators(max=1) ? auth + authForeIni : authEtAl) + year +shorttitle(3,3)
  • Thank you so very much, Emiliano! Both of your solutions work just as intended.
Sign In or Register to comment.