I am relatively new to Emacs and org-mode
, and I would like the images displayed by org-latex-preview
to be svg
. I am trying to follow the instructions from this Stack Exchange question.
I have
(setq org-latex-create-formula-image-program 'dvisvgm)
in my configuration file, but the image I'm seeing is definitely not svg
and rather seems to be the same as what appears with that variable set to dvipng
instead.
Changing the variable to imagemagick
does visibly change the image, so I know that Emacs is reading this line of the config file. I can open and view a separate svg
image with Emacs, so I know that Emacs is able to view svg
files. Also, when I include #+OPTIONS: tex:dvisvgm
, the LaTeX is rendered as an svg
, so I know that Emacs can talk to dvisvgm
.
I am using:
- Doom with Emacs 26.3
- org-mode 9.4
- MacOS Catalina
org-preview-latex-default-process
. As for whether or not it works, you should check theltximg
subdirectory to see whether there is anorg-<mumble>.svg
file there andcat
the file to make sure that it is an SVG. It may just look very much like the corresponding PNG file, fooling you into thinking that it is not SVG.