On 11/08/2025 18:04, Christian Moe wrote:
Ihor Radchenko writes:

org-compile-file demanded the compilation target to be newer than .tex
source, which is apparently too strong requirement.

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=499bd92e2

Looks like the new requirement too is too strong. Any latex error during
the process now causes export to apparently fail with the message:

   File "testfile.pdf" wasn't produced

This happens even if the error is non-critical and a PDF /is/ in fact
produced. So the error message can be misleading.

I agree. May it help if either modification time change *or* zero command exit code is considered as (at least partial) success?

I admit, I faced the issue in quite specific environment. I do not use LaTeX extensively, so minimal texlive is enough. Sometimes I am experimenting with Org LaTeX-related features. To prevent errors, I have empty files like ulem.sty, amsmath.sty, etc. Since the fix the following warning became a fatal error

l.10 \usepackage
                {amsmath}
The option `normalem' was not declared in package `ulem', perhaps you
misspelled its name. Try typing  <return>  to proceed.

On the one hand, this has the merit of alerting me to long-standing,
non-critical flaws in my setup and documents.

From my point of view, warnings should be warnings: neither hidden nor fatal.


Reply via email to