Expand description
Common abstractions that are useful at various stages of Core processing
Modules§
- arena
- An arena for interning strings (global, mutable, single thread only)
- cleaners
- color
- def_
parser - dimension
- error
- float
- font
- glue
- ligature
- local_
assignments - Perl-style local assignments (dynamic scope)
- locator
- mathchar
- model
- mudimension
- muglue
- number
- numeric_
ops - object
- pair
- relaxng
- Native Rust port of LaTeXML’s
LaTeXML::Common::Model::RelaxNG. - store
- xml
- xml_
walk - Read-only walks for the XPath location paths LaTeXML asks on every document and every formula
(
//ltx:Math[not(ancestor::ltx:Math)],descendant-or-self::*[@_pvis or @_cvis],//ltx:ref//*[@fragid], …).
Structs§
Enums§
Constants§
- RUNAWAY_
ABSORB_ LIMIT - ar5iv.sty’s
absorblimit, the front ends’ default ceiling on absorbed boxes. - RUNAWAY_
IF_ LIMIT - The front ends’ default
\ifrunaway ceiling, which ar5iv.sty’siflimitalso passes (latexml_contrib/src/ ar5iv_sty.rs, the arXiv fleet’s profile). The counter accumulates over the whole document, so a long pgf-heavy document passes the former 48M without any runaway (tkz-grapheur-doc-fr lost its last section at 48M, DG 2026-11-18: “Raise plain default 10×”; 2302.07562 converts in 128 s, DG 2026-11-23 raised ar5iv’s to match); the token budget and the timeout still bound a true runaway.
Functions§
- native_
dispatcher - Lift a native (compiled-in) binding dispatcher — one with no source file
to name — into a
ResolvingBindingDispatcher: a successful load reportsNonesource, so the caller announces it by its module-proxy name. Pairs with the runtimerhai_dispatchtier, which reports the real.rhaipath.
Type Aliases§
- Binding
Dispatcher - A compiled-binding dispatcher: given a request name, either declines
(
None, so the next resolution tier is tried) or reports the load outcome (Some(Ok(()))/Some(Err(_))). It resolves compiled-in bindings, which have no source file, so it carries no path — the load note announces such a binding by its module-proxy name (<name>_sty.rs). - Binding
Source - The on-disk source a binding was loaded from, when it has one:
Some(path)for a runtime file binding (e.g. a.rhaiscript),Nonefor a compiled-in binding. Threaded through the resolving dispatcher’s result so the “(Loading …)” note can name the real path (#560) — rather than a State side-channel. - Label
Mapping Hook - Perl: LABEL_MAPPING_HOOK => sub { ($label, $ctr, $norefnum) => ($refnum, $id) } Returns (optional refnum string, optional id string)
- Local
Binding Finder - Finds the binding file a user supplied for a request in the local search paths (a runtime
.rhaibeside the document or in a--pathdirectory), which the resolving chain loads ahead of every compiled binding, as Perl’sFindFile_auxtakes the first<file>.ltxmlof SEARCHPATHS before the installed ones (Package.pm:2127-2129). Installed with the chain (converter::install_binding_dispatch). - Resolving
Binding Dispatcher - The resolving binding dispatcher installed as the single, ordered
resolution chain (see
converter::install_binding_dispatch). Unlike a bareBindingDispatcher, a successful load reports theBindingSourceit loaded from, so a file binding announces its real path and a compiled one its proxy name.