Skip to main content

Module state

Module state 

Source
Expand description

A global, singleton, mutable state - hosts almost all TeX-facing runtime information for the conversion

Re-exports§

pub use crate::common::store::Stored;
pub use crate::common::local_assignments::*;

Structs§

AssignmentCount
Ledger for stacked assignments: how many bindings of each key a frame made (Perl’s $$frame{$table}{$key}).
AssignmentJournal
The bindings of every key assigned since an assignment journal began (begin_assignment_journal), as they were then: taken at the key’s first assignment after, the key’s values in its table and its assignment counts in each frame then open (by the frame’s id), so that AssignmentJournalGuard::rollback can put them back. A key’s first assignment is the first time anything touches it, so the frames opened since hold none of it.
AssignmentJournalGuard
The open assignment journal (begin_assignment_journal).
ClassLoadFrame
RAII frame of one class load (binding::content::input_definitions, a .cls with its options handled: the \documentclass, a \LoadClass, a binding’s LoadClass!). While it is open, the macros assigned outside LaTeXML’s kernel layers — the class binding’s own (article.cls’s names, article_cls.rs), the raw file’s, a package’s it loads — and the names a lock kept from a definition it made are recorded as the class’s (State::class_loads), as its real file defines them; a repeat load records nothing new. A load a stand-in’s copy requests (copy: its own \LoadClass, or a class loaded while that one is open) also names the class among the copy’s base classes (CopyProvidesRecord::loads_classes), whose names its \newcommand finds defined (copy_provides_text_default_clashes): chained \LoadClass{mybase} over article (the reviewer’s probe nc_chain).
ClassLoadRecord
One class loaded (ClassLoadFrame): its file name (article.cls), the names its load frame assigned a macro (the macro itself, to tell it is still the meaning: compared by Rc::ptr_eq) or had a definition refused by a lock (None), and the classes loaded while its frame was open, innermost included (a binding’s LoadClass! of its base class: ceurart_cls.rs → OmniBus → article).
CopyProvidesFrame
One frame of a stand-in copy’s provides-mode (enter_copy_provides_frame): the copy (0: a suspension), whether it repeats the frame in force (a hook chunk wrapped twice), and the names whose meanings its code replaced, with the meanings kept aside.
CopyProvidesRecord
What note_copy_provides_assignment keeps for one stand-in’s copy: the copy’s file, its own definitions of names the binding owns (in force only inside its code), and the names and deferring seams logged.
DocumentArgument
An argument a DocumentCall read.
DocumentCall
A call of one of LaTeXML’s own macros (a binding’s or the kernel’s) that read its arguments from the document’s own text (note_document_call): the title-page check’s second source.
DocumentState
A binding’s document-wide state, one value of the Value table: bound globally, as the \global macros and registers of the package it stands for are, so a rollback (begin_assignment_journal: a rehearsal, a title-page check) puts it back, where a thread-local would keep what the discarded run did (FRONTMATTER_SINGLE_ENGINE_PLAN.md “What a rollback leaves”). It changes in place, unless an open journal holds it: the first change under a journal works on a copy, so a list a binding grows costs no more than a thread-local’s outside one.
DroppedArgument
An argument a macro dropped, which the title-page check digests itself (note_dropped_argument; latexml_engine title_page_check::never_digested).
MeaningAssigned
A meaning assigned in the meaning log (begin_meaning_log).
MeaningWatch
A selection of names for watch_meanings. Asked of every assignment a document or a raw file makes, so the bytes after a name’s backslash that select can take are the only cost of any other name: 1 of 3 at the second, one at the third.
State
The state efficiently bookkeeps the bindings in a TeX-like fashion.
StateOptions
state fields allowed for customization during construction
StoreCall
A call of a setter a raw class or a raw file of the document’s own directory made (note_store_call).
StoreCalls
What take_store_calls gives: the setter calls kept, and what the bound left out.
TopFrameKeys
The keys bound at the topmost frame for the Meaning and Value tables, taken before an autoloaded package loads, and the meaning recorder (begin_meaning_recorder) open over the load; see hoist_top_frame_package_load, which closes it (as dropping it does: a load that fails).
UndoFrame
For each of several tables (being “value”, “meaning”, “catcode” or other space of names), each table maintains the bound values, and “undo” defines the stack frames

Enums§

