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:
Karthik Chikmagalur 2023-10-21 15:33:07 -07:00 committed by TEC
parent 3fc5787831
commit 65bb5ed444
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 0 deletions

View File

@ -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)))))