Rewrite patterns#
\tfrac{#1}{#2}\frac{#1}{#2}
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
Plain#
The rendered result has pixel differences from the input.
Display style#
The rendered result has pixel differences from the input.
Script#
The rendered result has pixel differences from the input.
Related rules#
Same family#
ams/cfrac-to-fracDrop continued-fraction styling from centered AMS cfrac forms.ams/dbinom-and-tbinom-to-binomRewrite AMS display-style and text-style binomial commands to binom.ams/dfrac-to-fracRewrite the AMS display-style fraction command to frac.base/above-to-genfracRewrite above to a thickness-preserving genfrac form.base/abovewithdelims-to-genfracRewrite abovewithdelims to an explicit genfrac with delimiters and thickness.base/atop-to-genfracRewrite infix atop to an explicit no-rule genfrac form.base/atopwithdelims-to-genfracRewrite atopwithdelims to an explicit delimited no-rule genfrac form.base/brace-to-genfracRewrite infix brace to an explicit genfrac with brace delimiters.base/brack-to-genfracRewrite infix brack to an explicit genfrac with bracket delimiters.base/choose-to-binomRewrite infix choose to an explicit binom command.base/over-to-fracRewrite infix over to an explicit frac command.base/overwithdelims-to-genfracRewrite overwithdelims to an explicit genfrac with delimiters.base/root-of-to-sqrtRewrite legacy root-of syntax to bracketed sqrt notation.base/leftroot-dropDrop the leftroot index-position hint in cleanup-oriented normalization.base/uproot-dropDrop the uproot index-position hint in cleanup-oriented normalization.
Notes#
AMS defines tfrac as genfrac style 1, while frac inherits its surrounding style. The rewrite preserves fraction notation, numerator and denominator roles, and reading order, but dropping forced text style can materially change visible size, especially in scripts or under an explicit math-style declaration. This Reading-fidelity projection is enabled only by Equiv; Authoring, Faithful, and Corpus retain the original command.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["ams/tfrac-to-frac"])new TransformEngine({ profile: 'corpus', disableRules: ['ams/tfrac-to-frac'] })