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 the automated script (installs the package and sets your PATH):

curl -sSL https://auxflow.upayan.dev/install.sh | bash

Or install manually with pipx:

pipx install auxflow
pipx ensurepath

Or with pip:

pip install --user auxflow

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

Show all commands and options:

auxflow help

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.2.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.2.0
File Size Uploaded Provenance
auxflow-0.2.0.tar.gz 7.4 MB With provenance Details

Built distribution (wheel)

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

Total release size: 7.4 MB

Release files / auxflow-0.2.0.tar.gz

Download URL auxflow-0.2.0.tar.gz
Size 7.4 MB
Tags Source
SHA-256 checksum
How to use checksums
d5655bd92c06bb2726b94ccc2d2a800a7213ea60ad7fcb2ee29f6d40608e3256
BLAKE2b-256 checksum
How to use checksums
255d03c03dcd9721bba9714d6616b05ac1d2aa545d24e1ae7f9d0334adbc6cf8
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.2.0-py3-none-any.whl

Download URL auxflow-0.2.0-py3-none-any.whl
Size 70.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20c4328ee79c57f9080d74adbe4e0dbcc7fde5e16240fed7a688c17203e26766
BLAKE2b-256 checksum
How to use checksums
9dcb7889c37ce7d0c824ac3b3cbe320598e4832eceae17fb4a38e69c56587fda
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.2.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.2.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