Skip to main content

read_next_conditional

Function read_next_conditional 

Source
pub fn read_next_conditional() -> Result<Option<(Token, ConditionalType)>>
Expand description

reads and discards tokens, until it encounters a conditional, if any. Perl: skipConditionalBody inner loop (Conditional.pm L127-133) reads tokens directly from pushback/mouth (NOT through readToken) and manually tracks $LaTeXML::ALIGN_STATE for { and }. This loop does not call read_token either: its expansion and comment handling belong to digestion, and calling it from here once let pmatrix’s & get treated as the OUTER alignment’s column-end during \ifx.#1.\else…\fi skip when #1 contains \begin{pmatrix}…&…\end{pmatrix}. (REG-2 / math-ph0501074: the 9-line \nonumber+\lefteqn+\pmatrix repro.) It does take a column end at a zero count for the cell’s end, as tex.web’s pass_text does through get_next (§342) and Perl does not (KNOWN_PERL_ERRORS #1183).