Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

TeX Live

$ pdflatex Foundation Med Risk
TeX Users Group · Design & Docs · LPPL-1.3c / GPL-2.0-or-later · macos / linux / windows

TeX 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.

FCRS-1.0 Score
64 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install texlive
CLI vs MCP Decision CLI Only

Local TeX Live compilation runs directly against project .tex trees; wrapping pdflatex in MCP adds unnecessary indirection.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 12 / 25

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
Trust & Safety 16 / 25

Writes numerous auxiliary files (.aux, .log, .toc) alongside output by default, and --shell-escape permits arbitrary OS command execution from .tex macros.

  • --shell-escape enables arbitrary shell execution inside TeX macros
  • Default execution pollutes the working directory unless -output-directory is set
Setup & Portability 9 / 15

Available across macOS, Linux, and Windows, but the full TeX Live distribution is multi-gigabyte and slow to install in ephemeral sandboxes.

  • Full texlive distribution exceeds several gigabytes
Utility & Efficiency 11 / 15

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
Maintenance & Lineage 9 / 10

Stewarded by the TeX Users Group (TUG) with annual coordinated releases.

  • Official TeX Users Group distribution
Docs & Verifiability 7 / 10

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

Auth Modes
No Auth
Credential Storage

None required; operates on local .tex files and system TeX trees.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and open-source (LPPL / GPL); full distribution requires ~5 GB disk space.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run a non-interactive syntax check to a temp directory
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

Compile PDF into a separate build directory
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 -draftmode and -output-directory to keep check runs isolated.

Caveats & Pitfalls

  • ! Hangs indefinitely waiting for stdin on syntax errors unless -interaction=nonstopmode is 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI