Expand description
Post-processing pipeline for latexml_oxide.
Rust port of LaTeXML::Post — the driver that orchestrates
post-processors (Scan, CrossRef, MathML conversion, XSLT, Writer, etc.)
on a converted LaTeXML XML document.
§Architecture
The processing pipeline follows the Perl original:
- Input: An XML document produced by the core LaTeXML conversion
- ProcessChain: Each
Processorin sequence gets:to_process(doc)→ nodes relevant to this processorprocess(doc, nodes)→ the (possibly split) result document(s)
- Output: One or more processed XML documents
§Modules
- Infrastructure:
document(PostDocument: the XML, ids, XPath),processor(theProcessortrait),math_processor,object_db(cross-page data),radix(id suffixes),diag(diagnostics). - Structure:
scan,split,stream_split(the split of a core result on disk),crossref,make_bibliography,make_index,collector. - Math:
mathml(Presentation and Content MathML),unicode_math,open_math,tex_math,xmath,lex_math,unicode. - Images:
graphicsandgraphics_cache,latex_images,math_images,picture_images,svg. - Output:
xslt,writer,manifest(the EPUB package),pack(zip and EPUB bundles),extract(--whatsout=fragmentandmath),resource_cacheandsqlite_store(theLaTeXML-oxide.cachenames),schema_docs.
The latexml crate’s post module drives this pipeline for a conversion.
Modules§
- collector
- Abstract collector base for content generation processors.
- crossref
- Cross-reference resolution processor.
- diag
- Diagnostic emission for
latexml_post. - document
- Post-processing document wrapper with XML/DOM, ID management, and caching.
- extract
- Document-subtree extraction helpers — port of
LaTeXML::Util::Pack’sget_mathandget_embeddable(Perl Pack.pm L247-313). - graphics
- Graphics postprocessing.
- graphics_
cache - Content-addressed graphics cache.
- latex_
images - LaTeX-based image generation processor.
- lex_
math - Lexeme-based math processor.
- make_
bibliography - Bibliography generation processor.
- make_
index - Index generation processor.
- manifest
- Abstract manifest creation processor.
- math_
images - Math image generation processor.
- math_
processor - Abstract math processor base.
- mathml
- MathML conversion processor.
- object_
db - Object database for cross-document data sharing.
- open_
math - OpenMath conversion processor.
- pack
- Output bundling — port of
LaTeXML::Post::Pack. - picture_
images - Picture image generation processor.
- processor
- Abstract post-processor base.
- radix
- Radix conversion utilities for generating labels and ID suffixes.
- resource_
cache - The resource cache: the names the generated and copied resources of one destination directory take, kept across the split pages of a run and across runs into the same directory.
- scan
- Document structure scanning processor.
- schema_
docs - Schema-doc post-processing — visual customizations for
--splitat=sectionschema documentation. - split
- Document splitting processor.
- sqlite_
store - A small SQLite store for the post-processor’s on-disk caches: a file, or an in-memory database when there is no file to keep or it cannot be used.
- stream_
split - Streaming split: partition a huge core XML file into per-page spill files without ever building the whole-document DOM.
- svg
- SVG rendering processor.
- tex_
math - TeX math preservation processor.
- unicode
- Unicode character mapping for mathematical typesetting.
- unicode_
math - Unicode math conversion processor.
- writer
- XML/HTML output sink — port of
LaTeXML::Post::Writer. - xmath
- XMath pseudo-generator for preserving LaTeXML’s parsed math.
- xslt
- XSLT transformation processor.
Macros§
Structs§
- Post
- The post-processing pipeline driver.
- Post
Status - Status of post-processing.