Rewrite Rulesbase/abovewithdelims-to-genfrac

base/abovewithdelims-to-genfrac

Rewrite abovewithdelims to an explicit genfrac with delimiters and thickness.

Rewrite patterns#

  1. #1 \abovewithdelims #2 #3 #4 #5\genfrac{#2}{#3}{#4}{}{#1}{#5}

Examples#

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

Delimited thick genfrac#

Before

\sum_{i=0}^{m} a_i t^i \abovewithdelims [ ] 0.8pt \int_0^1 f(x)\,dx

After this rule

\genfrac{[}{]}{0.8pt}{}{\sum_{i=0}^{m} a_i t^i}{\int_0^1 f(x)\,dx}

Rendering verified with the declared packages.

Parenthesized thick genfrac#

Before

A+B \abovewithdelims ( ) 2pt C+D

After this rule

\genfrac{(}{)}{2pt}{}{A+B}{C+D}

Rendering verified with the declared packages.

Same family#

Disable this rule#

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

Open in Playground