ParSub Documentation

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
- User Guide – installation, command line, Python API, REST API, the generated script and troubleshooting
- Docker image – run the REST API with Docker, no Python installation needed
- API Reference – modules, functions and data formats
- Development Guide – project layout, tests, CI and releases
- Validation report – the example paper checked equation by equation
- Changelog – what changed in each version
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
Links
- ParSub on PyPI –
pip install parsub - Docker image on GitHub Packages –
ghcr.io/psubrat29/parsub - Source code on GitHub
- Releases
- Example LaTeX files
- Issue tracker
- Contributing
- MIT License