texe creates and builds LaTeX papers. It downloads the tools and packages each project needs, so you do not have to install TeX Live.
Install texe on macOS or Linux:
curl -LsSf https://github.com/backmatter/texe/releases/latest/download/install.sh | bashOn Windows, run this in PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://github.com/backmatter/texe/releases/latest/download/install.ps1 | iex"Other options, including the Debian package and offline installs, are in the install guide. Then run texe in the folder where you keep your papers:
texeAnswer the setup prompts and edit main.tex. The first build downloads what the
paper needs; later builds reuse it.
For a paper you already have, check it before adopting it. Your sources are preserved either way:
texe adopt /path/to/paper --check # report problems, change nothing
texe adopt /path/to/papertexe build
texe watch --view # rebuild on save, refresh a browser previewA failed build keeps the last successful PDF. For editing, PDF viewing, and rebuilds on save in VS Code, see the VS Code guide.
texe build --frozen # build using the existing lock
texe build --offline # build without downloads; requires cached dependencies
texe build --force # rebuild even when inputs are unchanged
texe doctor # check the project and tools
texe storage # show project and shared storage
texe clean --dry-run # preview removal of generated files
texe clean # remove generated project stateAdd --help to any command for its options, --quiet to suppress progress and
success output, or --verbose for detail.
Setup writes texe.toml. Commit it together with texe.lock to pin both the
configuration and the exact tools and packages. .texe/ holds generated files;
do not commit it.
The lock contains one exact pqty package closure, including archive and file
hashes, and a runtimes map keyed by target. Each entry records the verified
runtime fingerprint and binary artifact hashes for that target. A non-frozen
build on a new target adds its runtime without changing the package closure;
--frozen requires that target's identity to already be present. Package changes
invalidate other targets' runtime entries until they have been verified again.
Managed builds support pdfLaTeX, XeLaTeX, and LuaLaTeX. The recipe lists the available engines and artifacts for each supported target.
- Install — installing, upgrading, troubleshooting
- VS Code — adopting a paper, editing, preview, build on save
- Configuration — engines, input folders, bibliography, shell escape
- JSON output — scripting against texe
- Privacy — what texe downloads, what stays on your computer
Report bugs in the issue tracker and vulnerabilities through SECURITY.md. To work on texe itself, see CONTRIBUTING.md.
MIT.