pub fn formula_continues_past_par() -> boolExpand description
Whether the inline formula a \par is read in goes on past it: OXIDIZED_DESIGN #553 as narrowed (66w). The
input is looked at, not read (gullet::peek_upcoming_tokens, unexpanded, each token by its current meaning),
as far as the formula’s would-be closer — the next $ or \) — within the paragraph after the \par. The
formula continues when the material before that closer holds a math-only token (a _/^, or a command that is
LookaheadCommand::MathOnly): the author split the formula with a blank line and the math goes on (hep-th9402135
$Z_{YM}(\epsilon) = ⏎⏎ \int_{\cal A} … D A$, whose ending put every later $ of the paragraph out of step,
Fatal TooManyErrors). It does not when no math-only token comes first — that $ opens the next paragraph’s own
formula, and the \par ends this one (tex.web §1047, a forgotten $) — nor on any doubt: no closer before the
paragraph’s end (PAR_LOOKAHEAD_STOPS), the bounds (PAR_LOOKAHEAD_LINES, PAR_LOOKAHEAD_TOKENS,
PAR_LOOKAHEAD_CHARS), a closer inside a group, a bracket or a $$, a } closing a group the look-ahead did not
see open, an &, a command it cannot follow (LookaheadCommand::GiveUp: \verb|make_all|, \lstinline, \url).
The arguments of a command that is not math-only are not looked into: a * right after it, then every […] and
{…} group in a row (\cite[p.~2]{smith_2001}, \ref*{eq_1}, \includegraphics[width=1cm]{fig_1},
\citep[e.g.][]{a_b}) — their scripts may be a key’s or a file name’s, never typeset; any other group is
({\cf^{1}/G}$, \left[0,1\right)). The look-ahead starts after the judged \par, its leading \pars and spaces
skipped — an \obeylines line end’s active ^^M among them (hep-ph9809328).