Skip to main content

Module ini_tex

Module ini_tex 

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

  1. Initialize the engine (load pools)
  2. Take a snapshot of the state
  3. Process the init file (e.g., latex.ltx) as raw TeX
  4. Compute the diff (what changed)
  5. 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