Skip to content
Bruce D'Arcus edited this page Mar 13, 2023 · 6 revisions

Linking from Citar to Zotero

Better BibTeX has a feature to enable outside linking to an item in Zotero via "select links", which you can then use from the command line like:

xdg-open "zotero://select/items/@citekey"

Such a feature is easy to integrate with Citar.

(defun citar-link-type-zotero (citekey)
  "Return a Better BibTeX compatible zotero select link."
  (concat "zotero://select/items/@" citekey))

(defun my/open-in-zotero (citekey)
  "Open a reference item in Zotero."
  (interactive (list (citar-select-ref)))
  (let ((link (citar-link-type-zotero citekey)))
    (citar-file-open-external link)))
Clone this wiki locally