The latexml-oxide version exposed to bindings as the state value
LATEXML_VERSION — the Rust analog of Perl’s $LaTeXML::VERSION. This is
our own crate version (latexml_oxide), not the emulated Perl LaTeXML’s,
rendered as a bare X.Y.Z: Cargo’s _MAJOR/_MINOR/_PATCH components drop
any -rc/pre-release suffix, so a version-gate parser (BookML’s .ltxml
check or the XSLT b:version-leq) sees three integer parts. latexml_contrib
and latexml_post can’t read this crate’s version directly (reverse dep), so
it is injected via state at session init and read back where needed.
Release core TeX/LaTeX engine state before post-processing begins on large
or split documents, returning freed arena/state memory to the OS while
keeping end-of-run diagnostics (REPORT, LOGGER, telemetry, watchdog)
intact. See latexml_core::release_core_state_for_post.