Skip to main content

Module common

Module common 

Source
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§

Config

Enums§

DataSize
DigestionMode
InputFormat
OutputFormat

Constants§

RUNAWAY_ABSORB_LIMIT
ar5iv.sty’s absorblimit, the front ends’ default ceiling on absorbed boxes.
RUNAWAY_IF_LIMIT
The front ends’ default \if runaway ceiling, which ar5iv.sty’s iflimit also 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 reports None source, so the caller announces it by its module-proxy name. Pairs with the runtime rhai_dispatch tier, which reports the real .rhai path.

Type Aliases§

BindingDispatcher
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).
BindingSource
The on-disk source a binding was loaded from, when it has one: Some(path) for a runtime file binding (e.g. a .rhai script), None for 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.
LabelMappingHook
Perl: LABEL_MAPPING_HOOK => sub { ($label, $ctr, $norefnum) => ($refnum, $id) } Returns (optional refnum string, optional id string)
LocalBindingFinder
Finds the binding file a user supplied for a request in the local search paths (a runtime .rhai beside the document or in a --path directory), which the resolving chain loads ahead of every compiled binding, as Perl’s FindFile_aux takes the first <file>.ltxml of SEARCHPATHS before the installed ones (Package.pm:2127-2129). Installed with the chain (converter::install_binding_dispatch).
ResolvingBindingDispatcher
The resolving binding dispatcher installed as the single, ordered resolution chain (see converter::install_binding_dispatch). Unlike a bare BindingDispatcher, a successful load reports the BindingSource it loaded from, so a file binding announces its real path and a compiled one its proxy name.