Skip to main content

Module document

Module document 

Source
Expand description

An abstraction layer over the converted XML document

Modules§

helpers
resource
tag

Structs§

Document

Constants§

ABSORB_WARNING_LOCATOR_PROPERTY
The source position, recorded at digestion, at which a constructor’s ABSORB_WARNING_PROPERTY Warning is raised: the gullet’s as the constructor’s arguments are read (core dialect::transfer_common_constructor_options), the position a Tbox carries as its locator. A whatsit’s own locator is set only under --source-map.
ABSORB_WARNING_PROPERTY
The box property of a Warning that belongs to the box’s print, not to its digestion (absorb_warning): raised when Document::absorb takes the box (a Tbox or a whatsit) into the document, once per key. A box digested and never absorbed — measured (\settowidth), saved and never used (\sbox), made by a rehearsal or a speculative digestion, or under a DiagnosticsHold it discards — raises nothing and leaves no key set, so the box the document prints still raises it. An undecodable math glyph’s once-per-font Warning (latexml_engine sect08.rs undecodable_math_slot, OXIDIZED_DESIGN_DIVERGENCES #27).
ABSTRACT_OPEN_AT_END
The bookkeeping attribute on an ltx:abstract whose body was still open at \end{document} (sect02.rs \lx@end@open@frontmatter): it swallowed the main matter, so its theorems stay theorems (DG 2026-11-20; OD #1097).
ALIGNED_LINES_ATTRIBUTE
The bookkeeping attribute of the capture of an aligning environment ({center}, {flushleft}, {flushright}) whose lines the engine sets (OXIDIZED_DESIGN_DIVERGENCES #1200): the whitespace Document::open_text drops there is kept on the piece before it (SPACE_AFTER_ATTRIBUTE).
FIELD_BOX_ATTRIBUTE
The bookkeeping attribute (stripped at finalize, as every _ attribute) of the element a TeX box’s constructor opened for its material (Document::mark_field_box).
FIELD_BOX_PROPERTY
The whatsit property of a TeX box’s constructor (OXIDIZED_DESIGN #715), set where it is digested while field ink is recorded (field_box_whatsit): a constructor whose declared mode is restricted_horizontal outside math (\hbox, \mbox, \makebox, \raisebox, \fcolorbox, \scalebox/\resizebox/\rotatebox/\reflectbox, core Constructor::digest_to_whatsit), \framebox/\fbox (its text branch), an environment whose begin code opens a box group (a minipage, dialect::def_environment). Document::absorb marks the first element its constructor opens (FIELD_BOX_ATTRIBUTE), before it absorbs anything; one that opens none marks nothing.
FIELD_FORMULA_START_PROPERTY
A formula’s first position in a field, under a rehearsal’s notes only (the engine’s field_notes): the opening shift’s, its box stamped by the closing one, whose invocation built it.
FIELD_MARK_TARGET
The target of the processing instructions marking a run of a frontmatter field’s ink (FieldRun): construction-time scaffolding, never in the output (the engine’s frontmatter placement removes them; the finalize drops a stray one).
FIELD_PROV_PROPERTY
The box property holding the field provenance of the token a box or whatsit was digested from (the stomach sets it, invoke_token; Token::prov).
FIELD_SERIAL_PROPERTY
The box property holding the serial of the box’s cover in the field ledger (field_ledger_push: its own position, the arguments its invocation consumed, a boxless font switch before it).
FIELD_TAKEN_PROPERTY
The box property of an alignment’s whatsit holding the field-ledger serials of the row-end markers its body consumed (a field value’s \\, field_ink_taken_serials): taken when the document absorbs the whatsit.
NESTED_LINE_ATTRIBUTE
The bookkeeping attribute of a line an aligning environment nested in another’s lines aligned, which the outer one leaves as it is: the inner alignment is in force at the line’s \par (OXIDIZED_DESIGN_DIVERGENCES #1200).
RAW_REFSTEP_MARK
The bookkeeping attribute (dropped at the end, as every _ attribute) on an object a raw counter step numbered: the step’s serial (Document::take_raw_refstep_number, OXIDIZED_DESIGN_DIVERGENCES #813).
SPACE_AFTER_ATTRIBUTE
The whitespace that followed a piece of an aligning environment’s line (ALIGNED_LINES_ATTRIBUTE), the space between it and the next piece once they are one paragraph.

Statics§

FONT_ELEMENT_NAME
MATH_HINT_NAME
MATH_TOKEN_NAME

Traits§

IntoVDQS

Functions§

absorb_warning
The ABSORB_WARNING_PROPERTY value of Warning:<category>:<object> <message>, raised once per once_key: the first absorbed box carrying the key raises it, the key is then set (a global state value, as the text side’s once keys are), and every later one is silent.
can_auto_close
can_contain
can_contain_indirect
Can an element with (qualified name) tag contain a childtag element indirectly? That is, by openning some number of autoOpen’able tags? And if so, return the tag to open.
can_contain_node
can_contain_node_somehow
can_contain_qname
can_contain_qsym
can_contain_somehow
can_have_attribute
can_node_have_attribute
field_box_marks_live
Can a box digested now still matter to a frontmatter field’s print (the field ledger not settled)? The gate of every digest-time field-box mark, checked before anything else is looked up. It does not wait for a field to be stamped: a header box may be digested before the document declares its \title (fms1 round-6 review finding 1); Document::mark_field_box applies the stamp at absorb time.
field_box_whatsit
Mark whatsit as a TeX box’s constructor (FIELD_BOX_PROPERTY), while a field’s print can still be lifted.
field_ink_taken_serials
The field-ledger serials of the boxes in digested (an alignment’s row-end marker, a value’s \\, latexml_engine digest_alignment_body), pushed onto serials: the structure the print is set in consumes them, never absorbed. The alignment keeps them on its whatsit (FIELD_TAKEN_PROPERTY), and they are noted taken (field_ledger_take) only when Document::absorb absorbs that whatsit, so the run of ink the row ends may cover them and no other run does; an alignment never shown (in an unused \setbox, \sbox, {lrbox}) takes nothing (OXIDIZED_DESIGN #715; review r4 finding 2, probes s25, s27, s28).
field_prov_stamped
The FIELD_PROV_STAMPED gate as it stands (to put it back after a rehearsal the document never keeps, FieldLedgerScope).
get_node_qname
id_counters
An element’s _ID_counter_* attributes, the counters generate_id keeps for the ids minted under it.
is_capture_block
The transient box-capture element of insert_block (ltx:_CaptureBlock_): a completed box, whose close force-closes its descendants.
is_phantom_box
Is node a phantom’s hint holding its argument (\phantom, \hphantom, \vphantom in math, math_common.rs): a box of its content, not spacing (OXIDIZED_DESIGN_DIVERGENCES #1141)? An empty argument (\phantom{}) makes none: an empty XMArg before the parse, an absent token after it.
is_spilled_inkless
Is node the placeholder of a spilled run that prints nothing (prints_nothing)? Content-free to the frontmatter’s cover reading as the run is (titlepage_layout.rs node_is_content_free), so a late abstract follows a cover holding article’s \newpage\null (\@maketitle) at a small fragment budget as in the eager build (OXIDIZED_DESIGN_DIVERGENCES #903, #1149).
item_beside_phantoms
The parsed item of a list (an XMath, or an XMArg slot) that keeps its edge phantoms beside it (the math parser’s parse_single; OXIDIZED_DESIGN_DIVERGENCES #1141): its one element child but hints, when one of them is a phantom. Content, OpenMath and text read the list as that item; presentation draws the row. Any phantom, not only a box: once parsed, a phantom of spacing holds absent (\sqrt{\phantom{\quad}x}), and is still no item.
nested_splice_count
How many nested segments the current conversion’s assembly spliced back.
node_can_contain_sym
note_field_prov_stamped
Note that a field’s stored tokens now carry their provenance (FIELD_PROV_STAMPED).
reset_field_prov_stamped
Clear the FIELD_PROV_STAMPED gate (conversion start).
reset_field_provenance
Reset every piece of a conversion’s field-provenance thread state (OXIDIZED_DESIGN #715): the stamped gate, the field ledger and its settled flag, the pending cover. Run at the start of every conversion (the converter’s reset_conversion_state, at initialize_report), whatever the thread converted before: a persistent cortex_worker thread, a streaming restart and the CLI’s supplements convert on one thread without an engine reset, and a ledger settled by the previous document recorded nothing for the next one, which then lifted no print at all (review r4 finding 1).
reset_spilled_segment_count
Reset the spill probe (the streaming driver calls this at conversion start; eager conversions never touch it).
restore_field_prov_stamped
Put the FIELD_PROV_STAMPED gate back as field_prov_stamped read it.
spilled_segment_count
How many segment runs the current conversion has spilled (0 = eager).
sym_can_contain_somehow
The return type of this method is somewhat artisinal, as we have a three-way semantics:
sym_can_have_attribute
with_node_qname