Compile LaTeX
Classify the master document before compiling:
| Profile | Signal | Route |
|---|---|---|
research |
Academic paper, working paper, policy brief, or research note | Shared research compiler |
beamer |
documentclass{beamer} or frames |
Shared compiler plus deck audit |
referee |
Referee-report source | Shared compiler plus referee lint and label checks |
generic |
Other LaTeX output | Shared compiler with generic profile |
An unclassified document cannot receive research certification.
Compilation
Run:
python3 ~/claude-core/scripts/compile-research-tex.py \
path/to/master.tex --profile research
Replace research with beamer, referee, or generic when that profile
applies. The referee profile also requires the manuscript text and either the
referee lexicon or corpus arguments reported by --help.
Do not call xelatex, pdflatex, lualatex, or latexmk directly for a
document. The shared compiler runs the profile-specific source checks, uses the
correct bibliography backend through latexmk, verifies the PDF, and writes
the QA receipt.
The research-LaTeX source linter runs for every profile. Table and figure rules
are universal, so labeling a reply or internal document generic does not
bypass regression-table validation.
Before reporting completion:
- Require a zero exit status.
- Read the receipt and confirm its status is
pass. - Report every warning.
- State whether the rendered pages were visually inspected. Rendering alone is not visual inspection.
- Never treat the existence of a PDF as proof of a successful build.