Skip to main content

Crate latexml

Crate latexml 

Source

Modules§

api
Stable, high-level conversion API for using latexml as a library.
bib_session
The recursive BibTeX session behind post-processing’s bibliography.
converter
core_interface
ini_tex
Format dump mode — Rust equivalent of Perl’s iniTeX + DumpFile.
lsp_server
Persistent server for editor/preview integration (latexml_oxide --server).
main_tex
Main .tex discovery for directory inputs.
post
Post-processing pipeline API.
render_workers
Process-parallel page rendering for pass B of the post pipeline (docs/performance/STREAMING_POST_DESIGN_2026-07-06.md §6).
util

Macros§

tex_tests
Build a test function for each “*.tex” source found in a given directory path. The path should be absolute, or relative to the root latexml-oxide checkout.

Functions§

dump_compiled_latexml_model
Load the embedded LaTeXML schema and return its compiled-model serialisation in the .model plain-text format. Used by tools/compileschema.sh stage 2 (and the --dump-model flag on the latexml_oxide binary) to regenerate LaTeXML.model from the same source the runtime sees.
load_latexml_default_model
Load the embedded LaTeXML schema (compile-time) into the runtime MODEL. Single home for the load_model!("LaTeXML") macro expansion — the macro generates a fresh _ModelLoader::build_model at each call site (~600 KiB of .text per copy), so funnelling all callers through this one function lets LTO keep exactly one instance in the final binary. Mirrors Perl LaTeXML::Common::Model::compileSchema (Model.pm L121-136).