Skip to main content

AuxFlow

A compiler and static analyzer for LaTeX documents.

PyPI Python Docs

AuxFlow checks LaTeX cross-references and citations before the typesetting engine runs. It builds a dependency graph of all labels and references, detects cyclic loops, and calculates the exact compile passes the document needs.

For complete technical specifications, compiler architecture, and evaluation reports, visit the Documentation Website.


Installation

Install with pipx (recommended for command-line tools):

pipx install auxflow
pipx ensurepath

Or install with pip:

pip install --user auxflow

The optional installer script installs the published package and may edit your shell profiles. Inspect it before running it. Do not pipe a network download into a shell.

AuxFlow requires Python 3.12 or newer.


Quick Start

Check a LaTeX document:

auxflow check document.tex

Find the number of required compilation passes:

auxflow classify document.tex

Build the document with automatic runtime checks:

auxflow run document.tex

auxflow run starts local TeX tools. Run only documents and packages you trust. It is not a sandbox. Each tool has a 600-second limit by default. Use auxflow run --timeout 30 document.tex to change that limit.

Check for a published update without installing it:

auxflow update --check

Run auxflow update to install a newer release into the current Python environment. Editable installations require a manual package-manager update. Normal commands can show a cached update notice on stderr. AuxFlow checks PyPI at most daily while a command runs, without waiting for the network. Short commands may finish before that check completes. No background service remains running. Set AUXFLOW_NO_UPDATE_CHECK=1 to disable automatic checks.

Show all commands and options:

auxflow help

Show installation environment and project links:

auxflow info

Check that TeX is installed and see how AuxFlow is set up:

auxflow doctor

auxflow check, auxflow classify, and auxflow plan accept --json for editors and CI. Locations print as file:line:column. Paths under the current directory print relative to it. auxflow --quiet COMMAND hides progress, next-step hints, and update notices. Results and errors still print, so scripts can rely on the output and the exit status.


How It Works

LaTeX documents write labels, tables of contents, and citations to helper files (.aux, .toc, .bbl). Standard build tools repeat the compile process until these files stop changing.

AuxFlow analyzes your source code directly:

  1. Scans and parses your LaTeX files into an Abstract Syntax Tree.
  2. Builds a dependency graph of all references, lists, and citations.
  3. Finds feedback cycles and calculates whether values affect document length.
  4. Assigns a convergence state:
    • CERTIFIED: Clean document with a fixed pass count.
    • BENIGN_CYCLIC: Safe cycles that settle without changing length.
    • AMPLIFYING: Loops that cause endless page expansion. Refused by default.
    • UNKNOWN: Unrecognized packages or commands. Uses safe default runs.
  5. Creates an optimized build plan that skips redundant runs and unnecessary tool calls.

Documentation

Full documentation is available at auxflow.upayan.dev:

  • Technical Reference: Architecture, Compiler Pipeline, Intermediate Representation, and Static Analysis.
  • Project Details: Formal Specifications, Research Questions, and Literature Review.
  • Evaluation & Benchmarks: 15-document Benchmark Corpus, Methodology, and Verification Reports.
  • Course Reviews: Review Notes, Presentations, and Downloadable Documents.

License

MIT License. See LICENSE.

Metadata

Release files for auxflow 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auxflow 0.4.0
File Size Uploaded Provenance
auxflow-0.4.0.tar.gz 7.4 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for auxflow 0.4.0
File Interpreter ABI Platform
auxflow-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 MB

Release files / auxflow-0.4.0.tar.gz

Download URL auxflow-0.4.0.tar.gz
Size 7.4 MB
Tags Source
SHA-256 checksum
How to use checksums
253bf5b1148efeb5766f92e81ef6170a57f554301b661211431e88b86a79e1e4
BLAKE2b-256 checksum
How to use checksums
7736daf52dd8f0eb4090d03c5f6b102da28cb6eef8b632081b691f0a9b47df03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / auxflow-0.4.0-py3-none-any.whl

Download URL auxflow-0.4.0-py3-none-any.whl
Size 79.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74e9aabccda453785975cf51c0abc3fd6737c4e5793a56c75a516ed632e9b9de
BLAKE2b-256 checksum
How to use checksums
25141a97077cd67a9a7f3dacbb04807f41b2252caceb07a6b8f8d1f5e79760b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for auxflow 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for auxflow-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page