Skip to main content

Module post

Module post 

Source
Expand description

Post-processing pipeline API.

Provides a public interface to the LaTeXML post-processing pipeline (Scan → Bibliography → CrossRef → Graphics → Split → MathML → XSLT → HTML5 fixups). Used by both the latexml_oxide binary and the cortex_worker binary.

Structs§

PostOptions
Options for the post-processing pipeline.
PostOutcome
Result of run_post_processing_logged: the serialized HTML plus the post-phase log text and status code, mirroring Perl LaTeXML.pm’s convert_post, which flushes the log AFTER post and folds the post status into the final max(core, post) verdict (L631-634).

Functions§

default_stylesheet
The built-in XSLT stylesheet for an output format (logical embedded-resource name; Perl Config.pm L543-551). Returns None for a format with no default (e.g. xml), so a caller keeps --stylesheet / no post.
run_post_processing
Run the post-processing pipeline on in-memory XML output.
run_post_processing_from_file
File-input variant of run_post_processing.
run_post_processing_from_file_logged
File-input variant of run_post_processing_logged: parses the XML from disk via libxml2’s streaming reader rather than from an in-memory String. Used for already-converted .xml inputs, where slurping the file would keep a whole extra copy of a multi-hundred-MB document resident alongside the DOM.
run_post_processing_logged
Run post-processing while capturing its log into a fresh thread-local LOG_BUFFER. Converter::convert() already flushed the core log into its own response, leaving the buffer unbound — so without re-binding here every post-phase Info!/Warn!/post_error (incl. a silent EPS→PNG failure) reaches stderr only and never the persisted --log/cortex.log. Perl’s single flush_log() after convert_post sweeps up the post log for ALL consumers; this is the Rust equivalent, shared by the latexml_oxide and cortex_worker binaries so their logs reach parity. See SYNC_STATUS task 5.