[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org df1814b83e: org-html-format-latex: Preserve buffer-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org df1814b83e: org-html-format-latex: Preserve buffer-local settings |
Date: |
Wed, 20 Jul 2022 03:57:45 -0400 (EDT) |
branch: externals/org
commit df1814b83e73f727aa9fee086ad7acf29cbebe9b
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-html-format-latex: Preserve buffer-local settings
* lisp/ox-html.el (org-html-format-latex): Carry over buffer-local
variables when create LaTeX images. Use `org-export-with-buffer-copy'
instead of `with-temp-buffer'.
Fixes https://orgmode.org/list/m2fsqr75md.fsf@ego.team
---
lisp/ox-html.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 1a239bb013..787478df94 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2873,11 +2873,12 @@ INFO is a plist containing export properties."
;; temporary buffer so that dvipng/imagemagick can properly
;; turn the fragment into an image.
(setq latex-frag (concat latex-header latex-frag))))
- (with-temp-buffer
- (insert latex-frag)
- (org-format-latex cache-relpath nil nil cache-dir nil
- "Creating LaTeX Image..." nil processing-type)
- (buffer-string))))
+ (org-export-with-buffer-copy
+ (erase-buffer)
+ (insert latex-frag)
+ (org-format-latex cache-relpath nil nil cache-dir nil
+ "Creating LaTeX Image..." nil processing-type)
+ (buffer-string))))
(defun org-html--wrap-latex-environment (contents _ &optional caption label)
"Wrap CONTENTS string within appropriate environment for equations.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org df1814b83e: org-html-format-latex: Preserve buffer-local settings,
ELPA Syncer <=