4 ms·
How does it handle building from LaTeX sources where you need to "rebuild" the document multiple times to get page numbers and references right?
by vq 10y ago
How does it handle building from LaTeX sources where you need to "rebuild" the document multiple times to get page numbers and references right?
- perlgeek 10y agoIIRC at least miktex came with a script that runs latex as often as needed until cross-references are resolved and the output is stable. Instead of plugging latex directly into a Makefile or tup, use such a wrapper. It seems that latexmk could be such a script: http://mirror.unl.edu/ctan/support/latexmk/README http://mirror.unl.edu/ctan/support/latexmk/README
- shoover 10y agoI don't see how that could work in tup or any deterministic build system. If there is any possible way to parameterize explicit filenames unique to the stages, that will map better to tup. It requires you to be explicit about every file generated, even temp files. I've searched the mailing list for a few scenarios and the response is often to wrap tup in a makefile.