#[repr(u8)]pub enum Phase {
Show 17 variants
Bootstrap = 0,
Digest = 1,
Build = 2,
Rewrite = 3,
MathParse = 4,
PostXmlParse = 5,
PostScan = 6,
Bibliography = 7,
Crossref = 8,
Graphics = 9,
MathImages = 10,
MathmlPres = 11,
MathmlCont = 12,
Split = 13,
Xslt = 14,
Html5Fixups = 15,
Serialize = 16,
}Expand description
Coarse phase enum. 17 values; bumping requires updating
Telemetry::write_json and tools/perf_phase_summary.py.
Phase ordering reflects the conversion pipeline order (Bootstrap → Digest → Build → Rewrite → MathParse → PostXmlParse → PostScan → Bibliography → Crossref → Graphics → MathImages → MathmlPres → MathmlCont → Split → Xslt → Html5Fixups → Serialize) so flat dumps read in execution order.
Variants§
Bootstrap = 0
Digest = 1
Build = 2
Rewrite = 3
MathParse = 4
PostXmlParse = 5
Parses the XML emitted by core into a PostDocument.
Size-proportional; material on large papers.
PostScan = 6
Scan phase of latexml_post: ID assignment, label resolution, etc.
Bibliography = 7
Crossref = 8
Graphics = 9
External-tool dispatch for \includegraphics (mutool / pdftocairo / convert / gs).
MathImages = 10
External-tool dispatch for picture/latex/math image rendering
(picture_images.rs + latex_images.rs + math_images.rs).
MathmlPres = 11
MathmlCont = 12
Split = 13
Document splitting (only when --split is on; otherwise 0).
Xslt = 14
Html5Fixups = 15
Final HTML tweaks after XSLT (asset paths, header/footer).