You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: run pdflatex to convergence for the English mirror PDFs (fixes missing ToC)
The English compendium-en.pdf had no table of contents. runPdfLatexCmd ran pdflatex
once; a ToC needs >=2 passes (pass 1 writes .toc, pass 2 typesets it, a 3rd may be
needed as inserting the ToC shifts \pageref page numbers). The Swedish tasks get away
with one pass because compendium/ and slides/ keep .aux/.toc across builds, but the
English mirror dirs are regenerated fresh every run, so the single pass wrote the .toc
and never read it.
Fix: runPdfLatexCmd gains maxPasses and loops until LaTeX stops asking to "Rerun"
(a tiny latexmk), capped — so it does the minimum passes to converge, not a guessed 2
or 3. Swedish tasks keep the default cap 1 (unchanged); the English tasks
(pdfCompendiumEn, pdfCompendium1/2En, pdfSlidesEn) pass cap 4. Verified on a
fresh-dir rebuild: the ToC now renders.
0 commit comments