[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Add catch-up all LaTeX errors
From: |
Sebastien Vauban |
Subject: |
Re: [O] [PATCH] Add catch-up all LaTeX errors |
Date: |
Thu, 27 Mar 2014 11:17:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
Hello,
Nicolas Goaziou wrote:
> Sebastien Vauban writes:
>
>> FWIW, I'm using this in some export code I have:
>>
>> (let* ((orgfile (buffer-file-name))
>> (base-name (file-name-base orgfile))
>> (htmlfile (concat base-name ".html"))
>> (pdffile (concat base-name ".pdf")))
>> ...
>> (when (file-exists-p pdffile)
>> (if (file-newer-than-file-p orgfile pdffile)
>> (org-latex-export-to-pdf)
>> (message "PDF is up to date with Org file"))))
>>
>> That way, we know if the PDF file has been (re-)produced: it must be
>> newer than the Org file...
>
> True, but, unfortunately, `org-latex-compile' has no access to
> "orgfile".
Isn't `orgfile' equal to `org-babel-exp-reference-buffer' in
`org-latex-compile'?
> It is possible to rely on `file-attributes' and compare creation time of
> the pdf file before export (if any) and the one after the export.
Best regards,
Seb
--
Sebastien Vauban
- 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, 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 <=
- 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