-
Hi This is a simple question about workflow. I've integrated What I'm wondering: is there a way to do some of the citar actions from a bibtex file? I manage my bibfiles in Emacs, so it would be really handy if I were able to open, for example, attached files from the bibtex file itself. Is there any built-in way to do this? Or how do others deal with these use-cases? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
https://github.com/bdarcus/citar/wiki/Citar-in-bibtex-files-with-Embark
No, but conceptually it's pretty simple. There are two approaches. EmbarkHere you'd want an embark target finder for BibTeX keys, and then to associate a keymap with that type, with whatever commands you want available via Citar includes similar target finders for markdown, latex, and org citation keys. Are you comfortable trying to code that? If yes, this would be a good example to add to the wiki. Here's a start, adapted from here: (defun bibtex-key-at-point ()
(save-excursion
(bibtex-beginning-of-entry)
(when (looking-at bibtex-entry-maybe-empty-head)
(bibtex-key-in-head))))
(add-to-list 'embark-target-finders 'bibtex-key-at-point)
(add-to-list 'embark-keymap-alist '(bibtex-key . bibtex-map)) A dedicated commandThe other approach is a dedicated interactive command, like the one I linked to above. |
Beta Was this translation helpful? Give feedback.
https://github.com/bdarcus/citar/wiki/Citar-in-bibtex-files-with-Embark
No, but conceptually it's pretty simple.
There are two approaches.
Embark
Here you'd want an embark target finder for BibTeX keys, and then to associate a keymap with that type, with whatever commands you want available via
embark-act
.Citar includes similar target finders for markdown, latex, and org citation keys.
Are you comfortable trying to code that? If yes, this would be a good example to add to the wiki.
Here's a start, adapted from here: