Files

TeX Live API

Lightweight LaTeX compilation API.

Setup

# Install dependencies
pip install flask

# Install LaTeX
# macOS
brew install texlive

# Ubuntu
sudo apt install texlive-xelatex

# Run
python texlive_api.py

Usage

# Compile
curl -X POST http://localhost:8080/compile \
  -H "Content-Type: application/json" \
  -d '{"tex": "\\documentclass{article}\\n\\begin{document}\\nHello\\n\\end{document}"}'

Docker

docker-compose up -d