diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index fb9fc3cd6..d3220d2bb 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -3639,7 +3639,7 @@ Return PDF file's name." (let ((outfile (org-export-output-file-name ".tex" subtreep))) (org-export-to-file 'latex outfile async subtreep visible-only body-only ext-plist - (lambda (file) (org-latex-compile file))))) + `(lambda (file) (org-latex-compile file))))) (defun org-latex-compile (texfile &optional snippet) "Compile a TeX file.