Skip to main content

Module preset

Module preset 

Source
Expand description

Engine preset helpers used by both the production latexmlmath_oxide binary and by the test harness. Always compiled — no test-only dependencies. Reusable engine presets that don’t depend on the test harness.

Extracted from util/test.rs (audit DEP-02, 2026-05-18) so the latexmlmath_oxide standalone binary can build without the test harness’s glob/phf dependencies. The two helpers here have no ties to the harness machinery — they just construct a minimal Core and tokenize a single inline formula.

Functions§

lex_single_tex_formula
Simple tokenization of a single formula, without any custom preloads beyond latex and amsmath.
new_test_engine
Provide a default Core engine preloaded with article.cls and amsmath.sty — the minimum needed to digest most formulae.