Closed shiblon closed 8 years ago
Actually, it is even easier to just unroll the last iteration of the loop...
The whole world is going to compile once more but who cares, it's so much faster than
dvitops and pstopdf that it really doesn't matter....
my fix:
if [ x"$$run" = x"1" ]; then \
$(call remove-files,$@.1st.make); \
for i in 2 3 4 5; do \
$(if $(findstring 3.79,$(MAKE_VERSION)),\
$(call echo-build,$*.tex,$@,$$$$i),\
$(call echo-build,$*.tex,$@,$$i)\
); \
$(call run-latex,$*); \
$(call test-run-again,$*) || break; \
done; \
+ $(if $(findstring 3.79,$(MAKE_VERSION)),\
+ $(call echo-build,$*.tex,$@,$$$$i),\
+ $(call echo-build,$*.tex,$@,$$i)\
+ ); \
+ $(call run-latex,$*); \
else \
$(MV) $@.1st.make $@; \
fi; \
Reported by fdemesmay
on 2009-11-07 08:45:39
Oh, one probably needs to add the following line too :)
i="final";\
Reported by fdemesmay
on 2009-11-07 10:14:38
Interesting idea in general, but this patch concerns me a bit. It turns out that an
extra
invocation of LaTeX is only cheap in some circumstances. If building a beamer
presentation or a large dissertation, it's a huge pain in the neck.
I'll take a look and see if there is some way we can figure out that an extra run is
needed automatically.
Reported by shiblon
on 2009-11-07 19:36:09
Accepted
It's fixed upstream and issues a rerun warning now.
From Oberdiek: "In case of backref: To improve the situation I have updated to 1.29:
It adds a rerun warning in case of pdfTeX/LuaTeX based on the MD5 sum
and the file size."
I couldn't check the code yet since it's not public but I will test it against the
latex-makefile. Note that .brf files still need to be replaced though.
Reported by fdemesmay
on 2009-11-14 10:44:36
typo:
.brf files still need to be deleted though.
Reported by fdemesmay
on 2009-11-14 10:45:19
Awesome that you got it fixed upstream. The brf deletion is fixed in r631595c796da.
Also in version 2.1.36, available as a download.
Reported by shiblon
on 2009-11-15 05:01:37
Fixed
I confirm that it works with the new upstream code, including deletion of .brf files.
Just for reference, the new warnings look like this:
Package hyperref Warning: Rerun to get outlines right
(hyperref) or use package `bookmark'.
Package backref Warning: Rerun to get bibliographical references right.
Reported by fdemesmay
on 2009-11-15 09:51:48
OK - just to confirm, then. The makefile is properly detecting this new rerun warning
from the upstream fix, and running enough times now?
Reported by shiblon
on 2009-11-15 15:20:15
Yes it is.
Reported by fdemesmay
on 2009-11-15 16:09:28
Excellent - marking verified.
Reported by shiblon
on 2009-11-15 16:32:38
Verified
Originally reported on Google Code with ID 49
Reported by
fdemesmay
on 2009-11-07 08:22:51