How do you make script-sized fractions in display mode?
In certain cases, I find that \frac
-based fractions are too large for my tastes in displayed formulae. For example, I feel that the fractions here stand out way too much compared to the exponents:
I can hack a workaround by writing things like \frac{_1}{^{24}}
, but that seems like too much trouble. The result, however, does look more like what I want:
Alternatively, I can force text styling by writing things like {\textstyle\frac{1}{24}}
. This feels cleaner to me, but I'm not sure it looks as readable as the earlier hacked version because the fractions are tighter vertically (great for text mode but a bit much for display mode).
What would you do?
\documentclass{minimal}
\begin{document}
\[ \cos x = \sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} x^{2n}
= 1 - \frac{1}{2}x^2 + \frac{1}{24}x^4 - \frac{1}{720}x^6 + \cdots \]
\[ \cos x = \sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} x^{2n}
= 1 - \frac{_1}{^2}x^2 + \frac{_1}{^{24}}x^4 - \frac{_1}{^{720}}x^6 + \cdots \]
\[ \cos x = \sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} x^{2n}
= 1 - {\textstyle\frac{1}{2}}x^2 + {\textstyle\frac{1}{24}}x^4
- {\textstyle\frac{1}{720}}x^6 + \cdots \]
\end{document}
\dotsb
instead of\cdots
to obtain proper spacing of the dots. I suppose you have to loadamsmath
for this command.\dotsb
and\cdots
either at the end, or in the middle of the equation.