Skip to main content

Module expandable

Module expandable 

Source

Structs§

Expandable
ExpandableOptions
StoredParameters
What a raw setter’s body writes into a store (stored_parameters).

Enums§

SpecialCall
A macro whose call is not simply its definition’s run: one test per macro call for both kinds.

Constants§

ETOOLBOX_WRITERS_OF_NAMES
The other commands that write a definition’s name, the title-page check’s alone (stored_parameters, latexml_engine title_page_check::StoreReaders): etoolbox’s, and the kernel’s \@namedef.
KERNEL_WRITERS_OF_NAMES
The kernel’s commands that write a definition’s name: the \def family, \let, \g@addto@macro. The unclaimed-text net’s stores read these alone (latexml_engine frontmatter_stores::stores_raw_code_writes), which change the output where the check’s cannot; the check reads ETOOLBOX_WRITERS_OF_NAMES too.
WRITERS_OF_NAMES
The commands that write a definition’s name: KERNEL_WRITERS_OF_NAMES and ETOOLBOX_WRITERS_OF_NAMES, one list to search (stored_parameters asks for every control sequence of every definition’s body).

Functions§

is_scratch_name
Is the control sequence named name a scratch name (SCRATCH_NAMES)?
protect_is_typeset
Returns true when \protect currently has no meaning, or is \let-equivalent to \relax. Used by the recursion guard in Expandable::invoke to distinguish \def\foo{\protect\foo} definitions under safe (\@unexpandable@protect/\string/…) vs. unsafe (\relax/undefined) \protect regimes. Only the unsafe regime actually runaways at full expansion. True when \protect currently means \@typeset@protect — i.e. normal typesetting, where real LaTeX’s \@protected@testopt DOES expand an optional-argument \newcommand. Under any other regime (\protected@edef sets \@unexpandable@protect, \protected@write sets \@unexpandable@protect, etc.) the real macro emits \protect\cs unexpanded. Used by the gullet’s partial-expansion gate for binding-defined optional-argument macros (see wisdom_replayed_tokens_param_packing sibling entry; titlecaps OOM, perfect-kernel sweep 16).
set_native_call
The native call SpecialCall::Native runs.
value_group
The inside of the value group of writer, searched from at: the next {…}, balanced. A \def’s parameter text may stand before it, a \newcommand’s [n]; a register’s assignment or a \write has only =, spaces and \expandafter there (\toks@\the\x assigns no group; \@auxout\foo).
written_store_name
The store a writer at at - 1 names at at (\x, {\x}, *\x, \expandafter\x, a \csname…\endcsname or the group \@namedef and etoolbox’s \csgdef take: none known then), and where the search for its value starts; None when it names no store (\gdef#1{#2}).

Type Aliases§

NativeCall
A native answer to a macro’s call, tried before its arguments are read (SpecialCall::Native).