[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Add catch-up all LaTeX errors
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Add catch-up all LaTeX errors |
Date: |
Wed, 26 Mar 2014 15:51:57 +0100 |
Hello,
"Francesco Pizzolante"
<fpz-djc/address@hidden> 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
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Francesco Pizzolante, 2014/03/26
- Re: [O] [PATCH] Add catch-up all LaTeX errors,
Nicolas Goaziou <=
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Francesco Pizzolante, 2014/03/26
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Nicolas Goaziou, 2014/03/26
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Sebastien Vauban, 2014/03/26
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Nicolas Goaziou, 2014/03/27
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Sebastien Vauban, 2014/03/27
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Nicolas Goaziou, 2014/03/28
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Sebastien Vauban, 2014/03/28
- Re: [O] [PATCH] Add catch-up all LaTeX errors, Francesco Pizzolante, 2014/03/27
Re: [O] [PATCH] Add catch-up all LaTeX errors, Charles Millar, 2014/03/26