Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Org LaTeX preview is fuzzy on retina displays

I have been using Emacs 24.4 for all my math/scientific notes. org-latex-preview is fantastic for this! But recently, I upgraded to a macbook pro with retina display, and I now see that all my equations in org-mode are... fuzzy. Is there a setting I can change to up-res these?

Here is a screenshot:

enter image description here

Thanks!

like image 927
Adam Avatar asked May 10 '15 12:05

Adam


1 Answers

A couple of years back, I decided to fix this and wrote a patch to add dvisvgm as a render option for latex previews. While this worked great, I never submitted it (no time or knowledge on how to officially patch org).

Today, I was thrilled to discover that org-mode v9.0.6, now has this feature!

To activate, first check that you have dvisvgm on your system. Then update org-mode and add the following line to your init.el file:

(setq org-latex-create-formula-image-program 'dvisvgm)

And presto!

enter image description here

like image 93
Adam Avatar answered Sep 19 '22 18:09

Adam