From e881f3a64b1b16fe3f32cd838d8cc88d79c0fd29 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Sun, 22 Dec 2024 13:14:07 +0100 Subject: [PATCH] org-html-format-latex: Store LaTeX images alongside the HTML output --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 716b7e9596..1ca7c81485 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -3063,7 +3063,7 @@ (defun org-html-format-latex (latex-frag processing-type info) (concat (file-name-as-directory org-preview-latex-image-directory) (file-name-sans-extension (file-name-nondirectory bfn))) - cache-dir (file-name-directory bfn)) + cache-dir (file-name-directory (plist-get info :output-file))) ;; Re-create LaTeX environment from original buffer in ;; temporary buffer so that dvipng/imagemagick can properly ;; turn the fragment into an image. -- 2.47.1