summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTara Lorenz <tara@terralonza.de>2021-01-15 16:47:39 +0100
committerKyle Meyer <kyle@kyleam.com>2021-01-24 22:16:45 -0500
commit13e98e2a13aea7e965dd0a0003f3af7601cbfa8a (patch)
tree83d8b6afb4e7de0bd036aabc718266c74e3cc675
parentb99beaad18f9ec02f626a39ebb1f87b55975b4d5 (diff)
downloadorg-mode-13e98e2a13aea7e965dd0a0003f3af7601cbfa8a.tar.gz
ox-latex.el: fix interpretation of org-latex-pdf-process
* ox-latex.el (org-latex-export-to-pdf): The documentation for `org-latex-pdf-process' states that "%bib" will be expanded into the current binding of `org-latex-bibtex-compiler'. However, the `org-latex-export-to-pdf', where the expansion takes place, expects "%bibtex" instead. This fix will accept "%bib" as well as "%bibtex" as markers for `org-latex-bib-compiler'. This fixes a regression from f6187deca (ox-latex: Small refactor, 2015-09-13). TINYCHANGE
-rw-r--r--lisp/ox-latex.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 149492f..70c4307 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -3660,12 +3660,12 @@ produced."
(match-string 0)))
"pdflatex"))
(process (if (functionp org-latex-pdf-process) org-latex-pdf-process
- ;; Replace "%latex" and "%bibtex" with,
- ;; respectively, "%L" and "%B" so as to adhere to
- ;; `format-spec' specifications.
+ ;; Replace "%latex" with "%L" and "%bib" and
+ ;; "%bibtex" with "%B" to adhere to `format-spec'
+ ;; specifications.
(mapcar (lambda (command)
(replace-regexp-in-string
- "%\\(?:bib\\|la\\)tex\\>"
+ "%\\(?:\\(?:bib\\|la\\)tex\\|bib\\)\\>"
(lambda (m) (upcase (substring m 0 2)))
command))
org-latex-pdf-process)))