0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 01:02:51 +00:00

org.el: Compute bounds exactly 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.

Link: https://orgmode.org/list/m2v8n4w00w.fsf@me.com
This commit is contained in:
Rudolf Adamkovič 2022-11-23 23:03:37 +01:00 committed by Ihor Radchenko
parent 670f68bea2
commit 52ebf6b45e
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -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"