Skip to content
backmatterPublic

About

Create, build, and work on a LaTeX paper

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

texe

texe creates and builds LaTeX papers. It downloads the tools and packages each project needs, so you do not have to install TeX Live.

Get started

Install texe on macOS or Linux:

curl -LsSf https://github.com/backmatter/texe/releases/latest/download/install.sh | bash

On 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:

texe

Answer 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/paper

Build and preview

texe build
texe watch --view      # rebuild on save, refresh a browser preview

A failed build keeps the last successful PDF. For editing, PDF viewing, and rebuilds on save in VS Code, see the VS Code guide.

Everyday commands

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 state

Add --help to any command for its options, --quiet to suppress progress and success output, or --verbose for detail.

Project files

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.

Documentation

  • 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

Help

Report bugs in the issue tracker and vulnerabilities through SECURITY.md. To work on texe itself, see CONTRIBUTING.md.

License

MIT.

About

Create, build, and work on a LaTeX paper

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages