emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 13e98e2 3/4: ox-latex.el: fix interpretatio


From: ELPA Syncer
Subject: [elpa] externals-release/org 13e98e2 3/4: ox-latex.el: fix interpretation of org-latex-pdf-process
Date: Sun, 24 Jan 2021 22:57:10 -0500 (EST)

branch: externals-release/org
commit 13e98e2a13aea7e965dd0a0003f3af7601cbfa8a
Author: Tara Lorenz <tara@terralonza.de>
Commit: Kyle Meyer <kyle@kyleam.com>

    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
---
 lisp/ox-latex.el | 8 ++++----
 1 file 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]