jlegewie / zotfile

Zotero plugin to manage your attachments: automatically rename, move, and attach PDFs (or other files) to Zotero items, sync PDFs from your Zotero library to your (mobile) PDF reader (e.g. an iPad, Android tablet, etc.), and extract PDF annotations.
4.06k stars 282 forks source link

Feature request : possibility to choose to use the way reference are inserted in the extracted annotations #495

Open FilexD opened 4 years ago

FilexD commented 4 years ago

Add a "variable" so to choose the way to insert the reference at the end of the extracted quoted annotations from pdf, so to to use the Better Bibtex keys instead of the citelink name year? A way to do this has been recently posted on Zotero forum:

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' d to reinstall the altered .xpi via the add ons menu instead of just editing the xpi. I On line 226: 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]".

https://forums.zotero.org/discussion/86304/zotfile-features

annargrs commented 3 years ago

+1, this citation format option would be very useful for bibtex users. This [@bibtexkey] format is also directly supported by Zettlr and (via a plugin) by Obsidian.