A deck is not done when pdflatex exits 0. Beamer clips overflow silently, and a
single pass leaves a stale TOC and page counters. Follow every step, in order.
-
Pre-compile grep - catches a recurring Write-tool typo (> instead of }):
grep -nE "end\{(center|frame)>" FILE.tex
Success = no output (grep will exit 1 in that case - that is the GOOD
outcome, not a failed command). Any printed line is a typo to fix.
-
Compile twice, from inside the deck's own directory - decks load the
shared preamble with \input{../preamble}, which pdflatex resolves relative
to the CWD, so compiling from the repo root fails with "file not found":
cd path/to/deck_dir
pdflatex -interaction=nonstopmode -halt-on-error FILE.tex
pdflatex -interaction=nonstopmode -halt-on-error FILE.tex
-
Check the log, not the exit code:
grep -cE "^!" FILE.log
The printed count must be 0. (grep itself exits nonzero when the count
is 0 - that is the success case; judge by the printed number.)
Package pgfkeys Error: The key '/tikz/NAME' requires a value means a TikZ
style used a reserved name (step, grid, line, ...). Rename it with a
purpose prefix (lrtstep, cibox).
-
Visual overflow check - required for new frames or edited TikZ: run the
beamer-overflow-check skill. A clean log does NOT prove the layout fits.
-
Clean build junk (always before a commit):
./ma/Scripts/python.exe clean_latex.py PATH_TO_DIR_OR_TEX
-
Open for instructor review - PowerShell, one file at a time, ~0.5 s apart
(rapid cmd /c start loops drop windows):
Start-Process "msedge.exe" -ArgumentList '"C:\full\path\deck.pdf"'