Rewrite Rulesbase/atop-to-genfrac

base/atop-to-genfrac

Rewrite infix atop to an explicit no-rule genfrac form.

Rewrite patterns#

  1. #1 \atop #2\genfrac{}{}{0pt}{}{#1}{#2}

Examples#

Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.

No rule stacked fraction#

Before

x_1+\cdots+x_m \atop y_1y_2\cdots y_n

After this rule

\genfrac{}{}{0pt}{}{x_1+\cdots+x_m}{y_1y_2\cdots y_n}

Rendering verified with the declared packages.

Script atop condition#

Before

\sum_{i \atop i\ne j} a_i

After this rule

\sum_{\genfrac{}{}{0pt}{}{i}{i\ne j}} a_i

Rendering verified with the declared packages.

Same family#

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["base/atop-to-genfrac"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/atop-to-genfrac'] })

Open in Playground