>>>> (unless (= 0 (call-process "kpsewhich" nil nil nil "preview.sty")) >>>> (display-warning >>>> '(org latex-preview preamble-precompilation) >>>> "The LaTeX package \"preview\" is required for precompilation, >>>> but could not be found") >>>> :warning) >>> >>> This seems out of scope of ox-latex.el >> >> Not sure how to propagate this error back to org-latex-preview. Please >> advise. > > That's a simple check whether preview.sty exists. Such a check can be > done in org-latex-preview itself before even trying to run latex. Is > there any problem doing it?
It can't be done before every LaTeX run, that will slow things down. How would you arrange to do it once? Karthik
