update packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
;;; org-ref-natbib-bbl-citeproc.el --- A bibtex + natbib BBL-based citeproc -*- lexical-binding: t; -*-
|
||||
;;
|
||||
;; Copyright (C) 2021 John Kitchin
|
||||
;; Copyright (C) 2021-2024 John Kitchin
|
||||
|
||||
;; Author: John Kitchin <jkitchin@andrew.cmu.edu>
|
||||
;; Keywords:
|
||||
@@ -101,7 +101,7 @@ cover any math (yet)."
|
||||
(setq p4 (point)
|
||||
p3 (- (point) 1))
|
||||
(setq ss (string-trim (buffer-substring p2 p3)))
|
||||
(setf (buffer-substring p1 p4) (format fmt ss))))
|
||||
(cl--set-buffer-substring p1 p4 (format fmt ss))))
|
||||
|
||||
;; {text} for protecting case. This is tricky to do reliably. I try to check
|
||||
;; if this is not part of a command, and skip it if so. This leaves
|
||||
@@ -414,8 +414,8 @@ Argument BACKEND is the export format."
|
||||
replacement)
|
||||
p2 (+ 1 (org-element-property :end link))))))
|
||||
|
||||
(setf (buffer-substring p1 p2)
|
||||
(concat replacement (make-string (org-element-property :post-blank link) ? )))))
|
||||
(cl--set-buffer-substring p1 p2
|
||||
(concat replacement (make-string (org-element-property :post-blank link) ? )))))
|
||||
|
||||
|
||||
(defun org-ref-bbl-replace-bibliography (bib-link bibdata NATBIB-OPTIONS backend)
|
||||
@@ -469,7 +469,7 @@ You need a LaTeX file and a bbl file for it. This hook generates
|
||||
those, then gets the data, replaces the citations and the
|
||||
bibliography.
|
||||
"
|
||||
(let* ((org-export-before-parsing-hook nil)
|
||||
(let* ((org-export-before-parsing-functions nil)
|
||||
(tex-file (org-latex-export-to-latex))
|
||||
(bbl-file (concat (file-name-sans-extension tex-file) ".bbl"))
|
||||
natbib-options bibdata org-ref-natmove
|
||||
|
||||
Reference in New Issue
Block a user