From c5fe51c5a30f2fb2bb3bd426fd8a0dedb5278f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Wed, 23 Nov 2022 23:03:37 +0100 Subject: [PATCH] org.el: Compute exact bounds when converting LaTeX output to SVG * lisp/org.el (org-preview-latex-process-alist): Call `dvisvgm' with `-e' (`--exact-bbox') instead of `-b min' (`--bbox=min') to measure the exact bounds around visual glyphs, as opposed to using font metrics, to avoid clipping at the edges. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 26a8db353..3039c301c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3243,7 +3243,7 @@ All available processes and theirs documents can be found in :image-output-type "svg" :image-size-adjust (1.7 . 1.5) :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") - :image-converter ("dvisvgm %f -n -b min -c %S -o %O")) + :image-converter ("dvisvgm %f -n -e -c %S -o %O")) (imagemagick :programs ("latex" "convert") :description "pdf > png" -- 2.38.1