The command line
One binary. Engine, bibliography, index and build, with a lock file.
volt is a single native executable. The pdfTeX engine, BibTeX and makeindex are compiled into it, so there is no TeX installation to manage. A volt.toml says what you want; a volt.lock records exactly what you got, so the same PDF comes out next year, on another machine, offline.
$ volt init main.tex # writes volt.toml $ volt lock # records every file the build reads $ volt build --locked # rebuilds exactly that, anywhere $ volt fetch && volt build --locked --offline
What is in the binary
Commands
Build
The everyday commands. A bare `volt main.tex` is a build.
volt build [-pdf] [-g] [-c | -C] ROOT.texLatexmk-compatible driver. Reruns the engine until the document settles, running bibtex, biber and makeindex between passes when they are needed. Skips the build entirely when nothing changed.
volt build --locked [--offline]Builds exactly what volt.lock pins: every TeX file checked by digest, the timestamp fixed, shell escape refused. With --offline it never touches the network.
Project
Set up, pin, refresh and ship a document.
volt init [--release=<v>] [root.tex]Writes a minimal volt.toml. Never overwrites an existing one.
volt lockDoes a recording build and writes volt.lock: every TeX Live file the document actually opened, with its digest. Fetches only what a pass opens, not the whole ~4 GB distribution.
volt fetchFills the local cache with every locked file, verifying each against its digest. Run it once, then build offline.
volt lock --upgradeMoves to the newest toolchain and TeX Live snapshot, prints what changed, and re-locks.
volt export --runtime <r>Writes a self-contained build directory (cache + signed snapshot root) that rebuilds the document with no network and fixed timestamps.
Tools inside the binary
Usually run by the build for you, but callable directly.
volt tool pdftex <pdftex args…>The pdfTeX engine, in-process. The build runs volt itself once per pass, so there is no separate engine to install or drift.
volt tool bibtex <aux>BibTeX 0.99d, ported to Zig and checked byte-for-byte against stock TeX Live on 1,100+ cases.
volt tool makeindex <idx>makeindex 2.17, ported to Zig and checked byte-for-byte against stock TeX Live on 250+ cases.
volt build
How a build runs
- Up to date? volt hashes every input the last build read, the engine and the arguments. If nothing changed it does zero passes.
-gforces a rebuild. - Run the engine. Each pass is
volt tool pdftex, the same binary. - Run the helpers it needs. BibTeX when the citations or
\bibdatachange, biber when a.bcfappears, makeindex for a.idx. - Repeat until settled. Another pass if the aux files changed or the log asks for one, up to 5.
Clean with -c (intermediates) or -C (also the PDF). Only <jobname>.* outputs are removed, never your .tex, .bib or .bst. Without a volt.toml, volt picks the one top-level .tex with a \documentclass.
What you want
volt.toml
The project file you edit. volt init writes the minimum (schema, release and inputs); everything else has a default. Unknown keys are an error, except under [x].
schema = 1 [doc] source_dir = "." out_dir = "build" [environment] distribution = "texlive" release = "2026" [toolchain] channel = "stable" [output] root = "main.tex" engine = "pdftex" bibliography = "bibtex" index = "makeindex" shell_escape = false
| Key | Default | Notes |
|---|---|---|
schema | 1 | Required. |
[output] inputs | "main.tex" | Required. The root document. |
[output] engine | "pdftex" | Also xetex, luatex. Locking is pdfTeX-only today. |
[output] bibliography | "none" | "bibtex" runs volt bibtex between passes. |
[output] index | "none" | "makeindex" runs volt makeindex between passes. |
[output] shell_escape | false | Refused by locked builds. |
[output] sync | ["synctex"] | Source ↔ PDF mapping. |
[doc] source_dir / out_dir | "." / "build" | Must not overlap. |
[environment] release | "2026" | TeX Live release to resolve against. |
What you got
volt.lock
Written by volt lock, never by hand and never by a plain build. Commit it next to your .tex. It is deterministic TOML, sorted, so diffs are readable.
version = 3
source_date_epoch = 1790000000
[snapshot]
id = "texlive-2026-01"
root_digest = "sha256:cccc…"
[toolchain]
release = "volt-0.4.2"
bundles = { "browser" = "sha256:eeee…" }
[output]
root = "main.tex"
engine = "pdftex"
bibliography = "bibtex"
reproducible = true
[[file]]
path = "texmf-dist/tex/latex/amsmath/amsmath.sty"
digest = "sha256:aaaa…"
package = "amsmath"Every file the build read
One [[file]] per TeX Live file a pass actually opened, with its sha256 and package. Not the distribution, the document's slice of it.
The TeX Live snapshot
Which snapshot those files came from, by id and the digest of its signed root.
The toolchain
The volt release, and the digest of the browser bundle.
The clock
source_date_epoch, so dates in the PDF are the same on every machine.
Your settings
The output block is re-derived from volt.toml on every locked build; any drift is reported, not silently rebuilt.
When the lock and the world disagree
A locked build refuses rather than guesses. Each refusal is a stable code.
lock/stale-manifest | volt.toml changed since the lock. |
|---|---|
lock/digest-mismatch | A cached file is not the bytes the lock pins. |
lock/not-cached | Offline and a locked file is missing; run volt fetch. |
lock/missing-file | The build opened a file not in the lock. |
lock/update-required | The lock was made by a newer volt; update to the release it names. |
lock/toolchain-unreadable | The lock's [toolchain] release is not volt-MAJOR.MINOR.PATCH; it cannot be ordered, so nothing is built. |
lock/epoch-mismatch | SOURCE_DATE_EPOCH differs from the locked one. |
lock/shell-escape-refused | Locked builds never run shell commands. |
lock/outdated-version | The lock is an older format; run volt lock to re-record it. |
snapshot/root-mismatch | The snapshot's signed root is not the one the lock pins. |
snapshot/tampered | The snapshot root does not match its signature. |
For scripts and CI
Exit codes
0 | Built (or already up to date). |
|---|---|
1 | A typed diagnostic: volt: <code>: <message>. |
2 | Usage error, or volt.toml / volt.lock would not parse. |
12 | The engine failed, or the document did not settle in 5 passes. |