Skip to main content

Crate latexml_post

Crate latexml_post 

Source
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:

  1. Input: An XML document produced by the core LaTeXML conversion
  2. ProcessChain: Each Processor in sequence gets:
    • to_process(doc) → nodes relevant to this processor
    • process(doc, nodes) → the (possibly split) result document(s)
  3. Output: One or more processed XML documents

§Modules

  • documentPostDocument: XML wrapper with ID management, XPath, caching
  • processorProcessor trait: abstract base for all post-processors
  • math_processorMathProcessor trait: abstract base for math converters
  • radix — Radix utilities for ID generation (a,b,…,z,aa,ab,…)

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’s get_math and get_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.
scan
Document structure scanning processor.
schema_docs
Schema-doc post-processing — visual customizations for --splitat=section schema documentation.
split
Document splitting processor.
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§

Error
Fatal
Info
Note
Warn

Structs§

Post
The post-processing pipeline driver.
PostStatus
Status of post-processing.