tectonic-purifier full guide
Detailed setup, dependency management, build commands, and troubleshooting. Start with the overview for the initial commands; use the sections below for the complete setup and behavior. tectonic-purifier is classified at maturity tier 4 (see tier assessment for details).
Contents
- Setup and activation
- Version compatibility
- Development loop
- Using locked dependencies
- Language tooling integration
- Nix builds
- Project projections
- Supported scope
Setup and activation
Use the overview’s Quickstart for the initial command sequence. The setup details below apply to that workflow.
For a standalone document:
tectonic-purifier lock main.tex
tectonic main.tex
Locking runs the native build to discover its support files. Nix supplies those files and a prebuilt LaTeX format. Your TeX sources and build outputs stay in the working tree.
Commit tectonic-purifier.lock.json. Text edits use the same lock. After adding
packages or changing the document’s bundle, update it:
tectonic-purifier lock --update
The wrappers warn and use ordinary, impure Tectonic when there is no purifier lock. Invalid or stale locks fail. Install the integration through your normal Nix configuration if you want it beyond the temporary shell.
Version compatibility
| Tool or language | Packaged defaults | Tested versions |
|---|---|---|
| Tectonic | 0.17.0 | — |
Operating systems and architectures
| OS | CPU architecture | Packaged toolchain | Recorded workflow |
|---|---|---|---|
| Linux | ARM64 | Yes | Not recorded |
| Linux | x86-64 | Yes | Tested |
Development loop
tectonic main.tex --synctex
tectonic-purifier exec -- your-editor
tectonic-purifier prefetch
Using locked dependencies
--input path tracks additional selection files. Use --project and --lock
for an external companion; wrappers accept TECTONIC_PURIFIER_PROJECT and
TECTONIC_PURIFIER_LOCK. Prepared sessions retain their dependencies and SDK
closures for garbage collection.
Language tooling integration
Native PDF and SyncTeX output support the normal editor workflow. Private caches
and SDK profiles use XDG_CACHE_HOME. Support files and format data are readonly
Nix artifacts; missing support files require a lock update. User commands retain
their ordinary network access.
Nix builds
The overlay provides a named builder:
pkgs.tectonic-purifier.buildTectonicProject {
src = ./.;
}
It exposes evaluation-known packages, tests, release and fetches.
Project projections
This integration provides native release artifacts, rather than a typed cross-purifier project projection interface. The publication workflow below uses those native artifacts.
tectonic-purifier bundle
tectonic-purifier publish --tag v0.1.0
The reproducible archive contains the document’s native source tree. Ordinary Tectonic can consume it. Publication uploads the exact realized archive to an existing GitHub release.
Supported scope
The initial integration supports LaTeX, Tectonic 0.17 and public indexed-tar bundles. Fonts come from the locked bundle or explicit project font files; ambient system font collections need additional integration.
Target systems
- x86_64-linux
- aarch64-linux