forked from mirrors/org-mode
org-latex-preview: Fix LaTeX header on fails + reruns
* lisp/org-latex-preview.el (org-latex-preview--check-all-fragments-produced): When rerunning a preview run (because of catastrophic failures), pass the LaTeX header used to the new process. The current behavior passes an empty header, which causes the process to fail again.
This commit is contained in:
parent
f00f52c8e6
commit
d7303664e2
|
@ -1748,6 +1748,7 @@ fragments are regenerated."
|
|||
(org-latex-preview--create-image-async
|
||||
(plist-get extended-info :processor)
|
||||
(cdr fragments)
|
||||
:latex-preamble (plist-get extended-info :latex-header)
|
||||
:place-preview-p t)
|
||||
(setq fragments nil)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue