From 9f08a34c7eddfea394b9a1e78d54b3b26b139b51 Mon Sep 17 00:00:00 2001 From: Benjamin Motz Date: Sat, 29 Sep 2018 22:15:39 +0200 Subject: [PATCH 2/2] preview-latex: don't produce output file on error This will result in an error-message visible to the user. Otherwise, the user might just assume that everything went ok, even though there were issues when creating the output file. TINYCHANGE --- lisp/org.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index d2ff4e41c..0c7358eb0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3939,7 +3939,7 @@ 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 -halt-on-error -output-directory %o %f") :image-converter ("dvipng -fg %F -bg %B -D %D -T tight -o %O %f")) (dvisvgm :programs ("latex" "dvisvgm") @@ -3949,7 +3949,7 @@ 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 -halt-on-error -output-directory %o %f") :image-converter ("dvisvgm %f -n -b min -c %S -o %O")) (imagemagick :programs ("latex" "convert") @@ -3959,7 +3959,7 @@ 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 -halt-on-error -output-directory %o %f") :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))) "Definitions of external processes for LaTeX previewing. -- 2.18.0