Skip to main content

def_math_wrapped

Function def_math_wrapped 

Source
pub fn def_math_wrapped(
    cs: Token,
    presentation: Tokens,
    options: MathPrimitiveOptions,
) -> Result<()>
Expand description

Perl defmath_wrapped (Package.pm:1786-1813): no arguments, but a presentation naming control sequences. \cs expands to \cs@wrapper{\cs@presentation}, the presentation macro holds the tokens as given, and the wrapper constructor puts their digested form in an XMWrap carrying the DefMath’s attributes (name, meaning, role, scriptpos, stretchy, …), which the math parser moves onto the parsed content (MathParser.pm:333-360, parser.rs). It reverts as its argument, or as \cs in a dual’s content branch.