Module tex
Expand description
Best-effort TeX math parser.
This deliberately parses the mathematical language, not TeX’s macro and page-building language. Unknown commands are preserved as upright names and reported, so a note never loses source merely because its preview cannot implement a package-specific macro.
Structs§
Functions§
- parse_
tex - serialize_
tex - Canonical TeX emitted after a user edits the parsed tree visually. Source-mode formulas retain their original bytes; this serializer is only used once the structured editor has made a semantic change.