Hello,
"Francesco Pizzolante" <fpz-djc/ipccudyqhejpep6iedvlejwur...@public.gmane.org> writes: >> The issue is the fact that, when exporting to PDF, in some cases, Org tells >> that the export has been done successfully while the PDF file has not been >> produced! >> >> As an example, if you open the target PDF file with Adobe Reader and, in the >> meantime, you export your Org file again to PDF, you'll see that Org will >> tell >> you it's OK (Process Completed) while, if you look at the *Org PDF LaTeX >> Output* buffer, you'll see an error such as: >> >> ! I can't write on file `toto.pdf'. >> [...] >> >> The problem comes from the fact that Org just checks for a couple of error >> messages (defined in org-latex-known-errors) and report it's OK if it doesn't >> find those messages: Errors are not related to your problem. Actually, "ox-latex.el" uses a rather weak check to know if process was successful or not: (if (not (file-exists-p pdffile)) (error (concat (format "PDF file %s wasn't produced" pdffile) (when errors (concat ": " errors)))) ... (message (concat "Process completed" (if (not errors) "." (concat " with errors: " errors))))) IOW, it cannot tell the difference between a successful export and an export failure with an already existing PDFFILE. This part needs to be improved. Regards, -- Nicolas Goaziou