Tectonic
$ tectonic Community Low RiskTectonic is a modernized, XeTeX-derived typesetting engine written in Rust. Unlike traditional TeX Live workflows that require manual multi-pass runs for BibTeX and cross-references, tectonic -X compile automatically reruns passes until convergence and downloads only the required style packages on demand.
brew install tectonic Local LaTeX-to-PDF compilation is a file-system build task best invoked directly with tectonic -X compile rather than over MCP.
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
Single-command -X compile automatically handles multi-pass LaTeX/BibTeX resolution and exits non-zero on failure without interactive prompts, though diagnostic output is plain text rather than JSON.
- Automatic multi-pass convergence eliminates manual
pdflatex+bibtexloops - Plain-text diagnostics with no
--jsonoutput flag
Lacks pdflatex-style --shell-escape execution by default and supports --only-cached to block network access, though normal runs fetch bundle assets over HTTPS.
--only-cached(-C) enforces offline cache-only builds
Single Rust binary available via brew install tectonic, Cargo, and release archives, avoiding multi-gigabyte TeX Live installations.
- No multi-gigabyte TeX Live upfront download required
Drastically cuts agent build boilerplate for existing .tex codebases by automating package resolution and multi-pass compilation.
- Drop-in XeTeX-compatible compilation with automatic package fetching
Active community-maintained project (tectonic-typesetting/tectonic) under the MIT license.
- Open-source MIT repository on GitHub
Well-structured Tectonic book documenting V2 (-X) subcommands, caching, and CLI flags.
- Official Tectonic V2 book documentation
Security, Auth & Guardrails
None required; caches downloaded TeX Live bundle files locally on disk.
100% free and MIT open-source; only fetches public TeX bundle assets on first use.
# Tectonic Agent Rules - Always specify `--outdir <dir>` so generated PDFs and auxiliary files stay isolated. - Pass `--only-cached` (`-C`) in air-gapped sandboxes or CI checks after the cache is warmed.
Agent-Ready Command Recipes
Safe Read-Only Queries
tectonic -X compile main.tex --only-cached --outdir /tmp/tectonic-check
Validates and builds main.tex into a scratch --outdir with --only-cached so no network fetches or repo writes occur.
Controlled Writes & Previews
tectonic -X compile main.tex --outdir build
Auto-resolves references and writes the generated PDF into build without cluttering the source directory.
Strengths for Agents
- + Single-binary Rust TeX engine eliminates multi-gigabyte TeX Live setups and manual multi-pass reruns.
- +
--only-cachedenables deterministic offline builds once packages are cached. - +
--outdirkeeps generated PDFs separated from source files.
Caveats & Pitfalls
- ! First-time compilation of new packages requires network access unless
--only-cachedis already primed. - ! No
--jsondiagnostic output; build errors are emitted as plain text.