Fractions and roots\dfrac

\dfracCommand

Display-style fractions forced in contexts such as inline math or nested formulas when a larger fraction layout is wanted.

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

Syntax#

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

Argspec m m — two mandatory arguments. Reading argspecs

Common tasks#

How to force a display-sized fraction#

\dfrac stays large even in inline or nested positions.

\dfrac{a}{b}

How to write a continued fraction with large pieces#

a_0+\dfrac{1}{a_1+\dfrac{1}{a_2}}

How to write a display fraction in a coefficient#

\dfrac{1}{2\pi}\int f(\theta)\,d\theta

In TeXForm#

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

ams/dfrac-to-fracfrom Equivreading

Rewrite the AMS display-style fraction command to frac.

\dfrac{#1}{#2} \frac{#1}{#2}

Equivalent forms#

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

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

  • {\displaystyle \frac{p}{q}}exact

See also#

Test cases#

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