From 51306561160397ca63826ebe8ef5d6843fbcd860 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 14 May 2024 02:06:00 -0700 Subject: [PATCH] Fix org latex preview --- init.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 633c2aa..848b2ae 100644 --- a/init.el +++ b/init.el @@ -1182,7 +1182,15 @@ If no name is given, list all bookmarks instead." org-log-into-drawer t org-log-done 'time org-log-redeadline 'time - org-log-reschedule 'time)) + org-log-reschedule 'time + org-preview-latex-default-process 'dvisvgm + org-preview-latex-process-alist + '((dvisvgm + :image-input-type "dvi" + :image-output-type "svg" + :image-size-adjust (1.7 . 1.5) + :latex-compiler ("pdflatex -interaction nonstopmode -output-format=dvi -output-directory=%o %f") + :image-converter ("dvisvgm %o%b.dvi --no-fonts --exact-bbox --scale=%S --output=%O"))))) (use-package evil-org :after org :hook (org-mode . evil-org-mode)