I am trying to display a function of a fraction where I am using displaystyle in the numerator. Here is the markup:
\[
\text{Var}(\overline{x}) = \text{Var}\left(\frac{\displaystyle \sum_{i=1}^{n} X_{i}}{n}\right)
\]
Which displays like this, with the brackets way lower than the bottom of the fraction:
When I remove \displaystyle it looks fine but I want the limits of the sum to be above and below the sigma.



\limitsto get limits above and below the smaller textstyle sum, you don't need displaystyle – David Carlisle Aug 17 '21 at 08:03\textfor this, this is not what\textis made for. It is not "upright text" it follows the text font and thus you might even end up with an italicVar. BTW why not\left(\frac{1}[n}\sum...\right), this just seems a waste of space. – daleif Aug 17 '21 at 08:14