Fractions and roots\tfrac

\tfracCommand

Text-style fractions, often used inside displayed equations or tighter layouts where a smaller fraction form is desired.

\tfrac{a}{b}
Available in
ams
Kind
prefix
Allowed mode
math
Frequency
0.61% of corpus formulasrank 59 of 263
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
amsMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\tfracm{a}math contentm{b}math content

Argspec m m — two mandatory arguments. Reading argspecs

Common tasks#

How to write a compact fraction in display math#

\tfrac{1}{2}mv^2

How to write a small fraction coefficient#

\tfrac stays text-sized even in display style.

\tfrac{n}{2}\pi

How to nest a compact fraction#

e^{\tfrac{i\pi}{2}}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

ams/tfrac-to-fracfrom Equivreading

Rewrite the AMS text-style fraction command to frac.

\tfrac{#1}{#2} \frac{#1}{#2}

Equivalent forms#

  • \genfrac{}{}{}{1}{#1}{#2}exact

    This AMS mapping fixes the first four \genfrac parameters to empty delimiters, empty thickness, and style 1.

  • {\textstyle \frac{x}{y}}exact

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\tfrac{a}{b}Positive · baselinePassPassPass
\tfrac a{b}Positive · bare[0]PassPassPass
\tfrac{a}bPositive · bare[1]PassPassPass
All 21 in Fractions and roots