TeX Live
$ pdflatex Foundation Med RiskTeX Live is the canonical cross-platform TeX/LaTeX distribution shipping pdflatex, xelatex, lualatex, and bibtex. For headless agent execution, passing -interaction=nonstopmode and -halt-on-error is essential because pdflatex otherwise drops into an interactive ? prompt on syntax errors.
brew install texlive Local TeX Live compilation runs directly against project .tex trees; wrapping pdflatex in MCP adds unnecessary indirection.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Defaults to an interactive error prompt unless -interaction=nonstopmode is passed, produces verbose multi-page .log stdout with no JSON mode, and often requires multiple passes for references.
- Hangs at interactive
?prompt on errors without-interaction=nonstopmode - No JSON output; noisy plain-text compiler logs
Writes numerous auxiliary files (.aux, .log, .toc) alongside output by default, and --shell-escape permits arbitrary OS command execution from .tex macros.
--shell-escapeenables arbitrary shell execution inside TeX macros- Default execution pollutes the working directory unless
-output-directoryis set
Available across macOS, Linux, and Windows, but the full TeX Live distribution is multi-gigabyte and slow to install in ephemeral sandboxes.
- Full
texlivedistribution exceeds several gigabytes
Unmatched macro/package compatibility for legacy academic manuscripts, though slower and noisier for agents than tectonic or typst.
- Complete compatibility with CTAN packages and journal templates
Stewarded by the TeX Users Group (TUG) with annual coordinated releases.
- Official TeX Users Group distribution
Thorough man pages and TUG guides, though legacy flags span many decades of TeX conventions.
- Official documentation at tug.org/texlive/doc.html
Security, Auth & Guardrails
None required; operates on local .tex files and system TeX trees.
100% free and open-source (LPPL / GPL); full distribution requires ~5 GB disk space.
# TeX Live (pdflatex) Agent Rules - ALWAYS pass `-interaction=nonstopmode -halt-on-error` so syntax errors do not hang on an interactive `?` prompt. - NEVER pass `--shell-escape` on untrusted `.tex` files (allows arbitrary shell command execution). - Use `-output-directory=build` to isolate `.aux`, `.log`, and `.pdf` outputs.
Agent-Ready Command Recipes
Safe Read-Only Queries
pdflatex -interaction=nonstopmode -halt-on-error -draftmode -output-directory=/tmp/texcheck main.tex
Checks main.tex in -draftmode without generating the final PDF or hanging on an interactive error prompt.
Controlled Writes & Previews
pdflatex -interaction=nonstopmode -halt-on-error -output-directory=build main.tex
Emits the PDF and .aux/.log artifacts into build cleanly while failing fast on LaTeX errors.
Strengths for Agents
- + Complete CTAN package compatibility for complex academic papers and journal templates.
- + Supports
-draftmodeand-output-directoryto keep check runs isolated.
Caveats & Pitfalls
- ! Hangs indefinitely waiting for stdin on syntax errors unless
-interaction=nonstopmodeis explicitly passed. - ! Multi-gigabyte installation footprint and multi-pass compilation requirement make it heavy for ephemeral agent containers.
- ! Verbose plain-text logs waste context tokens compared to modern compilers.