From 7b297f61ee6dfb74e64c9b2a706982638a69e7f0 Mon Sep 17 00:00:00 2001 From: Michael Herstine Date: Thu, 21 Mar 2024 15:50:27 -0700 Subject: [PATCH] lisp/org.el (org-preview-latex-process-alist): Run latex multiple times * lisp/org.el (org-preview-latex-process-alist): Run latex three times by default It is sometimes necessary to run latex more than once against a given .tex file; something ably explained in the docstring for `org-latex-pdf-process', which exports LaTeX by running latex three times (by default). This patch brings `org-preview-latex-process-alist' into parity with that variable, running latex three times by default when previewing LaTeX. --- lisp/org.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index caddf22a1..73b6a1e0a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3300,7 +3300,9 @@ All available processes and theirs documents can be found in :image-input-type "dvi" :image-output-type "png" :image-size-adjust (1.0 . 1.0) - :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") + :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvipng -D %D -T tight -o %O %f") :transparent-image-converter ("dvipng -D %D -T tight -bg Transparent -o %O %f")) @@ -3311,7 +3313,9 @@ All available processes and theirs documents can be found in :image-input-type "dvi" :image-output-type "svg" :image-size-adjust (1.7 . 1.5) - :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") + :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O")) (imagemagick :programs ("latex" "convert") @@ -3320,7 +3324,9 @@ All available processes and theirs documents can be found in :image-input-type "pdf" :image-output-type "png" :image-size-adjust (1.0 . 1.0) - :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f") + :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f" + "pdflatex -interaction nonstopmode -output-directory %o %f" + "pdflatex -interaction nonstopmode -output-directory %o %f") :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))) "Definitions of external processes for LaTeX previewing. -- 2.44.0