Skip to main content

Module store_setters

Module store_setters 

Source
Expand description

K11’s table of title-page setters (latexml_engine/src/frontmatter_stores.rs reroutes a raw class’s — or package’s — stores through it), and which of them a binding defined: a setter whose definition changed while a binding loaded is the binding’s own (acmart.cls’s \copyrightyear, ported as the class’s store), never a raw class’s store, though a raw class that loads the binding (\LoadClass[nonacm]{acmart} in a wrapper class) ends with it defined. input_definitions snapshots the setters around each binding load; the snapshot is a Rust local, so nested loads pair by the call stack and nothing transient enters the State (or a format dump). So: raw TeX a binding loads itself (noltxml) counts as the binding’s, a raw class a binding loads still reroutes at its own end, and a raw class’s later redefinition of a binding’s setter is the raw class’s. Only loads through input_definitions are tracked (a plain-TeX .tex binding loaded by load_binding directly is not).

Structs§

RawClassRead
Counts a raw class read while it lasts (in_a_raw_class_read).

Constants§

DISPLACED_ONLY_SETTERS
Table setters only the displaced-setter route takes (reroute_displaced_setters): K11’s in-place reroute skips them and its off-table survey reads them as off the table. A pure \affiliations store is the creators’ where the title page prints it (rlj.sty:72, 2605.26012), the class’s where only its page foot does (lpor2014.cls:1229-1230, numbered by \and: 1601.06956, 1912.03045).
STORE_SETTERS
Setter name (no backslash) → the frontmatter API body for its kind, with #1 the setter’s argument (an [optional]{mandatory} setter’s #2). Kinds and roles follow OmniBus.cls.ltxml and the kernel (\lx@add@date[role=…], latex_constructs.pool.ltxml:1066).

Functions§

defined_by_a_binding
Whether the setter’s current definition is one a binding made.
defined_by_a_raw_file
Whether the setter’s current definition is the one a raw file made (mark_raw): not a binding’s, nor the K11 reroute’s of a raw file’s store.
in_a_raw_class_read
Is a raw class being read? A raw package it loads is then the class’s: its table setters are rerouted at the class’s end, where its title page is known (latexml_engine/src/frontmatter_stores.rs reroute_raw_package_stores).
mark_bound
After a binding loaded: mark each table setter whose definition changed since before as the binding’s — unless a raw file read during the load defined it (mark_raw): bfhlayout_sty.rs reads bfhlayout.sty, whose \institution/\department/\institute stay the raw stores the class’s title page reads (DEMO-BFHThesis lost its affiliations).
mark_raw
After a raw file was read: record each table setter it defined as the raw file’s.
snapshot
Each table setter’s definition before a binding loads.