zotxt-emacs icon indicating copy to clipboard operation
zotxt-emacs copied to clipboard

org-zotxt-insert-reference-link format

Open unlaered opened this issue 7 years ago • 2 comments

Is it possible to customize the format of strings inserted with org-zotxt-insert-reference-link? Or would it be possible for this function to call Zotero's Quick Copy mechanism from within Emacs? That way I can set my formatting preferences within Zotero, and Emacs would just do the yanking.

I see :citation and :chicago-note-bibliography in your code but I'm not sure what to make of it.

unlaered avatar May 19 '17 14:05 unlaered

That sounds like a great idea - much better than the current behavior. It should be easy enough.

In the meantime, you can set zotxt-default-bibliography-style by installing the style in zotero and using the name of the style. You can find this out by looking in your zotero directory (~/.zotero/zotero/*.default/zotero/styles) or as named here: https://github.com/citation-style-language/styles

egh avatar May 22 '17 06:05 egh

Thanks! I played around with zotxt-default-bibliography-style and found this helpful blog post. And I realize now that I was asking the wrong question, or at least an incomplete question. One thing I like about Quick Copy is that you can use it to export either citations (with CMD-Shift-a on Mac) or bibliography entries (with CMD-Shift-c). Now, I like that zotxt defaults to Chicago style, but org-zotxt-insert-reference-link formats its strings as bibliographic entries rather than as citation notes, and it would be nice if the user could specify which to use.

unlaered avatar May 22 '17 14:05 unlaered