summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-05-10 14:54:36 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-05-10 14:54:36 +0200
commit7801e92369905895aa9494d7d9ea49d2c08d086d (patch)
tree303360b971815ea0e58c3d6ce3921305d21f45c7
parent20f0299bc3e4518205dece3f8b8fa90c2a30086d (diff)
parent3bbaca166052c4761a1bc8227496b23dc157bf96 (diff)
downloadorg-mode-7801e92369905895aa9494d7d9ea49d2c08d086d.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ob-latex.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el
index 2376b98..4b343dd 100644
--- a/lisp/ob-latex.el
+++ b/lisp/ob-latex.el
@@ -109,8 +109,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