Expand description
Format dump mode — Rust equivalent of Perl’s iniTeX + DumpFile.
Usage: latexml_oxide --init=latex.ltx --dest=latex_dump.oxide
Follows Perl’s make formats scaffold (Makefile.PL + Core.pm::iniTeX):
- Initialize the engine (load pools)
- Take a snapshot of the state
- Process the init file (e.g., latex.ltx) as raw TeX
- Compute the diff (what changed)
- Write the dump file with changed entries
The resulting dump can be loaded at runtime to skip re-processing the LaTeX kernel on every test run.
Functions§
- codegen_
from_ dump - Generate a compiled Rust module from a dump file. Reads the text dump and produces a .rs file with direct state assignment calls.
- dump_
format - Process an init file and write a format dump. Perl equivalent: Core.pm::iniTeX → TeX_Job.pool.ltxml::DumpFile