Closed ssfrr closed 6 years ago
The fastest way is probably to either advise org-ref-format-entry, or just replace it with what you want. e.g.
#+BEGIN_SRC emacs-lisp
(defun org-ref-format-entry (key)
"Returns a formatted bibtex entry for KEY."
(let* ((bibtex-completion-bibliography (org-ref-find-bibliography))
(s (org-ref-format-bibtex-entry (ignore-errors (bibtex-completion-get-entry key)))))
(replace-regexp-in-string "{\\|}" "" s)))
#+END_SRC
I don't see any hooks that would make this easier to do.
That code snippet seems to be doing exactly what I want. thanks!
If I have a BibTeX entry like:
that was exported from Zotero, and I use the "Copy Formatted Citation to Clipboard" option on a citation, I get a string like:
(ignoring some of the other weird formatting things that are maybe due to me not having the right fields populated...) Is there any way to have org-ref strip off the
{{}}
braces?