We are currently planning to migrate to a different platform for the forum. We will announce this fact both here and on Twitter, once we have settled on a solution.

Using BBT citation key in zotfile ?

reading the excellent discussion "Zotero as Zettelkasten?", I was wondering if it would be useful or possible to custom zotfile so that it uses BBT citation key to cite the reference, so that the reference could be automaticaly understood by Zettlr.
For example.
Zettlr manages references like [See @Harvey2005a, 45-51]
What if for extensions.zotfile.pdfExtraction.formatAnnotationNote Zotfile would create something like [auth:lower][shorttitle3_3][year] (extension.zotero.translators.better-bibtex.citekeyFormat) instead of "href="%(uir)" ?
The idea is when you copy/paste the notes from Zotero to Zettlr, there would already be the citation key and Zettlr would insert references to the bibliography.


  • Had the same thought today! I didn't find any way to enter the BBT-keys as placeholders in there, unfortunately

  • I've tried and failed but there's still hope:
    So I guess it's "only" a matter of finding the right use of the wildcards:
    I'll try again another day.

  • Someone find a way !
    I've tried and it works with Zettlr, the key is recognized and the reference appears in the left window.

    From the Zotero forum:

    today at 11:52am edited 4 hours ago
    Hey, this has bugged me for a while now. I have tried editing the pdfAnnotations.js stored in the folder zotfile/chrome/content/zotfile (of the zotfile@columbia.edu.xpi file in :\Users...\AppData\Roaming\Zotero\Zotero\Profiles...\extensions).
    Replacing '%a %y' in line 226 with '%b' didn't change anything.
    Edit 2: Okay I figured out why it had no effect, I had to reinstall the altered .xpi via the add ons menu instead of just editing the xpi. It seems to work now, although the code is not pretty:
    On line 226 I have:
    cite = this.getPref("pdfExtraction.NoteFullCite") ? this.Wildcards.replaceWildcard(item, "%b").replace(/(?!.*)/," and ").replace(/_/g,", ") : "p. ",
    An on line 258:
    var link = '[@' + cite + ', ' + page + ']',
    Which produces annotation output in the form of "[@blume2020, 3]".

Sign In or Register to comment.