Guide baseline: v0.14.0
LaTeX and MathML
Scan LaTeX source, convert supported equations to MathML, and review bounded source remediation.
Source remains the primary output
The processor detects inline and display mathematics and common equation environments, converts supported expressions to MathML, can draft an equation description for review, and checks metadata, language, figures, tables, equation cross-reference labels, links, lists and colour-only cues. A drafted description stays a review draft and is never stored as an ARIA label; the conversion result's aria_label field is deprecated and always empty. For equations, source remediation adds only \label{} cross-reference labels, and mathematical meaning stays manual. Remediation writes .tex source by default in the direct library path. A successful conversion does not establish the intended spoken mathematics.
Package and output limits
Custom macros, unsupported packages, TikZ, chemistry and physics notation, multi-file projects and malformed source can require manual work. Recognition of a construct is not complete package support. A PDF sent to the LaTeX route follows the PDF pipeline; it does not reconstruct TeX source.
The route accepts .tex, .txt, .md and .pdf. The source upload limit uses MAX_FILE_SIZE_CODE (10 MiB by default); PDF input uses MAX_FILE_SIZE_PDF (50 MiB by default). Content validation still applies.
A bounded ZIP project workflow (POST /education/latex/projects with file and entry_file) preserves the original archive, inventories literal dependencies and can return an accepted HTML candidate. It does not rewrite multi-file source, offer project PDF output or render bibliographies, and its reports stay human_review_required and not verified. Archives are limited to 32 MiB and 256 members.
Optional HTML and PDF
The API can request tex, html and pdf, but conversions depend on installed executables and can return no file. HTML uses LaTeXML or pandoc, chosen from the document’s contents, and the converter does not silently retry another HTML converter after a failure. PDF prefers LuaLaTeX, with HTML/Playwright and more limited pdflatex fallbacks. Since v0.9.12 every TeX tool, LaTeXML and pandoc runs with a minimal environment and Linux Landlock confinement to its working files and the submitted source; where Landlock (Linux 5.13 or newer) is unavailable, conversion fails closed and reports the tool unavailable. Still diff the source, compile in your own restricted environment, and review each generated format independently. Preserve included files and project dependencies.
Check the spoken expression
For the expression below, an illustrative spoken form is “negative b plus or minus the square root of b squared minus four a c, all divided by two a.” The expression contains no equality. Check any drafted description against the author’s intended grouping and test MathML with the intended browser and assistive technology.
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}Authenticated API usage
Use your deployment URL and an authorized API key. The localhost URL below is for a locally running API.
curl --fail --silent --show-error \
-H "Authorization: Bearer $AELIRA_API_KEY" \
-F "[email protected]" \
"http://localhost:8000/education/latex/scan?use_ollama=false"This multipart request delegates to /education/latex/convert and returns a scan_id. Poll GET /education/scans/{scan_id}/progress, then GET /education/scans/{scan_id}. From v0.10.0 the aelira scan latex CLI uploads the file to /education/latex/convert in the same way; earlier releases sent JSON, which this route rejects. The CLI does not set use_ollama, so the default of true applies; use this HTTP request to turn it off.
Evidence and review
This guide describes released Core source; availability in a hosted deployment depends on its release and configuration. Review output before publishing it.