Quick question. When I type `$e^{\frac{1}{2x}}$`

it makes the fraction very small and hard to read. However when I type `$e^{\displaystyle\frac{1}{2x}}$`

it makes the fraction way to big. I guess in either case they do not look good to me. Is there a nice way to make fractions in powers look good?

# [Tex/LaTex] How to make fractions in powers look good

displaystylefractionspdftex

## Best Answer

You can also use the

`xfrac`

package which provides`\sfrac`

which works in text and math mode:## Note:

I stopped using

`\sfrac`

when I realized that it was resulting in really slow compiles when used in conjunction with the`microtype`

package as per:I think these problems are supposed to have been fixed with

`microtype`

v2.5, but in case you encounter really slow compile times you may want to try it without the`microtype`

package or without`\sfrac{}`

.## Code: