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?
3 Answers
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
-
1In some contexts, e.g. schools, it might be preferable to use the
e^{}
-notation instead of the\exp()
-notation.– ToschoJan 2, 2019 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. Jan 2, 2019 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. Jan 2, 2019 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 Jan 2, 2019 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. Jan 2, 2019 at 22:47
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}
-
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? Jan 2, 2019 at 22:29
-
@user14554 this is only intended as a global document setting, it sets up the three sizes as i mentioned. Jan 2, 2019 at 22:49
-
So in other words you're saying no, I can't arbitrarily change the sizes of only individual fractions with this? Jan 2, 2019 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 needgraphicx
package for that command.– AboAmmarJan 2, 2019 at 23:18
You can use \displaystyle
and the like to change the size inside a math environment.
\frac
selects the default,\tfrac
forces textstyle,\dfrac
forces display style, so if you are in display math\tfrac
is smaller than\frac
anddfrac
is the same.\ddfrac
macro 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.