Skip to main content

retract_scanned_brace

Function retract_scanned_brace 

Source
pub fn retract_scanned_brace(token: &Token)
Expand description

back_input-style ledger retraction WITHOUT pushing anything: apply to tokens that were READ through a counting reader and are about to be RE-EMITTED as part of an expansion result (so they will be counted again when rescanned). tex.web §368: \expandafter saves its first token and back_inputs it (§325 retracts a scanned brace) around the one-step expansion, which enters as an unadjusted token list. A closure-style expandable that returns previously-read tokens inside its expansion must call this on that re-emitted portion, or every {/} passed through it is double-counted (l3’s \exp_after:wN { idiom drove the alignment ledger positive and & went stray — see unread_expansion).