Fonts and styles\displaystyle

\displaystyleCommand

Forces display-style math within the current math group, commonly to make inline fractions, sums, or integrals use display sizing.

\displaystyle
Available in
base
Kind
declarative
Allowed mode
math
Frequency
1.00% of corpus formulasrank 49 of 263
Commonality
high
Tags
presentation
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\displaystyle

Takes no arguments. Reading argspecs

Common tasks#

How to force display style inside inline math#

Wrap the switch and the formula in a group so the style does not leak.

{\displaystyle \sum_{n=1}^\infty \frac{1}{n^2}}

How to keep a nested fraction large#

{\displaystyle \frac{\frac{a}{b}}{\frac{c}{d}}}

How to put limits under an operator in a text-style slot#

{\displaystyle \int_0^1 f(x)\,dx}

Examples#

\displaystyle x

In TeXForm#

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

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
{\displaystyle a}Positive · baselinePassPassPass
All 80 in Fonts and styles