emacs-orgmode
[Top][All Lists]
Advanced

[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: Thu, 27 Mar 2014 11:02:13 +0100


Hello,

Sebastien Vauban <sva-news-D0wtAvR13HarG/address@hidden>
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".

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.


Regards,

-- 
Nicolas Goaziou




reply via email to

[Prev in Thread] Current Thread [Next in Thread]