When should I use \tfrac in formulas? I normally use it in power series, but are there other cases where it looks better with \tfrac instead of a full size fraction? Are there any general rules I can follow?
Asked
Active
Viewed 1.6k times
9
Joseph Wright
- 259,911
- 34
- 706
- 1,036
Håkon Marthinsen
- 1,132
1 Answers
13
Often it looks better to use \tfrac if you are just wanting a numeric fraction as part of an expression, when the display fraction can look a bit spacey. Conversely if the fraction is already a larger expression such as a polynomial the text style fraction can look cramped. For fractions (in some font families) there is also the possibility of using the font's fraction characters, although they are no so much used in math as they typically don't blend so well with constructed fractions, but if you only want (say) ½ it's a possibility.
\documentclass{article}
\usepackage{amsmath}
\usepackage[TS1,T1]{fontenc}
\usepackage{textcomp}
\begin{document}
(d)frac
\[\frac{1}{2}(x+6)^2\]
tfrac
\[\tfrac{1}{2}(x+6)^2\]
textonehalf
\[\text{\textonehalf}(x+6)^2\]
\bigskip
(d)frac
\[\frac{x^3+5x^2+4}{x^2-2}(x+6)^2\]
tfrac
\[\tfrac{x^3+5x^2+4}{x^2-2}(x+6)^2\]
\end{document}
David Carlisle
- 757,742

\dfrac. – Sebastiano Dec 08 '16 at 13:23\tfracshould be used in display mode? – Håkon Marthinsen Dec 08 '16 at 13:36\tfracwhenever the fraction is not the main part of a formula which has no other fractions. – egreg Dec 08 '16 at 14:11