Skip to main content

load_latexml_default_model

Function load_latexml_default_model 

Source
pub fn load_latexml_default_model()
Expand description

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).