Syntax#
\tfracm{a}math contentm{b}math contentArgspec m m — two mandatory arguments. Reading argspecs
Common tasks#
How to write a compact fraction in display math#
How to nest a compact fraction#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Rewrite the AMS text-style fraction command to frac.
\tfrac{#1}{#2} \frac{#1}{#2}Equivalent forms#
\genfrac{}{}{}{1}{#1}{#2}exactThis AMS mapping fixes the first four
\genfracparameters to empty delimiters, empty thickness, and style 1.{\textstyle \frac{x}{y}}exact
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\tfrac{a}{b} | Positive · baseline | Pass | Pass | Pass |
\tfrac a{b} | Positive · bare[0] | Pass | Pass | Pass |
\tfrac{a}b | Positive · bare[1] | Pass | Pass | Pass |