In an align environment in the amsmath package, sometimes an exponent like e^{...} is too small and a fraction like \frac{1}{2} is too small. I can use \tfrac to make fractions smaller, but for some reason there is no way to make them bigger. Whenever I've tried to use \hfrac it doesn't work. Is there also a way to make exponents larger in a similar way?
Asked
Active
Viewed 8,586 times
2
David Carlisle
- 757,742
user14554
- 155
3 Answers
8
superscripts are in scriptstyle so in theory you could do
e^{\textstyle a+b}
to use a textstyle rather than scriptstyle superscript, but really, I wouldn't.
If you have a large expression here it is better to use a different syntax
\exp (a+b)
which naturally sets the expression in textstyle
David Carlisle
- 757,742
-
1In some contexts, e.g. schools, it might be preferable to use the
e^{}-notation instead of the\exp()-notation. – Toscho Jan 02 '19 at 22:10 -
exp might work, I'll give it a try. "h" also came from a past question I saw on this very site. But, there might have been some extra environment. – user14554 Jan 02 '19 at 22:10
-
For the most part exp solves the problem. Though, it would still be nice to have more control over \textstyle since it is less convenient to read. – user14554 Jan 02 '19 at 22:31
-
1@user14554 math fonts are set at four styles (usually three sizes) displaystyle textstyle subscriptstyle and subsubscriptsyle so they are always available, but to get other sizes would require more extensive setup – David Carlisle Jan 02 '19 at 22:42
-
You say it's available in only three sizes, yet if you nest exponents or fractions, it will perpetually adjust them to be smaller or larger. – user14554 Jan 02 '19 at 22:47
-
3
Caution: This should be wisely used!
The macro \DeclareMathSizes{}{}{}{} has four arguments; text size, math sizes in display/text style, script style and scriptscript style, respectively.
\documentclass[12pt,a4paper]{report}
\usepackage{amsmath}
\DeclareMathSizes{12}{12}{10}{7}
\begin{document}
\begin{align*}
\frac{2x}{3y+z} 12e^{a+b}
\end{align*}
\end{document}
AboAmmar
- 46,352
- 4
- 58
- 127
-
Can I use these arbitrarily within any point in any part of an align environment? Could I make one fraction smaller while retaining the size of all others within one align environment? – user14554 Jan 02 '19 at 22:29
-
@user14554 this is only intended as a global document setting, it sets up the three sizes as i mentioned. – David Carlisle Jan 02 '19 at 22:49
-
So in other words you're saying no, I can't arbitrarily change the sizes of only individual fractions with this? – user14554 Jan 02 '19 at 23:03
-
3The command in my answer changes all math components in the document, for fractions, you have
\frac,\dfrac,\mfrac, and\tfrac, if all these sizes are not sufficient, you can change the size arbitrarily using\scalebox{<factor>}{$\frac{}{}$}. You needgraphicxpackage for that command. – AboAmmar Jan 02 '19 at 23:18
\fracselects the default,\tfracforces textstyle,\dfracforces display style, so if you are in display math\tfracis smaller than\fracanddfracis the same. – David Carlisle Jan 02 '19 at 23:55\ddfracmacro proposed in the accepted answer -- shameless self-citation alert! -- would appear to be what you're looking for in terms of fractions with "large" numerators and denominators. – Mico Jan 03 '19 at 01:27