Skip to main content

insert_dollar_sign

Function insert_dollar_sign 

Source
pub fn insert_dollar_sign(again: Tokens) -> Result<bool>
Expand description

tex.web §1046-1047 insert_dollar_sign: a command inline math cannot hold (mmode+par_end; an environment’s end, whose \endgroup meets the math shift group, §1064) arriving in an inline formula — “Missing $ inserted”, the formula’s end read first and again after it. Returns whether it was inserted. An Error, as TeX’s; Perl has no such recovery, and the formula ran on through the paragraphs to the next $, its text and the document’s math swapped (OXIDIZED_DESIGN #553; 65d review probes f4, a18, a19). Guards perfect_kernel_batch65n::{par_in_inline_math_ends_the_formula, environment_end_in_inline_math_ends_the_formula}.