Skip to the content.

ParSub Documentation

ParSub Logo

ParSub reads the mathematics in a LaTeX document, works out what can be computed from it, and writes a ready-to-run Python script that evaluates, plots, solves, optimizes, integrates, differentiates or numerically verifies every formula it understands.

paper.tex ──parse──► expressions ──analyze──► tasks ──generate──► generated_computation.py ──run──► plots/ + data/

Guides

Quick start

pip install parsub

parsub demo --run                                  # built-in projectile-motion demo
parsub analyze paper.tex -o results --run

# or the REST API in Docker (http://localhost:8000/)
docker run -d -p 8000:8000 -v parsub-data:/data ghcr.io/psubrat29/parsub:latest