Initial public release of TeXForm — a LaTeX formula parser, editable document model, and normalization engine, available in Rust, Python, and JavaScript from a single Rust core.
Added
- Knowledge-driven parser backed by 530+ command and environment specifications across the
base,ams,physics,braket,bboldx,boldsymbol, andtextmacrospackages, with strict and lenient modes that preserve unknown commands and unparseable fragments as explicit nodes instead of failing the parse. - Editable
Documenttree with validated, fallible edits and canonical LaTeX serialization that guarantees text idempotency over parse/serialize cycles. - Profile-based transform engine with four normalization profiles —
Authoring,Faithful,Corpus, andEquiv— covering author-facing cleanup, render-faithful expansion, corpus preparation, and formula-equivalence comparison. validate_argspecfor checking xparse-style argument specifications.- Python (PyPI
texform, Python ≥ 3.10) and JavaScript/TypeScript (npmtexform, WebAssembly) bindings exposing the same parser, document, and transform engine from the shared Rust core.