aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-19 22:00:09 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-19 22:00:09 +0200
commitceed38372a66580ec584db10db79cf311c6da9ef (patch)
treee5b05a0ca7d80edc608018c525b3081a3abd4c10 /Makefile
parent8efd05c39ca6d1d15d5d5fbbb2ae21a143c6dfd7 (diff)
downloadcolitur-ceed38372a66580ec584db10db79cf311c6da9ef.tar.gz
colitur-ceed38372a66580ec584db10db79cf311c6da9ef.zip
docs(templates): document the ordo booklet's required two-pass build
A LaTeX table of contents needs two pdflatex passes -- the first pass leaves every entry showing '??', the second resolves the \pageref values. A user hit exactly this and reported it as a bug; the template was fine, the instructions were not. README's rendering example now runs pdflatex twice for ordo.tex (or names latexmk -pdf as the one-shot alternative) and notes the wall calendar needs only one pass, having no cross-references of its own. make check-templates now runs pdflatex twice per LaTeX template too, so the target exercises what a user actually has to do rather than silently passing on a single, incomplete pass.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 80a69fa..3f534c3 100644
--- a/Makefile
+++ b/Makefile
@@ -58,8 +58,10 @@ check-templates: build ## typeset every shipped template (needs pdflatex/groff;
if command -v pdflatex >/dev/null 2>&1; then \
for t in ordo grid; do \
opam exec -- dune exec colitur -- table --year 2027 --template templates/ef/$$t.tex > /tmp/$$t.tex && \
- (cd /tmp && pdflatex -halt-on-error -interaction=nonstopmode $$t.tex >/dev/null) && \
- echo "pdflatex: $$t.tex OK" || { echo "pdflatex: $$t.tex FAILED"; ok=0; }; \
+ (cd /tmp && pdflatex -halt-on-error -interaction=nonstopmode $$t.tex >/dev/null && \
+ pdflatex -halt-on-error -interaction=nonstopmode $$t.tex >/dev/null) && \
+ echo "pdflatex: $$t.tex OK (two passes, so a TOC's own \\pageref settles)" || \
+ { echo "pdflatex: $$t.tex FAILED"; ok=0; }; \
done; \
else echo "SKIPPED: pdflatex not installed -- LaTeX templates render but are NOT typeset"; fi; \
if command -v groff >/dev/null 2>&1; then \