pub struct Config {Show 18 fields
pub verbosity: i32,
pub format: OutputFormat,
pub whatsin: DataSize,
pub whatsout: DataSize,
pub preamble: Option<String>,
pub postamble: Option<String>,
pub mode: Option<DigestionMode>,
pub bindings_dispatch: Option<BindingDispatcher>,
pub extra_bindings_dispatch: Option<BindingDispatcher>,
pub preload: Option<Vec<String>>,
pub search_paths: Option<Vec<String>>,
pub include_comments: Option<bool>,
pub strict: Option<bool>,
pub include_styles: Option<bool>,
pub nomathparse: Option<bool>,
pub source_map: Option<bool>,
pub inputencoding: Option<String>,
pub streaming: Option<usize>,
}Fields§
§verbosity: i32§format: OutputFormat§whatsin: DataSize§whatsout: DataSize§preamble: Option<String>§postamble: Option<String>§mode: Option<DigestionMode>§bindings_dispatch: Option<BindingDispatcher>§extra_bindings_dispatch: Option<BindingDispatcher>§preload: Option<Vec<String>>Packages to preload before processing (e.g. –preload=ar5iv.sty)
search_paths: Option<Vec<String>>Additional search paths for finding packages/inputs (e.g. –path=dir)
include_comments: Option<bool>Whether to include XML comments in output (–nocomments sets false)
strict: Option<bool>Strict error-reporting (--strict; State STRICT, Perl Core.pm L43)
include_styles: Option<bool>Raw-load .sty AND .cls sources (--includestyles). WARNING: one flag
enables raw TeX loading of both packages and classes — it sets State
INCLUDE_STYLES and INCLUDE_CLASSES together (Perl Core.pm L55-57).
nomathparse: Option<bool>Whether to skip math parsing (–nomathparse)
source_map: Option<bool>Whether to track + emit source locators (--source-map). Off by
default; gates both per-token start capture and per-element
data-sourcepos stamping. See docs/performance/SOURCE_PROVENANCE.md.
inputencoding: Option<String>Input encoding for translating source bytes to LaTeXML’s internal UTF-8
(--inputencoding; Perl Config.pm L57, Core.pm L60-61 which assigns
State PERL_INPUT_ENCODING, default utf-8). Consumed by the Mouth’s
per-line decode; only affects byte→UTF-8 translation, never catcodes
(for those, use the inputenc package). None ⇒ the utf-8 default.
streaming: Option<usize>Streaming (fragmented) core conversion: Some(budget) interleaves
digest→build in fragments of ~budget boxes, spilling closed subtrees
to disk so peak RSS is bounded by fragment size instead of document
size. None (default) = the eager path — also the Perl-parity path
(Perl is strictly digest-all→build-all; interleaving is a sanctioned
divergence, activated only by the --streaming flag or when the
projected need exceeds the memory cap). The budget is a box count on
the same per-box basis as the box-list guards.