Rewrite Rulesbase/ast-to-asterisk

base/ast-to-asterisk

Canonicalize the math binary operator \ast to the pixel-identical literal asterisk form.

Rewrite patterns#

  1. \ast*

Examples#

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

Binary operation#

Before

A \ast B

After this rule

A * B

Rendering verified with the declared packages.

Same family#

Notes#

The parser represents \ast as a known no-argument character command and literal * as Node::Char('*'). MathJax gives both the same Bin class and glyph. A literal * is a raw character rather than a knowledge-base command, environment, or character target, so produces is intentionally empty.

Disable this rule#

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

Open in Playground