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

    Latexmk-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 lock

    Does 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 fetch

    Fills the local cache with every locked file, verifying each against its digest. Run it once, then build offline.

  • volt lock --upgrade

    Moves 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

  1. Up to date? volt hashes every input the last build read, the engine and the arguments. If nothing changed it does zero passes. -g forces a rebuild.
  2. Run the engine. Each pass is volt tool pdftex, the same binary.
  3. Run the helpers it needs. BibTeX when the citations or \bibdata change, biber when a .bcf appears, makeindex for a .idx.
  4. 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
KeyDefaultNotes
schema1Required.
[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_escapefalseRefused 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-manifestvolt.toml changed since the lock.
lock/digest-mismatchA cached file is not the bytes the lock pins.
lock/not-cachedOffline and a locked file is missing; run volt fetch.
lock/missing-fileThe build opened a file not in the lock.
lock/update-requiredThe lock was made by a newer volt; update to the release it names.
lock/toolchain-unreadableThe lock's [toolchain] release is not volt-MAJOR.MINOR.PATCH; it cannot be ordered, so nothing is built.
lock/epoch-mismatchSOURCE_DATE_EPOCH differs from the locked one.
lock/shell-escape-refusedLocked builds never run shell commands.
lock/outdated-versionThe lock is an older format; run volt lock to re-record it.
snapshot/root-mismatchThe snapshot's signed root is not the one the lock pins.
snapshot/tamperedThe snapshot root does not match its signature.

For scripts and CI

Exit codes

0Built (or already up to date).
1A typed diagnostic: volt: <code>: <message>.
2Usage error, or volt.toml / volt.lock would not parse.
12The engine failed, or the document did not settle in 5 passes.

Linux x86-64 today; there is no installer or packaged release yet. Locking covers pdfTeX; XeTeX and LuaTeX are accepted in volt.toml but not yet lockable. Every build also writes a JSON trace of each tool it ran to build/<job>.zlatexmk-trace.json.