ob-latex: Stop ignoring headers argument

lisp/ob-latex.el: During default "png" export, the "headers" argument
is no longer explicitly ignored.
This commit is contained in:
Yuri D. Lensky 2020-05-06 12:50:11 -07:00 committed by Nicolas Goaziou
parent 6e50b22ff0
commit 3bbaca1660
1 changed files with 5 additions and 2 deletions

View File

@ -108,8 +108,11 @@ This function is called by `org-babel-execute-src-block'."
(append (cdr (assq :packages params)) org-latex-packages-alist)))
(cond
((and (string-suffix-p ".png" out-file) (not imagemagick))
(org-create-formula-image
body out-file org-format-latex-options in-buffer))
(let ((org-format-latex-header
(concat org-format-latex-header "\n"
(mapconcat #'identity headers "\n"))))
(org-create-formula-image
body out-file org-format-latex-options in-buffer)))
((string-suffix-p ".tikz" out-file)
(when (file-exists-p out-file) (delete-file out-file))
(with-temp-file out-file