Catcodes
High-level catcode profiles
FigureOutputCue
What the figures a source includes say of its output mode (the K6 ruling’s figure cue, OXIDIZED_DESIGN_DIVERGENCES #537): read from the \includegraphics-family targets the main file and the files it inputs name, resolved against the source tree, and from a pstricks load.
Scope
installation scope in the state_tables
TableName
the kinds of tables bookkept in the State
WatchedName
What watch_meanings’ selection says of a name.

Constants§

BRACED_ARGUMENT_TYPES
The parameter types that read one TeX argument, a braced group (read_arg/read_balanced, base_parameter_types.rs): a binding whose first mandatory parameter is one of them takes a braced argument (owns_calls).
CLASS_HAS_CHAPTERS
The value class_defines_chapter reads once the document’s class has loaded.
COPY_TEXT_NAMES
The text names a stand-in’s copy may supply over its binding, the kernel’s default (OXIDIZED_DESIGN_DIVERGENCES #731 rules 13 and 14; user ruling 2026-10-21: “the bindings should always win in terms of semantic markup … the slight typographic variations in the raw .cls or .sty file … if we can preserve and reuse them that should be via a generic mechanism that is set in the binding with a reasonable default”): the standard classes’ and LaTeX’s \…name macros, the word a heading or a label prints — aip-cp.cls:875 \newcommand\refname{REFERENCES} (1506.04050, 1604.08112), the AASTeX 6+ copies’ \def\abstractname{ABSTRACT} (2107.03400), proto.cls:798 \def\abstractname{~} (1402.7103). A binding extends it with its own (declare_copy_text_names). Everything else a binding defines is its markup of the class, and the copy’s version of it is declined: caption formats (\fnum@<type>, whose punctuation met the binding’s caption separator, “Fig. 1.—.— “ in 1106.2565), the caption separator, \@thmcountersep (1803.06644’s “Theorem 51”), \the<ctr>, \p@<ctr>, \the<ctr>@ID, list labels (\labelitemi), \today, \baselinestretch, \CurrentOption, every \lx@ name, structure.
REFUSAL_RECORD_SUFFIXES
The per-name records of a lock’s refusal of \<name> (after :redefined, note_redefined, install_definition): what a replay or a locked binding reads of the class’s definition (OXIDIZED_DESIGN #482).
STORE_CALLS_KEPT
The most setter calls kept (note_store_call): a document whose own style’s setter is called thousands of times before its title page keeps the first ones; what the check digests stays bounded.

Statics§

UNITS
Used in conversion to scaled points.

Functions§

absorb_limit
Perl $LaTeXML::ABSORB_LIMIT: the runaway ceiling on absorbed boxes (0 = unlimited), set by latexml.sty’s absorblimit option.
activate_scope
Activates all stashed definitions for the named scope. No-op if the scope is already active.
add_binding_names
Append one crate’s (name, ext) slice. Companion to set_bindings_dispatch / set_extra_bindings_dispatch — call alongside dispatcher registration so find_file can resolve compile-time bindings. Duplicates are deduplicated by pointer so repeated calls from the same crate don’t inflate the fallback pool.
add_search_path
Global append (Perl PushValue(SEARCHPATHS)) — a persistent search dir.
after_assignment
run the accumulated directives from \afterassignment (Package.pm:716); a value that is no token (a binding’s AssignValue("afterAssignment", "Q")) is an Error and dropped.
assign_alignment
assign_catcode
assigns a Catcode for a given character
assign_delcode
like assign_catcode but targets Delcode and its table
assign_font
a convenience method to globally asign a Font to the “font” key
assign_font_parameters
Give the font whose array is stored under key its parameters, in sp: Perl’s \font filling a new font’s $$fontinfo{data} from its metric (TeX_Fonts.pool.ltxml:108-117). Unbound by any group, as a font is.
assign_frame_value
assign_frame_value_sym with a string key.
assign_frame_value_sym
A save-frame bookkeeping binding (groupInitiator, BOUND_MODE, the frame id, an environment’s group code…): always local to the current frame, exempt from \globaldefs and the \global prefix — tex.web §1214 vs §274. See State::assign_local_unconditional.
assign_internal
assigns a Stored value at the given key and scope Direct mirror of Perl’s free-function form LaTeXML::Core::State::assign_internal($STATE, $table, $key, $value, $scope) (Core/State.pm L140). Bypasses every dialect / lock / let-chase / admission layer Rust has accreted on top of the table mutation; used by the dump loader (Core/Dumper.pm V/Cc/Mc/Sc/Lc/Uc/Dc/Im/I/Lt) so the dump replay matches Perl exactly: one record == one assign_internal call.
assign_lccode
like assign_catcode but targets Lccode and its table
assign_luatex_latin1_letters
load-unicode-data.tex:134-135 for U+0080–U+00FF: the LuaTeX/XeTeX format letters every L/M code point, but the latex dump pins that range OTHER (pdfTeX’s utf8.def model), so the lazy default in lookup_catcode never reaches it. Called at the format seam (latexml_engine::latex) and by the luatex/xetex options of latexml.sty; 65 global assignments.
assign_mapping
Bind key to value inside the named mapping — Perl’s AssignMapping.
assign_mathcode
like assign_catcode but targets Mathcode and its table
assign_meaning
$meaning should be a definition (for defining active control sequences) or another token, for \let
assign_register
assign_register_token
assign_register variant taking a pre-built Token — lets hot callers skip the T_CS!(&str) pin when they already have the CS cached (e.g. via T_CS!("\\c@…") literal which routes through pin!).
assign_sfcode
like assign_catcode but targets Sfcode and its table
assign_uccode
like assign_catcode but targets Uccode and its table
assign_value
Bind key to value in the value table — Perl’s AssignValue.
assign_value_inplace
assigns a Stored value ‘inplace’: replaces the front value in whatever frame it was originally assigned in, without recording an undo entry. This matches Perl’s assignValue(key, value, 'inplace'). Used for MODE changes in enter_horizontal (switches mode without creating a new binding).
assign_value_inplace_sym
Sym-keyed variant of assign_value_inplace — skip the per-call arena::pin(key) for hot callers with a pre-pinned SymStr.
assign_value_past_rollback
Assigns value to key globally and past the open assignment journal’s rollback (Rust-only), as TeX never takes back what it wrote to a file: no speculative run’s undoing (a frontmatter rehearsal, a label’s ink run) takes it back. Only for a record TeX writes to a file and reads back on a later run — an aux-file label, imsart.sty’s \ead \safelabel that its \printead reads —, never for a value a rehearsal’s own reading decides: that one must roll back with it. OXIDIZED_DESIGN_DIVERGENCES #986.
assign_value_sym
assigns a Stored value at the given (arena ticket!) key and scope
begin_assignment_journal
Begin recording what assignments change, to undo them all (AssignmentJournalGuard::rollback) or keep them (AssignmentJournalGuard::keep; also on drop, so a panic leaves no journal open): a transaction over the binding tables, of every assignment however scoped and of the in-place edits of the tables (push_value, assign_mapping, lookup_value_mut, checkout_value/checkin_value, named-scope activation, rebind_let_copies, the graphics path list), of a font’s parameter array (set_font_parameter, saved as a copy), an input stream’s mouth (input_stream_to_change) and a box register’s dimensions (journal_box_dimension), each edited in place, and of a name’s standing in the fallback-guess set (AssignmentJournal::fallback, FM S2a.2 r9: siamart’s \AND, 2409.10200). Not of what lives outside the tables: the provide-only and stand-in name sets, which change only while a package or class loads. Made for the replay of a refused frontmatter setter (sect05.rs replay_class_setter), which a setter that errs half-way must not leave half-done (jsty3-author.sty:542’s expl3 author list, which its printer then looped over: 2607.24171). None, recording nothing, while one is already open (journals do not nest); a journal its guard could not close (the state was borrowed when the guard dropped) is discarded here.
begin_borrow
Begin a borrow (binding::content::require_package_borrowed): no file loaded by it yet. Returns the list of an enclosing borrow, which end_borrow puts back.
begin_meaning_log
Begin logging the meanings assigned on the open journal by a token with a field provenance (Token::prov), in order: what a rehearsal reads a definition in its field by (the engine’s field_notes), since a definition leaves no box. What a token of no provenance assigns is no invocation of the field’s, wherever it stands: \begin{minipage}’s hooks, the \size@update that \selectfont puts back. One rehearsal at a time, journals not nesting (begin_assignment_journal); the log goes with the journal.
begin_meaning_recorder
Begin recording which meanings are assigned, each with its value before its first assignment since (end_meaning_recorder): what AssignmentJournalGuard::assigned reads of TableName::Meaning, without the journal — recorders nest, and a journal (a speculative run’s, a replay’s) may open and close inside one. Made for a displaced setter’s call (frontmatter_stores.rs \lx@displaced@begin), whose own code may run a speculative label read (queue_digest.rs speculative_label_ink: utarticle.cls:125’s \address prints its \@makeadmark{\@tempb}, 1209.6020). Kept in the state, so a document that stops inside a call leaves none to the next. Returns its depth: how many were open before it, which end_meaning_recorder_at closes it by.
begin_semiverbatim
begins a semiverbatim frame, neutralizing the usual + requested characters
begin_stand_in_load
Begin a stand-in binding’s load (crate::definition::origin::StandInLoadGuard): no name of its own assigned yet (State::stand_in_loads); a stand-in it loads records its own apart.
bind_value_in_frame
Binds key to value in stack frame frame (0 = innermost), replacing the binding that frame made, if any: the value is undone with that frame, and the bindings of the frames above it still shadow it.
binding_exists
true when a binding is registered for the exact (name, ext) pair. Convenience wrapper over the per-crate slices in binding_names. Mirrors dispatch()’s lookup but without the side effect of loading.
binding_loaded
Did the binding of this very name load file (<file>.ltxml_loaded, Package.pm:2332), not a stand-in’s?
body_mentions
Whether the macro cs’s token body mentions the control sequence named name (a closure body is opaque: no). By name, so no token is interned for a name that may never exist.
call_openers
The other tokens that open a call of binding (a locked_binding_token) besides an explicit {: the [ of each optional argument its signature opens with, and the token of an OptionalMatch:*. A robust binding’s signature is its inner \cs␣’s, as in owns_calls: \cite[p.~3]{x} opens the kernel \cite.
checkin_value
Returns a value into its Stored::None placeholder (see checkout_value for taking it)
checkout_value
Replaces the value in question with Stored::None (see checkin_value for returning it)
claim_borrowed_meanings
A borrowing binding’s claim on the borrowed names its real package defines too: their meanings no longer carry the borrowed mark (DefinitionOrigin::Borrowed, fallback_meaning_origin), so they are the binding’s own, as if it had defined them again at its own origin, and a later file’s \newcommand/\newenvironment of them is refused as LaTeX refuses it (“Command … already defined”), not honoured. ntheorem.sty’s [amsthm] option defines \proofname and {proof} (ntheorem.sty:668-711), which its binding takes from the borrowed amsthm; theorem.sty’s \newskip\theorempreskipamount (theorem.sty:122-123) likewise. A name whose meaning is not borrowed is left alone.
claim_open_document_calls
The document calls whose expansions are being read now (note_document_call), for an entry claimer the frontmatter API queues inside them (latexml_engine title_page_check::note_frontmatter_entry): None when there are none, else the claimer of the outermost (the entry an earlier one inside the same call made, or claimer), those no entry claimed before, outermost first, now claimer’s, and the arguments of them all — shared, not copied: an \author of 3,000 names joined by \and makes 3,000 entries inside one call.
class_chapter_sources
The two halves of class_has_chapters_now: whether the class’s own code assigned \chapter (a), and whether the class keeps LaTeXML’s kernel \chapter as a binding’s chapters (b) or OmniBus’s guess (c).
class_defines_chapter
The one “has chapters” test (OXIDIZED_DESIGN #179): does the class have chapters, as the real class’s \@ifundefined{chapter} sees it? natbib’s forks head the bibliography by it (NJDnatbib.sty:1050, ws-rv-har.sty:676), appendix.sty:38 and titlesec.sty:1526 number by it, and the kernel’s \appendix numbers within chapters only then (begin_appendices). The answer the “has chapters” step stored after the document’s class loaded (settle_chapter_after_class_load, latexml_engine sect01.rs, CLASS_HAS_CHAPTERS); while a class loads, the test made now (class_has_chapters_now), as a class’s own \@ifundefined{chapter} is answered by what it has defined so far. Not a chapter counter alone: WileyNJDv5.cls:5728 and MRM.cls:2160 \newcounter{chapter}[part] with no \chapter (2609.08425, 2506.14995: “REFERENCES”; 2211.16474: “Appendix A”). A LaTeX 2.09 \documentstyle document never settles (only a \documentclass retracts and settles, \chapter:settles); its class’s end stores the answer (\chapter:stored, store_chapter_after_latex_ix_class_load, latexml_engine sect01.rs), so \documentstyle[appendix]{report} numbers its appendix chapters “Appendix A” and \documentstyle{article} with the document’s own \newcounter{chapter} + \def\chapter letters its appendix “A”, as pdflatex. Before any class load (plain TeX), the test made now.
class_file_name
The class file name a load request names (article, dir/mybase.cls → article.cls, mybase.cls).
class_has_chapters_now
The “has chapters” test made now (OXIDIZED_DESIGN #179), which settle_chapter_after_class_load stores after each class load: the class has chapters when
class_loaded
\@ifclassloaded{name} (file_loaded).
clear_prefixes
clears the global prefixes
compute_indirect_model
The indirect model includes all elements allowed as direct children, and all descendents of a node that can be inserted after autoOpen’ing intermediate elements.
convert_unit
convert a unit name into a f64 scaling factor over sp
convert_unit_ratio
Convert a unit name into the exact TeX (num, den) fraction such that a dimension of value units is floor(round(value·65536)·num/den) scaled points (see numeric_ops::fixpoint_unit).
copies_lock
The meaning a lock that holds only against copies protects ("{cs}:locked@copies", files_lock_holds).
copy_kept_meaning
The meaning the latest stand-in copy that redefined token for its own code only gave it (its overlay, the copy’s declined name: “keeps LaTeXML’s definition”, note_copy_provides_assignment), while the meaning in force is still the binding’s the copy’s frame gave back (CopyProvidesRecord::restored; a later file’s redefinition is no stale copy’s to read, review revPB S4): what the paper’s copy runs where the binding’s version runs here. For the frontmatter’s reading of a class’s title code (latexml_engine title_code_author_definitions: neurips_2022.sty’s \@maketitle, which defines \NewAnd, where the neurips binding keeps its own; 2205.14141, 2205.14539).
copy_provides_binding
The stand-in binding the copy read now (copy_provides) was read after, or the empty string when no copy is read.
copy_provides_defers
Does a stand-in’s copy, read now, defer code to the document through seam (\AtBeginDocument, \AtEndDocument, etoolbox’s \AtEndPreamble/\AfterEndPreamble/\AfterEndDocument, lthooks’ \AddToHook)? Then the code is not registered: it is the class’s or style’s document-time machinery, which the binding has taken over — layout checks against the class’s page dimensions (icml2024.sty’s “The page layout violates the ICML style”, 2407.02750), validations of the class’s own setters the document called as the binding’s (PoS.cls “\abstract{…} should appear before \begin{document}”, 1001.3214; ieeeaccess.cls’s \EOD, 2007.03025; aipproc.cls’s \layoutstyle, astro-ph0105128), patches of the kernel’s \enddocument (aastex7.cls:459, whose \rvtx@enddocument@patch reads up to \@checkend and ran off the file: 2504.00922, 2605.15371, 2607.03848). On the 2026-10-17 census sample no Error was fixed by such code. Logged once per copy and seam, at Info.
copy_provides_defers_hook_write
Is token one of LaTeX’s document hooks (\@begindocumenthook, \@enddocumenthook), which a stand-in’s copy read now writes — \g@addto@macro, ltxgrid’s \prepdef, a \def —, so that the write is document-time code, which the copy does not register, as it does not its \AtBeginDocument code (copy_provides_defers, Info)? ltxgrid’s \prepdef\@begindocumenthook{\open@column@one\@ne\set@colht…} (qm2008_abs.cls:3233, snp.cls; REVTeX 4 copies routed to the revtex4 binding) ran its page grid over the binding’s names at \begin{document}: 7 “Missing number” Warnings in 0805.2253, 0806.0481, 0805.4759.
copy_provides_environment_yields
Does a stand-in’s copy, read now, \newenvironment (\newcommand, \providecommand) the environment its binding lets it keep (declare_copy_environment)? Then the declaration defines it, as the first definition TeX sees: in TeX the copy is the file, and the binding’s {longtable} never existed.
copy_provides_keeps_counter
Does a stand-in’s copy, read now (note_copy_provides_assignment), (re)declare or renumber the counter ctr the stand-in binding’s own load declared or numbered (its \c@<ctr> assigned while the binding loaded, State::stand_in_meanings, or the \the<ctr> of a counter that exists: \newcounter, \numberwithin, \@addtoreset, \counterwithin)? Then the counter keeps the binding’s numbering: its reset list is the binding’s, as its \the<ctr> is. Any other counter is the copy’s, declared for real (new_counter suspends the copy’s provides-mode for it): the kernel’s equation with the pool’s article \theequation — as article.cls’s defaults yield to the real class’s own: jheppub.sty:313-314 \renewcommand\theequation{\thesection.\arabic{equation}} and \numberwithin{equation}{section} number (2.1) as its PDF does (2112.14648, 2607.20603) — and a counter the binding only has a \the<ctr> for, OmniBus’s \thechapter autoload stub: WileyNJDv5.cls:5728 and MRM.cls:2160 \newcounter{chapter}[part], ws-rv9x6.cls:399 \newcounter{chapter} (2301.03442: declined, \c@chapter was “not a register”). Logged once per copy, at Info.
copy_provides_keeps_saved_meaning
Does a stand-in’s copy, read now (note_copy_provides_assignment), save source again into token — \let \token\source — where token already holds an earlier meaning of source (its definition is a \let copy made under source’s name, definition_cs) that the stand-in binding’s load assigned, and source has been redefined since — by the binding, the copy’s read not having assigned source itself — to a meaning that reaches token (meaning_reaches), so that the \let would make it call itself? Then the \let is declined, in the copy’s code too: token keeps the meaning TeX gives it, source before the redefinition. The binding (or a file it read) made the very save-and-wrap the copy makes — \let\org\X, then \X redefined to call \org —, and saving the wrapper into \org makes \X call itself: myjmlr.cls and jmlr_mod.cls (renamed jmlr.cls copies routed to the jmlr binding, whose jmlrutils.sty made the same wrap) run \let\jmlr@org@newtheorem\newtheorem (jmlr.cls:753-754) before their own \newtheorem{example}, which looped to the timeout (1506.02582, 2304.14217; OXIDIZED_DESIGN_DIVERGENCES #731 rule 2, the epl2.cls \let\epl@org@bibitem case met in the copy’s own code). Logged once per copy, at Info.
copy_provides_maketitle
The latest stand-in copy’s own \maketitle body (note_copy_provides_title_page), with the copy’s number (new_copy_provides_record) and file: the \maketitle pdflatex runs where the binding keeps LaTeXML’s (spconf.sty’s, 2110.09738; latexml_engine latex_constructs::class_maketitle_in_force).
copy_provides_maketitle_of
The \maketitle body (note_copy_provides_title_page) of the first stand-in copy of file numbered from or later, with its number.
copy_provides_overlaid_meaning
Copy id’s own version of the name token the binding owns, kept in its overlay while the binding’s meaning is in force (note_copy_provides_assignment).
copy_provides_refuses_locked
Does a stand-in’s copy, read or running its hook now (note_copy_provides_assignment), redefine the locked token? Then the lock refuses it as for any file, but keeps no record of it — no \lx@dropped@<name> body for the binding to run in a gap, no <cs>:redefined for it to yield to, no default or signature (the records of a raw class taking over a locked command, OXIDIZED_DESIGN #265, #500): the binding stands in for this very file, so the copy takes nothing over. Logged once per copy, at Info, as a redefinition of an owned name is.
copy_provides_text_default_clashes
Does a stand-in’s copy, read now, \newcommand a text default its binding does not own that a base class it \LoadClassed defines (copy_base_class_defines: article.cls:616 \newcommand\refname, :618 \figurename, which the article binding assigns in its own load; a raw base class’s own definition)? The real class has the name, so LaTeX stops with “Command … already defined” and keeps the first definition: an Error here as there (sect08.rs \newcommand; the reviewer’s probes newcmd_base and nc_chain, pdflatex 2 errors, “References”/“Figure 1”; nc_namedef 1). A name the base class made \relax is definable, as LaTeX’s \newcommand finds it. \def/\renewcommand redefine as before.
copy_provides_text_default_yields
Does a stand-in’s copy, read now, \newcommand a text default its binding does not own (unowned_text_default), in a real class that lacks the name? Then the declaration defines it, as it does in TeX: LaTeXML’s kernel or the binding’s base class predefined it, and no base class the copy loads defines it — a standalone class (ws-rv9x6.cls:91 \newcommand\bibname{References}, 2301.03442), or a name its base class lacks (article.cls has no \bibname). A name the base class the copy \LoadClasses defines is the real class’s already, so its \newcommand is TeX’s “already defined” (copy_provides_text_default_clashes).
copy_provides_title_pages
The title pages stand-in copies defined (note_copy_provides_title_page), each with its copy’s number, for frontmatter_stores::copy_title_page_prints (latexml_engine).
copy_provides_wrap
The code a stand-in’s copy registers with \AtEndOfClass/\AtEndOfPackage, which runs at the end of its own load: wrapped in the copy’s scope markers \lx@copy@provides@begin{N} … \lx@copy@provides@end, so it runs under the copy’s provides-mode, with the copy’s own definitions in force (enter_copy_provides_frame; aa.cls:71’s \AtEndOfClass redefinition of {abstract} keeps the binding’s). tokens unchanged when no copy is read or it is wrapped already.
current_frame_locked
true when the CURRENT (front) stack frame is the locked bottom frame — i.e. there is no openable group/mode frame to pop. Popping it would FATAL.
current_meanings_where
Every control sequence whose current meaning satisfies keep, with that meaning: a whole-table scan, for a one-off survey of what a loaded file defined (K11’s reader scan, frontmatter_stores.rs), never a hot path.
current_verbosity
deactivate_scope
Removes any definitions that were associated with the named scope. Normally not needed, since a scopes definitions are locally bound anyway.
declare_copy_environment
Declare {env} the environment a paper’s copy of binding keeps, and table the binding’s table macro (OD #731 rule 15); stock names macros holding the file’s own \<env> meanings, and a copy whose \<env> equals one, as our \ifx compares (prefixes aside), leaves the binding’s (OD #1202, leave_copy_provides_frame).
declare_copy_text_names
Declare names (\apj) text names of the binding loading now, besides the kernel’s COPY_TEXT_NAMES: a copy routed to it or a derivative of its class may supply them (OXIDIZED_DESIGN_DIVERGENCES #731 rules 13 and 14). The one declaration point of the mechanism, a value "<name>:copy@text" as a lock is "<name>:locked"; a binding declares the names it defines, where it defines them (aas_macros_sty.rs: its journal abbreviations, which 1402.7103’s proto.cls :1729-1790 spells out, “Astrophys. J.”).
defined_names_after_prefix
The rest of each defined control sequence’s name that begins with prefix: the <type> of latex.ltx’s \ftype@<type>, one per float type. In no particular order.
diff_snapshot
Compute diff from snapshot and return changed serializable entries.
document_redefines_guess
Whether the document redefines a guess of the fallback class, which wins under OmniBus (BM Q3.12, DG 2026-11-14): OmniBus sets GUESSES_REDEFINABLE for a class with no binding, so its locks yield to the document’s own text — not to hook code (apacite’s \AtBeginDocument{\providecommand{\doi}…} keeps OmniBus’s \doi).
dropped_argument_count
How many arguments binding macros dropped so far (note_dropped_argument): a watch’s start.
dump_top_frame_keys
dvi_driver_option
Whether the document is a latex+dvips one by its class options (set_dvi_driver_option).
end_borrow
End a borrow: the files first marked loaded during it (borrowed_loaded) are marked unloaded (mark_unloaded), and the enclosing borrow’s list is put back.
end_meaning_recorder
Close the innermost meaning recorder (begin_meaning_recorder): the meanings assigned since it began, each with its value then (None: unbound). Empty when none is open.
end_meaning_recorder_at
Close the meaning recorder begin_meaning_recorder opened at depth, and every one opened inside it and left open (an Err out of a displaced call between its begin and its end): the meanings it recorded, as end_meaning_recorder; empty when it is no longer open.
end_provide_only
End a provide-only load: the files first loaded during it (but the fallback class itself) loaded only what they could provide, so they are marked unloaded again — <file>_loaded, its .ltxml_loaded twin, _load_attempted and the kernel’s \ver@<file> — and a later \usepackage/\RequirePackage of one loads it whole (\documentstyle[graphics,myjunkx]{article}\usepackage{graphicx}: graphicx’s keyval \includegraphics).
end_semiverbatim
end by just calling pop_frame
end_stand_in_load
End the stand-in binding’s load begin_stand_in_load began: its names are the last load’s (State::stand_in_last_load), and, when the stand-in binding loading it requested it in its own code (into_outer, StandInLoadGuard::loaded_by), that binding’s too.
ensure_tag_property
enter_copy_provides_frame
Begin a frame of copy id’s provides-mode (crate::definition::origin::enter_copy_provides; 0 suspends the mode for a file the copy loads, a repeat of the mode in force adds nothing): the copy’s own definitions of names the binding owns, kept from its earlier read or hooks, are in force again for its code, the meanings they replace kept aside.
fallback_meaning_origin
The origin of token’s current meaning when it is a fallback guess, a kernel stub or a borrowed package’s (is_fallback_meaning): Fallback, Stub or Borrowed, whatever kind of definition it is (only macros record their own origin, Definition::get_origin; amsthm’s proof is a constructor).
figure_output_cue
The output-mode cue of the figures the document’s source includes (set_figure_output_cue).
file_loaded
Is file (amsmath.sty, memoir.cls) loaded, as LaTeX asks it (\@ifpackageloaded, \@ifclassloaded: latex.ltx \@ifl@aded, \ver@<file> defined and not \relax)? One answer on every load path: a binding’s load and a raw file’s define the macro (Package.pm:2343, :2393), and so do a class’s or a document’s own marks (floatrow.sty:34, \@namedef{ver@…}) and their removals (fontenc.sty’s tail, a document’s \let\ver@amsthm.sty\relax). Perl’s \@ifl@aded reads the loader’s records (latex_constructs.pool.ltxml:946-953), which a binding may clear so that the next request runs it again (load_recorded; aa.cls.ltxml:57): OXIDIZED_DESIGN_DIVERGENCES #1015.
files_lock_holds
Whether a lock against the class and package files on cs holds against this redefinition. Most such locks hold against every one. One that holds only against a COPY of the binding’s interface ("{cs}:locked@copies": amsthm’s proof, amsthm_sty.rs) holds against a redefinition taking an optional argument with a default first (takes_optional_first) — amsthm.sty:431’s own {proof}[1][\proofname], which smfart.cls:1194, ijmart.cls:336 or thuthesis.cls:4052 re-implement over a \trivlist — and lets one with a head of its own through (fascicules.sty:142 {\textbf{D\'emonstration:} \par}, NotesTeX.sty:124, a paper’s own \renewenvironment{proof}{…Beweisskizze:…}{…$\blacksquare$}), whose head text and end mark the binding would replace. The environment’s end half (\end<name> of a qualified \<name>) follows its begin half: locked while that is still the binding’s (not cleared, and LaTeXML’s own, DefinitionOrigin::is_latexml_owned). OXIDIZED_DESIGN_DIVERGENCES #596.
font_parameter
\fontdimen<p> of the font whose parameter array is stored under key, in sp (Perl’s $$fontinfo{data}, TeX_Fonts.pool.ltxml:131-137); None when the font has no array yet or p lies past its end.
frame_of_binding
The stack frame (0 = innermost) that made the n-th newest binding of key (0 = the binding in force), for value_in_frame: which group a value was set in.
generate_error_stub
Generate a stub definition for an undefined control-sequence, along with appropriate error messge.
generate_ligature_id
simple id generator for a ligature
get_active_scopes
return the currently activated named scopes
get_binding_names
Snapshot of all registered (name, ext) binding pairs across all dispatchers. Used by find_file(notex=true) to detect compiled-binding existence regardless of extension (cls/sty/def/pool/code.tex/…).
get_bindings_dispatch
get_class_binding_names
Filtered view of get_binding_names() returning ONLY class names (without .cls suffix). Used by load_class for Perl’s prefix-match fallback (Package.pm L2702-2706). Returns a flat Vec<&str> rather than per-crate slices — callers that need to preserve crate boundaries should iterate get_binding_names() directly.
get_extra_bindings_dispatch
get_frame_depth
Determine depth of group nesting.
get_graphics_paths
Mirror Perl’s LookupValue('GRAPHICSPATHS') — a list value that all \graphicspath, \svgpath, initial source-directory prepends, and image_candidates consult. Always return as Vec<String> even if the value was stored as Strings (initial assignValue) or VecDequeStored (after any push/unshift).
get_indirect_model_relationship
get_input_encoding
get_known_scopes
return all known named scopes
get_label_mapping_hook
get_nomathparse_flag
get_prefix
gets the current value of a named prefix
get_prefix_sym
get_prefix with a pre-pinned SymStr key (see crate::pin!) — for the per-\def prefix probes in Expandable::new and friends.
get_search_paths
Read SEARCHPATHS from the group-scoped value table (Perl LookupValue('SEARCHPATHS')). Mirrors get_graphics_paths: the list is a group-scoped value, not a plain field, so an \import/\subimport group reverts its change at } and a package’s global add persists.
get_staged_snapshot
Retrieve a previously staged snapshot, if present.
get_tag_property
graphics_paths_contains
Zero-alloc membership test for GRAPHICSPATHS. Mirrors the Perl idiom grep { $_ eq $dir } @{ $state->lookupValue('GRAPHICSPATHS') } but without allocating an owned Vec<String> for a single boolean — the interned-symbol with/with2 family resolves each path in place.
graphics_paths_push_front
Mirror Perl’s $state->unshiftValue(GRAPHICSPATHS => $dir). Used by Core.pm-style source-directory prepends.
has_indirect_model
has_meaning
has_meaning_key
Whether the meaning key key (a meaning_key) is bound now.
has_search_paths
has_tex_prefixes
Whether one of TeX’s own prefixes (\global, \long, \outer, \protected) is waiting for its command. LaTeXML’s internal prefixes (the algorithm2e binding’s didpar) are not TeX’s and keep Perl’s clearing.
has_value
Check if the Value table contains a given key
has_value_sym
Sym-keyed variant of has_value — avoids the per-call arena::pin(key).
hoist_top_frame_conditional_delta
Hoist the conditionals installed at the topmost frame since pre_snapshot was taken to GLOBAL scope: for a package loaded inside a LaTeXML subfile bracket (require_package, OXIDIZED_DESIGN #65). Idempotent: keys already in pre_snapshot are skipped, re-bound or not, so a conditional the child’s own preamble set stays the child’s.
hoist_top_frame_package_load
Hoist what an autoloaded package installed at the topmost frame since pre was taken — its meanings and its values — to GLOBAL scope. The trigger (def_autoload, OmniBus’s \lx@late@usepackage, the LaTeX-pool autoload) is cleared and the package’s loaded-flag set globally, so what the package defines must live as long. Fired inside a group, natbib’s locked \citep was otherwise popped while its lock survived, every later \citep undefined (arXiv 2605.08349, 2605.10423, 2605.14513, 2605.04028: Fatal:TooManyErrors), and its citation style reverted after the group. A meaning the group had bound before the load and the load re-bound there goes too (the frame’s count stays 1, a local assignment replacing its binding: State.pm:169-174): natbib’s \let\bibitem\lx@nat@bibitem, loaded by OmniBus’s hook in a thebibliography that had armed \bibitem, was popped at the list’s end, and the next list’s \bibitem ran the hook forever (arXiv 2006.04387, KNOWN_PERL_ERRORS #1367). A value the group had bound stays the group’s: those are its own machinery (the mode, the font, the list’s registers).
if_count
The conditionals counted so far (State::if_count).
if_limit
Perl $LaTeXML::IF_LIMIT: the runaway ceiling on conditional ids (0 = unlimited), set by latexml.sty’s iflimit option.
if_stack_depth
The number of active conditionals.
if_stack_snapshot
The active conditionals, each with its state as it is now, for restore_if_stack to put back.
input_stream_to_change
The input stream stored under key (\\openin’s), to read it or close it: a mouth changes in place, so under an open assignment journal the first one to change it works on a copy of its own, in the stream’s place, and a rollback gives the document’s back where it stood. A \\read in a rehearsal (a frontmatter field, a title page) took the document’s next line.
install_definition
A shorthand for installing definitions
install_undefined_error_constructor
Install a Constructor for token whose sole effect at digestion time is to emit <ltx:ERROR class='undefined'>content</ltx:ERROR> (the Rust equivalent of Perl Document::makeError). It logs NOTHING — the caller is responsible for the Error!/note_status. Mirrors the make_error constructor that generate_error_stub installs for undefined commands, so undefined environments (\begin{undefinedenv}) leave the same visible <ltx:ERROR> marker as Perl instead of silently vanishing from the output. Like that stub, it installs past a lock (past_the_lock, below).
internal_register_value
The value the engine’s own parameter holds at its fixed address, the register’s name (Perl Register.pm:52-56), whatever the name now means: pdfTeX reads every_eof, show_stream, err_help from eqtb, so after \def\everyeof{E} or \let\everyeof\toks0 too. None while never assigned (the caller’s default).
is_allocated_register_address
Whether address is a slot of a primitive register bank — \count<n>, \dimen<n>, \skip<n>, \muskip<n>, \toks<n>, \box<n> — i.e. what \newdimen & co. allocate (tex.web §1224), as opposed to a register named after its own (or another) control sequence.
is_binding_extension
true when at least one registered binding declares ext as its extension. Used by \input’s heuristic to decide whether \input{name.<ext>} should consult the binding registry — e.g. .sty, .cls, .def, .pool, code.tex are all valid binding extensions, while .eps, .png, .bib are not. Matches by extension only (the name is checked separately by dispatch()’s exact lookup).
is_definition_locked
Whether token’s definition is locked while state is not unlocked, so install_definition drops a redefinition.
is_dont_expandable
Whether token is affected by \noexpand
is_error_stub
Was token stubbed as <ltx:ERROR/> by generate_error_stub? Probe only: the flag key is interned when the stub is made, so an unknown name costs no arena entry (the :locked probe’s discipline).
is_fallback_meaning
Is token’s current meaning a fallback class’s guess (DefinitionOrigin::Fallback), a kernel stub (DefinitionOrigin::Stub) or a borrowed package’s (DefinitionOrigin::Borrowed), which a document’s own \newcommand may replace?
is_name_locked
Whether the control sequence named cs is locked while state is not unlocked: against every definition ("{cs}:locked"), or against those the class and package files make ("{cs}:locked@files"), which leaves the document free to define it, as LaTeX and Perl do (the kernel minipage: sect12.rs, OXIDIZED_DESIGN_DIVERGENCES #453).
is_ptex_kanji_letter
K12 — pTeX’s control-word letters. pTeX/upTeX give every non-ASCII code point a kcatcode (upTeX manual §kcatcode: 16 kanji, 17 kana, 18 other kchar, 19 hangul, 20 modifier; ASCII is always Latin), and a control word after \ extends over kanji, kana (and, upTeX, hangul/modifier) characters — \if西暦 is one control sequence (jsarticle.cls:1927 \newif\if西暦, ptex-manual \黄マーカー); kcatcode 18 (symbols, fullwidth punctuation) ends it, and Latin-1/Greek/Cyrillic stay inputenc bytes (kcatcode 15), so this is the block set of the kanji/kana/hangul kcatcodes, not the Unicode letter class. Under PTEX_PROFILE (set by \NeedsTeXFormat{pLaTeX2e} / {upLaTeX2e}) these default to LETTER, as the LuaTeX profile letters the L/M class; under pdfTeX they stay OTHER, where both LaTeXML engines let \newif\if西暦’s bare \if to \iffalse and every \if after it fails.
is_scope_active
Is the named scope currently active? See scope_active_in for why this is a front-value test and not a presence test, and subfile_scope_at_depth for the region marker it supports.
is_serializable
Check whether a Stored value can be serialized for the kernel dump. Values containing closures (Primitive, Constructor, Conditional, etc.) cannot be serialized — they come from Rust engine code, not the dump. This matches Perl’s DumpFile which only serializes Expandable macros.
is_token_register
Does the control sequence cs mean a token register (\newtoks, \toks@)?
is_unicode_letter_or_mark
General_Category L ∪ M, the set load-unicode-data.tex letters. is_alphabetic also admits Nl (Roman numerals), which the kernel leaves OTHER; combining marks (M) are added explicitly.
is_value_bound
Was name bound? If frame is given, check only whether it is bound in that frame (0 is the topmost).
journal_box_dimension
Note for an open assignment journal that the box in the register key is about to have its dimension property set (\\wd, \\ht, \\dp): a property of the box itself, which no binding’s value holds. Also ends the watch held (watch_state).
keep_binding_aside_before_class
lock_waits_for_class for definition of token at scope (None for an environment’s end half, which follows its begin half), which the lock would refuse. The binding it displaces is read once, for the value test and for the aside: the one kept aside already, else the one a clearing \let set aside ("{cs}:locked@cleared") when the name is cleared, else the meaning (outside every group, for a global definition). A value for a binding that owns its calls does not wait: the binding is back in place for OXIDIZED_DESIGN #500’s call owner, and the value stands past the class (\let\title\undefined or \def\title#1{…}, then \def\title{On Widgets}). A definition local to a group keeps nothing aside, since the group’s end undoes it (\begingroup\let\LaTeX\mylogo \def\LaTeX{X}\endgroup). Otherwise the binding is kept aside (once per name) for locks_take_hold to put back, with one Info:lock.
keeping_load_records
Run read, a read of file that must not use it up (colordvi’s of dvipsnam.def), and put file’s load records back as they were.
leave_copy_provides_frame
End the frame enter_copy_provides_frame began: each name the copy’s code redefined, and the binding owns, takes back the meaning kept aside, and the copy’s own is kept for its next frame (a hook it registered).
let_definition
A binding’s \let (Let!): let_i, unless a provide-only load declines it (provide_only_declines). TeX’s own \let and \futurelet are let_i.
let_i
load_recorded
Has the loader recorded a load of file: its binding’s or a stand-in’s (<file>_loaded) or its raw TeX’s (raw_loaded)? The loader’s own question (Package.pm:2328-2330, :2363; DefAutoload, :1096), not LaTeX’s (file_loaded): it says whether the definitions were read here, and a binding clears it to be read again.
local_binding_file
The binding file a user supplied for request in the local search paths, which the chain loads instead of any compiled binding of that name (#947); None without one, or where runtime bindings are not built in.
lock_holds_against
name_carries_lock for a known redefinition: copies_interface tells whether it takes an optional argument first with a default (takes_optional_first), which a lock against the files that holds only against copies of the binding’s interface (files_lock_holds) reads.
lock_waits_for_class
Whether a lock waits for the class declaration (DG D-49, OXIDIZED_DESIGN_DIVERGENCES #1195): a LaTeX-route document’s own definition made before \documentclass/\documentstyle goes through, since a class’s bindings arrive with the class (Perl’s timeline: the author’s meaning until the class pool loads, the binding after); a definition after the class stays refused. The Colli/Gilardi/Sprekels header \def\LaTeX{\let\Begin\begin\let\End\end\let\salta\relax}\LaTeX (1307.1572, 0902.4741, 1103.4585) runs before its class, after the preload has loaded the format with its locked \LaTeX. Not in a format build (--init), which reads plain.tex at the document’s origin and has no class declaration.
locked_binding_token
\lx@locked@<cs>: where a document’s override of the locked cs keeps the binding that handles its calls (install_definition). The binding object itself, so its reversion still names cs.
locked_control_sequences
Every control sequence carrying a "{cs}:locked" lock, sorted: for the census of which own their calls (owns_calls).
locks_take_hold
The class declaration (\documentclass, \documentstyle; \begin{document} without one): the locks hold from here on, and every binding a definition before it displaced (keep_binding_aside_before_class) is back in place.
lookup_alignment
lookup_bool
A bit of Perl “existence as truth” semantics mixed in with proper boolean lookup
lookup_bool_sym
lookup_bool variant for hot call sites with a pre-pinned SymStr (see crate::pin!). Skips the per-call arena::pin(key) hash lookup — significant on every-expansion hot paths. SymStr is a u32 wrapper (Copy), so it passes by value — no borrow overhead.
lookup_catcode
Lookup & assign a character’s Catcode
lookup_conditional
lookup_definition
used for expansion & various queries Since we’re not doing digestion here, we don’t need to handle mathactive, nor cs let to executable tokens This returns a definition object, or undef
lookup_definition_stored
Returns a definition as Stored so that one can call .read_arguments
lookup_delcode
like lookup_catcode but targets Delcode and its table
lookup_digestable_definition
Recognizes mathactive tokens in math mode and also looks for cs that have been let to other `executable’ tokens. Returns a definition object, or a “self inserting” token. Used for digestion.
lookup_dimension
a variant of lookup_value that casts the value into Dimension
lookup_dimension_cs
Faithful port of Perl LookupDimension (Package.pm L1371-1393, as widened by upstream PR #2829): try to turn the argument into a Dimension, recognizing strings, registers, ….
lookup_expandable
lookup_float
a variant of lookup_value that casts the value into Float
lookup_font
convenience method to lookup the current value at the “font” key
lookup_glue
a variant of lookup_value that only recognizes a Stored::Glue
lookup_int
like lookup_value but only recognizes Int, Bool and Number variants of Stored (default: 0)
lookup_int_sym
lookup_int variant for hot call sites with a pre-pinned SymStr (see crate::pin!). Skips the per-call arena::pin(key) hash lookup — the sibling of lookup_bool_sym.
lookup_lccode
like lookup_catcode but targets Lccode and its table
lookup_mapping
lookup_mapping_sym
Sym-keyed variant — skip the per-call arena::pin(map) for hot callers with a pre-pinned map key (e.g. via pin!("siunitx_macros")).
lookup_mathcode
like lookup_catcode but targets Mathcode and its table
lookup_mathcode_sym
lookup_mathfont
convenience method to lookup the current value at the “mathfont” key
lookup_meaning
Get the “Meaning” of a token.
lookup_mode
The current MODE, for the mode tests on every digested token: compare with pin!("horizontal"), or use mode_ends_with.
lookup_muglue
a variant of lookup_value that only recognizes a Stored::Glue
lookup_number
a variant of lookup_value that casts the value into Number
lookup_register
lookup_register_definition
A specialized version of lookup_definition for registers, since we can’t adequately perform multi-dispatch when we have a “Self: Sized” for the Definition trait object.
lookup_register_quiet
Quiet sibling of lookup_register for call sites that mirror Perl’s explicit lookupDefinition(cs) && $defn->isRegister ? $defn->valueOf : <default> guard — e.g. TeX_Tables \lx@text@intercol/\lx@math@intercol (TeX_Tables.pool.ltxml L639/L646), where a document may legitimately \renewcommand a length register (\tabcolsep/\arraycolsep) into a plain macro. In that case the register-ness is genuinely gone in Perl too, and Perl silently falls back to its default (Dimension(0)) with no warning. Returns None (no warning) when the CS is undefined or is not a register, so the caller can apply its own faithful default.
lookup_register_token
Token-keyed variant of lookup_register — saves the per-call T_CS!(&str) pin for hot callers with a cached CS token.
lookup_sfcode
like lookup_catcode but targets Sfcode and its table
lookup_string
like lookup_value, but casts the entry into a String (empty if None)
lookup_string_from_sym
lookup_string variant using a pre-pinned SymStr key.
lookup_string_sym
like lookup_value, but casts the entry into a SymStr from the string interner (pin!("") if None)
lookup_string_sym_from_sym
lookup_string_from_sym’s value as its interned symbol (pin!("") when unset), without the String.
lookup_token
a variant of lookup_value that only recognizes a Stored::Token
lookup_token_sym
a variant of lookup_token taking an already-pinned SymStr key — avoids the per-call arena::pin(key) hash lookup.
lookup_tokens
a variant of lookup_value that casts the response into Tokens
lookup_uccode
like lookup_catcode but targets Uccode and its table
lookup_value
The value bound to key, or None when nothing is bound — Perl’s LookupValue.
lookup_vecdeque
like lookup_value but only recognizes Stored::VecDequeStored
mark_loaded
Record file loaded for a binding that stands in for it (thmtools for thm-patch.sty, aipproc for aipxfm.sty), as the original’s own load does: the loader’s record, so a later request is a no-op, and \ver@<file> (\fmtversion, Package.pm:2343) unless the file is marked already.
mark_unloaded
Mark file (amsthm.sty) as not loaded, globally: its <file>_loaded, the .ltxml_loaded twin, the raw load’s _raw_loaded and _load_attempted are cleared and the kernel’s \ver@<file> and \opt@<file> are undefined, so \@ifpackageloaded is false, no option clash is checked, and a later \usepackage/\RequirePackage loads it again — the binding and the raw file it reads. The definitions it made stay in force. Used when a load provided only part of a file (end_provide_only) and for a binding’s borrowed package and the files it loaded (binding::content::require_package_borrowed).
meaning_is_group_local
Whether the current meaning of token was made inside a group open now, so it is gone once that group closes — whether or not a meaning stands outside it (a global assignment clears the counts of the open groups’ frames). A binding that queues what it reads to digest later (the frontmatter API) loses such a meaning: aistats’s \aistatsaddress prints in place inside \twocolumn[…], where 1302.5348 defines \newcommand{\UMDAddress}{…} just before it, and where a paper may renew a macro it defined globally (77o review probe g_globlocal: pdflatex prints the local meaning).
meaning_key
The key under which a token’s meaning is stored. All \special_relax-family tokens (\noexpand’d forms — the bare \special_relax and every \special_relax\x01<shadowed>) resolve under the bare \special_relax name: they share its \relax meaning, faithful to TeX where a \noexpand’d token has relax meaning regardless of which token it shadows. The shadowed identity is recovered separately via Token::noexpand_shadowed (delimited matching only). Use this anywhere a token’s name keys a meaning lookup or a “same control sequence?” comparison. Cheap on the common path: non-CS tokens short-circuit before any string access.
meaning_log_is_empty
Whether the meaning log (begin_meaning_log) holds nothing since it was last read.
mode_ends_with
Whether the current MODE ends with suffix (Perl’s lookupValue('MODE') =~ /vertical$/).
name_carries_lock
Whether the control sequence named cs carries a lock (is_name_locked’s two), read as a value whatever the unlocked state: Perl’s \newenvironment/\renewenvironment test LookupValue('\name:locked') directly (latex_constructs.pool.ltxml:2787-2803), so a class’s \renewenvironment{thebibliography} that a binding’s hook runs unlocked (as Perl runs before/after-digest code, Primitive.pm:44/:52) still leaves the locked environment alone (wiley2sp’s w2sp-pss.clo:444 in \AtEndOfClass: 100 of run 336’s PushbackLimit papers, 0710.1676, 0809.3379; ptptex: 0706.0316).
new_copy_provides_record
Number a new stand-in copy of file for note_copy_provides_assignment (1-based, crate::definition::origin::copy_provides); routed: its \Provides line routed it to binding (OXIDIZED_DESIGN_DIVERGENCES #731 rule 12).
next_absorb_id
Perl Object.pm:163-168: bump the global absorb counter and return it (see State::absorb_count).
next_copy_provides_id
The number the next stand-in copy gets (new_copy_provides_record).
next_if_id
Perl Conditional.pm:61-62: bump the global conditional counter and return the new id for the IfFrame (see State::if_count).
note_copy_base_classes
Name classes among the base classes of the stand-in copy id (CopyProvidesRecord::loads_classes): the classes its binding loaded, which stand for the class the copy’s own \LoadClass named (binding::content binding_base_class_stands_for).
note_copy_provides_assignment
“A stand-in’s copy provides” (OXIDIZED_DESIGN_DIVERGENCES #731): note this assignment of token’s meaning, made while the paper’s copy of an author file is read after the binding that stands in for it (binding::content::read_stand_in_copy), or while the \AtEndOfClass/\AtEndOfPackage code it registered runs at the end of that load (copy_provides_wrap). Every assignment of a meaning goes through here — TeX’s \def family, \let, \futurelet, \chardef and the \countdef family, and the LaTeX declarators (\newcommand, \renewcommand, \DeclareRobustCommand, \newenvironment, \newcounter, \newif, \newtheorem, \newlength…), at install_definition and assign_meaning. One of a name LaTeXML’s semantic layer owns (owned_by_the_semantic_layer; an environment {X} is owned when \begin{X}, \X or \endX is) holds only inside the copy’s own code: the binding’s meaning is kept aside and put back when the copy’s read ends (leave_copy_provides_frame), so for the document the definition acted as \providecommand does, while the copy’s load-time logic sees what it defined, as in TeX: aipproc.cls:559 \ifnum\pageref>0 after its option’s \chardef\pageref (astro-ph0105128); epl2.cls:1317-1318’s \let\epl@org@bibitem\bibitem before its \def\bibitem, which the epl binding makes too (a kept \let would take the binding’s wrapper for the original, and \bibitem would call itself: 0906.2627, 1102.2776, 1203.4765). Every other assignment stands as TeX makes it: an undefined name (the copy’s extras), a raw kernel name, an earlier raw file’s or the document’s, a stub or borrow. Not while the state is unlocked (a binding’s before/after code, an AddToMacro! append), nor for a locked name, which install_definition refuses first (copy_provides_refuses_locked). Each name kept for the binding is logged once per copy, at Info.
note_copy_provides_title_page
Keep a stand-in copy’s own title page (\maketitle, \@maketitle), defined while it is read (install_definition, \newcommand’s refusal), whether the binding’s lock refuses it or the overlay holds it: what it prints decides which of the copy’s setter defaults the document shows (frontmatter_stores::copy_title_page_prints, latexml_engine).
note_document_call
A macro of LaTeXML’s own read its arguments args from the document’s text (Expandable::invoke, while crate::definition::origin::document_call_watch): kept while its expansion is read, the calls whose expansions ended dropped. An argument-less call is not kept.
note_dropped_argument
A binding’s macro cs dropped its required argument argument — its token body never names it, nor does the binding declare it dropped by design (Expandable::dropped_by_design) — while a frontmatter entry the document gave is digested (Expandable::invoke, while crate::definition::origin::dropped_argument_watch): kept for the title-page check (latexml_engine title_page_check, jmlr’s \titletag). A blank argument is not kept.
note_redefined
A lock dropped a definition of token: <cs>:redefined, and whose code made it, <cs>:redefined@class (a class file’s load, the packages it loads included: ClassLoadFrame) or <cs>:redefined@document (the document’s, a package’s it loads). A document’s by-meaning wrapper of the class’s \maketitle (\let\oldmt\maketitle \renewcommand\maketitle{\oldmt}) leaves the class’s own title page in force (latex_constructs:: title_marks_unknown, OD #1053). A format file’s drops (latex.ltx over the plain pool’s \newif) are neither’s.
note_setter_call
A macro cs is called (Expandable::invoke, while crate::definition::origin::setter_watch): a watched setter called outside a stand-in copy’s read is the document’s (or its binding’s) call, <cs>:called, whatever its arguments — \author{} as much as \author{Jane Doe}, which a binding’s accumulating \author (inst_support’s) does not queue nor clear.
note_stand_in_file
A stand-in binding’s own code loads file, or makes file’s binding’s definitions as code without loading it (svjour3_cls.rs over svjour’s, jhep_cls.rs jhep_definitions): a file it is built on (State::stand_in_load_files), not marked loaded.
note_store_call
A setter a raw class or a raw file of the document’s own directory made was called while the document’s text is read (Expandable::invoke, while crate::definition::origin::store_call_watch): its stored arguments args, and those keys optional or in brackets, kept for the title-page check’s third source (latexml_engine title_page_check::digest_raw_setter_calls); a replacing setter’s earlier call is superseded by this one, as its store is.
open_class_load_classes
The classes the stand-in binding’s load loaded — its base class — for the copy read now (ClassLoadRecord::classes). While the copy’s own code runs, the classes of the class load open now; inside a class the copy’s own \LoadClass loaded (a shipped mybase.cls between the copy and a TeX Live class), the classes loaded when the copy’s first class load began (State::copy_class_loads), so a class mybase.cls \LoadClasses meets the binding’s base class too, not the empty class load of mybase.cls (72a review r7 NIT 8; guard perfect_kernel_batchint23::a_shipped_intermediate_class_meets_the_class_slot).
open_copy_class_load
The stand-in copy whose own \LoadClass is open now, if any (ClassLoadFrame).
opened_sources_snapshot
Snapshot of the opened-sources read-log (see record_opened_source).
owns_calls
Whether the locked binding of cs owns its calls, so that the document’s own definition of cs takes its other uses (install_definition): its signature reads a braced argument — its first mandatory parameter is one of BRACED_ARGUMENT_TYPES, after optional ones only (\text{}, \title[]{}, \cite OptionalMatch:* [][] Semiverbatim) — or it is itself such an override (a loop redefining it on every iteration). Derived from the binding’s own parameter list; a binding that reads its argument downstream (\section’s \@startsection, \footnote, \url) or none (\maketitle) stays absolutely locked. So does the machinery (user ruling 2026-10-11: the machinery stays absolutely locked): LaTeX’s internal namespace, a name with @, which LaTeX’s convention keeps out of a document’s reach until \makeatletter (clsguide.tex:187, latex.ltx:1797). Its locks keep LaTeXML’s engine model against code that re-implements it (\alloc@{}{}{}{}{}, called \alloc@0\count\countdef\insc@unt; \@startsection, \@caption, \@lbibitem).
package_loaded
\@ifpackageloaded{name} (file_loaded).
pdf_driver_option
Whether the document is a pdflatex one by its class options (set_pdf_driver_option).
plain_tex_document
Whether the document being converted is a plain TeX one (set_plain_tex_document): latexml.sty’s preload must not load the LaTeX format for it.
pop_daemon_frame
pop_frame
Ends the current level of grouping. Note that this is lower level than \egroup;
pop_if_frame
Perl shiftValue('if_stack'): close the innermost active conditional.
pop_value
pops the last value in a named Stored::VecDequeStored queue, if any
provide_only_declines
Does a provide-only load (ProvideOnlyGuard) decline this definition of token? While the guard lives, a binding’s definition (DefinitionOrigin::Binding, Fallback or Borrowed: OmniBus and every binding it requires, inst_support’s \author[]{} and epsf’s \epsfbox among them) is declined when the name was defined before the guard: defined now in the \providecommand sense (latex.ltx \@ifundefined: a meaning other than \relax, binding::def::dialect::is_defined_token), not a fallback guess (is_fallback_meaning), and not assigned since the guard began (provide_only_assigned: the load’s own names, which it may define again — OmniBus’s \keywords{} before its \keywords that also opens {keywords}). An environment \begin{X}/\end{X} counts as defined when \X is (latex.ltx \begin runs \X), and \end{X} also when \endX is. The binding definers (def_macro, def_primitive, def_constructor, def_register, def_conditional, def_environment, def_math) and Let! consult it before they assign anything; TeX’s own \def/\let do not, so TeX code run during the load keeps its usual effect (a hook appended to, a scratch macro), nor does the loader’s bookkeeping, made at its caller’s origin. A macro marked extends (it wraps and delegates to the name’s current meaning) is not declined.
push_daemon_frame
push_digested
Appends a digested box to the Stored::VecDigested list under key, creating the list globally when missing (as push_tokens, Perl pushValue, State.pm:218-223).
push_frame
push_if_frame
Perl unshiftValue('if_stack', …) (Conditional.pm:63): open a conditional (see State::if_stack).
push_pending_resource
push_tokens
Pushes Tokens into a Stored::Tokens value when defined, or assigns when new.
push_value
manage a (global) list of values
raw_loaded
Was file’s raw TeX read (<file>_raw_loaded, OXIDIZED_DESIGN #23)?
rebind_let_copies
Re-point every \let copy of cs’s current definition — any other meaning bound to that very definition (the same Rc: taken while it was in force, and not redefined since) — to new. Each binding is replaced in place, so a copy keeps its scope: a local copy stays local, and one a group shadows is new again when the group ends. Returns how many bindings were re-pointed; cs itself is left to the caller, which installs new for it. For a definition TeX treats as fixed before any code runs but installed late here: the job’s \jobname (core_interface::install_jobname).
record_opened_source
Record a named source in the opened-sources read-log. Called from Mouth::create for file and cached-content mouths — a cold path (one call per file open, not per token).
record_redefined_default
Record the default of the optional argument a refused redefinition of token takes first, as "{cs}:redefined@default" ([1][\proofname]), for the locked binding to title its own use with — only under a lock that holds only against copies (copies_lock), whose binding reads it.
remove_error_stub
Undo generate_error_stub: token (and a stubbed \ifX’s \Xtrue/\Xfalse) is undefined again. A discarded crate::util::logger::DiagnosticsHold takes back its scope’s errors and the stubs standing in for them, so the document’s own later use of the command reports it.
remove_meaning_global
Remove a token’s meaning entirely — the token becomes undefined, as if it had never been defined, so a later use takes the normal undefined-CS error path naming the token itself. Bypasses the group-undo journal: intended ONLY for format-bootstrap time (no user groups open), where a format layer retracts a definition inherited from a lower layer that the emulated format must not expose (e.g. plain.tex’s \+ in a LaTeX session — real LaTeX is INITEX-based and never defines it).
remove_value
inline lookup_value after which globally assign an empty Tokens() to undo
remove_value_sym
remove_value variant for hot call sites with a pre-pinned SymStr (see crate::pin!) — added for after_assignment, which fires on every \def/\let/register assignment.
remove_vecdeque
replace_value_in_frame
Replaces the value key has in stack frame frame (0 = innermost), which must have bound it; returns the value it had there, None when the frame made no binding of key (and nothing is changed).
reset_document_calls
Forget the document calls (note_document_call): a conversion’s start.
reset_pending_resources
reset_provide_only_assigned
Begin a provide-only load: no name assigned in it yet.
reset_thread_state
Free every definition/register/box this thread accumulated, returning all three State singletons (STATE, STD_STATE, STY_STATE) to a fresh, empty baseline and the rotation to Main.
restore_if_stack
Put the active conditionals back as if_stack_snapshot took them: the frames it held, their state as it was — those a run opened dropped, those it closed (a \fi of its own matching one opened before it) open again.
restore_pushed
Make value the list under key again, in place: what take_pushed took, the list built since dropped.
robust_inner
The inner \cs␣ that the robust command cs wraps (its meaning the parameterless \protect \cs␣: \DeclareRobustCommand, a binding’s robust => true, let_i’s copy of either), whose definition takes the arguments; None for any other meaning.
routed_copy_text_name_yields
Does a routed copy, read now, \newcommand (or \providecommand) a declared text name (copy_text_name_declared) that LaTeXML’s code defined (owned as rule 1 tells, owned_by_the_semantic_layer) and no base class the copy \LoadClasses defines? Then the declaration defines it, as the real class’s first definition (proto.cls:798’s \abstractname, :1731 \newcommand\apj{\ref@jnl{\it Astrophys.\ J.}} over the aas_macros binding’s “ApJ”, 1402.7103; OXIDIZED_DESIGN_DIVERGENCES #731 rule 14); a name the copy’s base class has is LaTeX’s “already defined”, as before. Whether its definition stands for the document is decided when the copy’s read ends (leave_copy_provides_frame, copy_text_refusal).
search_paths_push_front
Global prepend (Perl UnshiftValue(SEARCHPATHS)) — a persistent search dir.
set_absorb_limit
Set absorb_limit (Perl latexml.sty.ltxml:104).
set_bindings_dispatch
set_dvi_driver_option
Records whether the main file’s \documentclass names a DVI driver option (dvips, dvipdfmx, …) and the file sets no \pdfoutput=1: the document is a latex+dvips one (the K6 ruling’s DVI cue, stream F).
set_extra_bindings_dispatch
set_figure_output_cue
Records the output-mode cue of the figures the document’s source includes (FigureOutputCue); set per conversion before the session’s preloads load.
set_font_parameter
Set \fontdimen<p> of the font whose array is stored under key; a parameter past its end grows it with zeros (TeX_Fonts.pool.ltxml:138-146, tex.web §580), and a font without one gets an array of its own — as TeX’s \nullfont has parameters, where Perl’s setter does nothing for a font without data (:141). Written in place and so global, as every font parameter assignment is (tex.web §1253): the array is created unbound by any group, whatever \globaldefs. Returns false, assigning nothing, for parameter 0 or one past TeX’s font memory (font::FONT_MEM_SIZE).
set_if_count
Put if_count back: a discarded run the read budget ended counts against no limit (latexml_engine sect05.rs speculative_run_read).
set_if_limit
Set if_limit (Perl latexml.sty.ltxml:101).
set_indirect_model
set_input_encoding
set_label_mapping_hook
set_local_binding_finder
set_nomathparse_flag
set_pdf_driver_option
Records whether the main file’s \documentclass names the pdftex driver option: the document is a pdflatex one, whatever PostScript files it also ships (the K6 ruling’s PDF cue, mirroring set_dvi_driver_option).
set_plain_tex_document
Records whether the document about to be converted is a plain TeX one, by arXiv AutoTeX’s test (its main file, or a file a cue-less main file inputs, names neither \documentclass, \documentstyle nor \begin{document} before an \endinput); set per conversion before the session’s preloads load (latexml::converter::Converter::note_main_source).
set_prefix
Set one of the definition prefixes global, etc (only global matters!)
set_search_paths
Replace SEARCHPATHS GLOBALLY (Perl AssignValue(SEARCHPATHS => [...], 'global')). For the local-by-default \import scoping, use set_search_paths_local.
set_search_paths_local
Replace SEARCHPATHS in the CURRENT group only (Perl AssignValue(SEARCHPATHS => [...]) default-local): reverted when the enclosing \import/\subimport group closes. This is what makes import.sty faithful without an explicit save/restore stack.
set_source_date_epoch
Records the date of the document’s source (Unix seconds, UTC): the newest modification time among the TeX source files of the bundle it came in (Config::source_date_epoch), None when the source carries none; set per conversion before the session’s preloads load. ar5iv’s archival preload reads it as the job’s clock.
set_source_map_flag
set_state
setter_call_is_observed
Would note_setter_call observe a call of cs? Without the observation, for a native reader that declines such a call to whoever then makes it.
setter_called
Was the watched setter cs called outside a stand-in copy’s read (note_setter_call)?
shift_value
shrink_thread_state
Empty this thread’s three States to zero-capacity tables, for a thread about to exit (latexml_core::shrink_thread_engine): they are leaked roots, so what they hold outlives the thread.
snapshot_top_frame_keys
snapshot_top_frame_meaning_keys
Snapshot of the keys currently bound at the topmost (calling) undo frame for the Meaning table. Used by Perl-style autoload triggers that need to promote everything a package’s load just installed at this scope to GLOBAL — without that promotion, sibling autoload triggers fired AFTER a group pop would re-fire on a now-undefined sibling CS (the canonical case is \begin{subequations} triggering amsmath autoload at depth=N, then a later \begin{align} at depth=0 finding \align undefined because amsmath’s depth=N install was popped on \end{subequations}).
source_date_epoch
The date of the document’s source (set_source_date_epoch).
source_map_enabled
Whether source-locator (--source-map) tracking + emission is on. Read by the source-provenance machinery (mouth token-start capture, Document::absorb data-sourcepos stamping) to stay zero-cost when off. See docs/performance/SOURCE_PROVENANCE.md.
source_table_snapshot
Snapshot of the sources table (index = tag) for emitting the document-level tag→file header.
source_tag
Find-or-append a source file in the document-level sources table, returning its integer tag (index). The per-element data-sourcepos attribute carries this compact integer rather than a path — the Source-Map-v3 sources convention (compact + anonymisable). Only called on the source-map path. See docs/performance/SOURCE_PROVENANCE.md §0.1.
stage_snapshot
Take a snapshot now and store it under a named key for later retrieval. Intended for phased engine init (e.g. stage_snapshot("bootstrap") called right after latex_bootstrap has loaded).
stage_snapshot_value
Stage an already-taken snapshot under a named key. Used by callers (like ini_tex) that want to snapshot at a specific point without waiting for a pool hook.
stand_in_built_on
The files the stand-in binding loaded last loaded from its own code (State::stand_in_last_files).
stand_in_copy_meaning
The meaning the latest stand-in copy of file (a file name, NJDnatbib.sty) gave token in its own code: its overlaid version of a name its binding owns, if the copy redefined it (note_copy_provides_assignment). For a binding’s code that runs after its copy (\AtEndOfPackage), to tell the copy’s version by what it defined.
stand_in_last_load_names
Every name the latest stand-in binding’s own code assigned (State::stand_in_last_load).
stand_in_public_names
The public names (letters only: no @) the latest stand-in binding’s own code assigned (State::stand_in_last_load).
standard_class_binding_name
Is token a text name the standard class’s binding assigned in its own load, which a derivative of that class read now defines itself (binding::content::standard_class_binding_assigned, OXIDIZED_DESIGN_DIVERGENCES #731 rule 13)? In TeX the derivative is read in the class’s place, so its \newcommand of the name is the first: aip-cp.cls:875 \newcommand\refname{REFERENCES} (1506.04050, 1604.08112). Only a declared text name yields (copy_text_name_declared: \refname, \figurename, \abstractname); every other name the binding defined stays its markup of the class — \appendix (<ltx:appendix>, article_cls.rs, book_cls.rs), book’s \frontmatter/\mainmatter/\backmatter (unnumbered chapters), whose \newcommands in a full class copy (hep-ex0405054’s book_modified.cls:531, math0301023’s khbook.cls:285; 0705.2210, hep-ph0008011, cond-mat0402505, quant-ph0409078) lost the appendices and numbered the preface; the caption formats (\fnum@table), \@ptsize, \@pnumwidth. Names a stand-in the derivative loads assigned are not the class’s (guard perfect_kernel_batch77w::standard_class_derivative_defines_only_its_class_names).
state_unchanged_since
Is the state unchanged since watch began (watch_state)?
subfile_scope_at_depth
Named scope bracketing a subfile LaTeXML included itself — a standalone child’s preamble, an \imported file. Real LaTeX has no group at either spot (standalone gobbles the child preamble; import restores its paths by plain \def after the \input), so a package loaded inside one is an artifact of LaTeXML executing what the real packages skip. Bindings that open such a bracket activate this scope; require_package reads it to decide whether a load must outlive the bracket. See OXIDIZED_DESIGN #65.
subfile_scope_here
The subfile scope for the CURRENT frame depth — what a bracket activates on opening, and what require_package tests before hoisting.
swap_copy_provides_hook_seam
Put lthooks’ code registration (\AddToHook code, the inner macro latex.ltx’s \AddToHook hands the hook name, label and code: \hook_gput_code:nnn{#1}{#2}{#3}) under \lx@copy@provides@AddToHook, which registers nothing (copy_provides_defers), while on — a stand-in’s copy is read — and back after. The kernel’s own meaning is kept as \lx@copy@provides@saved@AddToHook. No-op where the format has no hooks or no seam is defined.
swap_meaning_log
Exchange what the meaning log (begin_meaning_log) holds since it was last read with buffer, an empty one: a field token’s read of the log, so it allocates nothing.
take_dropped_arguments
The arguments binding macros dropped (note_dropped_argument) since the count from, taken; with from the count before them, for a nested watch.
take_pending_resources
take_pushed
Take the list push_tokens or push_digested has built under key, leaving it empty in place; None when there is none.
take_snapshot
Take a snapshot of the current State (for dump diff).
take_store_calls
The setter calls kept (note_store_call), taken: none are left, a new conversion’s or after a title page’s.
takes_optional_first
Whether a definition takes an optional argument first whose default is not empty — [1][\proofname] (amsthm.sty:431), [1][\thu@proof@name] (thuthesis.cls:4052): the shape of a copy of amsthm’s proof, whose optional argument is the head’s text and whose default the name, which a lock that holds only against copies reads (files_lock_holds). An empty default ([1][]) adds to a head of the file’s own (thmbox.sty:214 \proofname\ #1) or makes a command, not a proof environment (nccthm.sty:173 \newcommand*{\proof}[1][]).
top_frame_new_meanings
The meanings first made in the innermost group: the control sequences bound at the topmost frame and nowhere outside it (every binding they have is the frame’s), with their current binding (a key bound there to nothing is left out).
top_group_frames_meanings
The meanings the topmost n frames bind — new ones and changes to what an outer frame defined — that are plain groups ({…}, \begingroup): a frame an environment or a mode opened (it binds current_environment or MODE) is skipped, its bindings being that construct’s own machinery. Each key with the binding of the innermost such frame that binds it (a key bound there to nothing is left out). For a replayed environment begin code (sect05.rs replay_class_setter).
top_if_frame
The innermost active conditional, Perl LookupValue('if_stack')->[0].
try_assign_value_global
assign_value globally on the reporting path, where the state may be borrowed (as try_lookup_int): whether it was assigned.
try_lookup_int
lookup_int variant that never panics on a live mutable borrow.
try_lookup_string
try_lookup_int’s string counterpart: the string at key, None when it holds none or the state is borrowed.
unbind_value_in_frame
Undoes the bindings of key that stack frame frame (0 = innermost) made — what popping that frame would undo, for this key alone — and leaves the frames above it as they are.
undo_depth
Undo-stack depth (open TeX groups) — pass-1 streaming telemetry.
unicode_engine_profile
Whether the document’s engine persona is a Unicode engine: the luatex or xetex profile of latexml.sty. Both formats load load-unicode-data (latex.ltx:22071-22076), take \char code points above 255 natively and have no utf8.def byte model; the engine-identity probes stay per-profile.
unmark_loaded
Take back a binding’s load of file that its original does not make (revtex4_support’s hyperref, which revtex4-2.cls never loads): its record, so the document’s own request runs the binding again, and \ver@<file>, so \@ifpackageloaded is false until then. The definitions stay; the binding’s other records too (mark_unloaded clears them all).
unmarked_by_document
Has the document unloaded file (amsthm.sty), which a class binding marked loaded on its class’s behalf, by letting its \ver@<file> to \relax or \undefined? LaTeX’s loaded test is that macro (latex.ltx \@ifl@aded: \expandafter\ifx\csname ver@#2.#1\endcsname\relax, true for both), which a binding load defines (content.rs, Perl Package.pm:2326). The rule is narrow, as floatrow’s marks are (user ruling 2026-10-14: no general loader \ver@ rule; floatrow_sty.rs): only a file a binding recorded as <file>:class_marked — ams_support_sty.rs for amsart’s \@namedef{ver@amsthm.sty} (amsart.cls:41-42; amsproc, amsbook alike) — is so taken back; every other file keeps the loader’s own record. The amsart idiom is \expandafter\let\csname ver@amsthm.sty\endcsname\relax before \usepackage{amsthm} (1510.08833, 1704.05671, 1707.00258, 1611.00843, 2106.07418, 2304.10644). Perl’s loader reads only <file>_loaded (Package.pm:2327-2329), KNOWN_PERL_ERRORS #720.
unshift_value
use_main_state
use_std_state
use_sty_state
value_history
Starts a new level of grouping. Note that this is lower level than C<\bgroup>; Diagnostic helper: dump the keys in undo0’s value table. For temporary instrumentation only — no production callers should rely on this. The newest n values bound to key in the Value table, newest first — one entry per frame that bound it (LXML_TRACE_FRAMES group-stack dump).
value_in_frame
The value key has in stack frame frame (0 = innermost): Perl State.pm:280-286 valueInFrame, which skips the bindings the frames above it made.
warn_not_register
Perl LookupRegister/AssignRegister’s Warning (Package.pm:1367-1369, 1404-1405) on a cs that is not a register.
watch_meanings
Watch the meanings of the control sequences whose names select takes, from now on: any later assignment by a document, a raw file or a format file that changes the standing meaning of one, however local, is seen by watched_meaning_changed for the rest of the conversion; a new name has none to change. A native path that stands for a family of macros answers only while they are what it ports, at the cost of a test by two bytes per such assignment and none per use (latexml_engine l3fp_native).
watch_setters
Observe the calls of the setters names (State::watched_setters).
watch_state
Begin a watch on the state, ending the one held (the title-page reading’s key, latex_constructs::title_page_reading). Every write ends it (an assignment, a write in place, a box’s \wd, a group’s end restoring a value) but an lx… value’s; a rollback (AssignmentJournalGuard::rollback) puts back the watch it began with, with the state.
watched_meaning_changed
Has a meaning watch_meanings watches changed? The first that did.
with_build_floor
Run a build step (a fragment’s Document::absorb) that the streaming driver interleaves with digestion. Eager Rust and Perl build AFTER digestion, outside every group, so a constructor’s local assign_value (the aligning context’s ALIGNING_NODE, a frontmatter store, a counter) never pops; interleaved, the same binding lands in whichever digestion group is open at the seam and is popped at that group’s end — tikz-network under tufte-book streamed with a stale root-level aligning context re-exposed by \end{fullwidth}, stamping ltx_align_left on chapters 4-5 and the appendices. Bindings made at the depth the step began at are therefore global for the step; the frames the build itself pushes above that depth (collected environment frames) keep their local bindings and pop as in eager.
with_font_info
with_let
Let macro setter Run body with cs temporarily \let to target (local scope), then restore cs’s prior meaning — the {\let\cs\target …} idiom of latex.ltx (\protected@edef’s \let\protect\@unexpandable@protect, :1442) without a save-stack group, for a reader that must not open one. The prior meaning is restored whether or not body fails. A cs with no meaning is restored to none.
with_mapping
manage a (global) hash of values
with_mapping_keys
with_mapping_sym
with_meaning
Closure-based variant of lookup_meaning — avoids the per-call Stored::clone() when the caller only needs to inspect the meaning (e.g. extract a CS Token from an Expandable/Primitive definition). Stored::clone is ~1% of total instructions on siunitx-heavy fixtures (5M+ calls per run, each cloning a full Stored enum). This helper borrows the stored value instead.
with_pretended_load
Run read with file marked loaded in the current group, its record and \ver@<file>, where it is not loaded and not recorded (a recorded load the document unmarked keeps its record): cleveref’s binding reads cleveref.sty as if amsmath were loaded (Perl cleveref.sty.ltxml:23-27).
with_search_paths
with_stacked_values
with_stacked_values_sym
Sym-keyed variant of with_stacked_values.
with_tag_property
with_tag_property_mut
with_value
with_value_mut
with_value_sym
Sym-keyed variant of with_value — avoids the per-call arena::pin(key).
with_vecdeque
x_equals
XEquals check for two token arguments

Type Aliases§

CallArguments
The arguments a DocumentCall read, shared by the entries made inside it.
StashTable
The (table_name, key, value) contents of a stored table of assignments
Table
The type of values that are storable by the different namespaced “tables” in State.