Skip to content

Commit

Permalink
oc-basic: Parse @string entries in BiBTeX bibliographies
Browse files Browse the repository at this point in the history
* lisp/oc-basic.el (org-cite-basic--parse-bibtex): Expand string
abbreviations in the .bib bibliography files.

Fixes https://list.orgmode.org/orgmode/25288.4658.491916.790389@gargle.gargle.HOWL/
  • Loading branch information
yantar92 committed Jul 17, 2022
1 parent 0583a0c commit c550a42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lisp/oc-basic.el
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ Return a hash table with citation references as keys and fields alist as values.
(cons
(intern (downcase field))
(replace-regexp-in-string "[ \t\n]+" " " value)))))
(bibtex-parse-entry t))
;; Parse, substituting the @string replacements.
;; See Emacs bug#56475 discussion.
(let ((bibtex-string-files `(,(buffer-file-name)))
(bibtex-expand-strings t))
(bibtex-parse-entry t)))
entries)))
entries))

Expand Down

0 comments on commit c550a42

Please sign in to comment.