Rewrite Rulesbase/above-to-genfrac

base/above-to-genfrac

Rewrite above to a thickness-preserving genfrac form.

Rewrite patterns#

  1. #1 \above #2 #3\genfrac{}{}{#2}{}{#1}{#3}

Examples#

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

Rule thickness genfrac#

Before

\sum_{i=1}^{m} a_i x^i \above 1.2pt \prod_{j=1}^{n}(1+y_j)

After this rule

\genfrac{}{}{1.2pt}{}{\sum_{i=1}^{m} a_i x^i}{\prod_{j=1}^{n}(1+y_j)}

Rendering verified with the declared packages.

Zero thickness genfrac#

Before

A+B \above 0pt C+D

After this rule

\genfrac{}{}{0pt}{}{A+B}{C+D}

Rendering verified with the declared packages.

Same family#

Disable this rule#

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

Open in Playground