Skip to main content

reset_conversion_state

Function reset_conversion_state 

Source
pub fn reset_conversion_state()
Expand description

Forgets what one conversion leaves on its thread for the next, as Perl builds a fresh State per document (LaTeXML.pm:232): a persistent cortex_worker converts its papers on one thread. Called at each conversion’s start (initialize_report) and by reset_thread_engine. Not every per-conversion reset: the gullet’s, the math parser’s, the telemetry’s and the rescued boxes’ are in Core::initialize_singletons, the engine crate’s (the fm reading, the title-page check, the pdfTeX random generators) in Converter::initialize_session; a stack a guard pops on unwinding needs none.