Is there a way to align the numerator and the denominator of a fraction? Consider two fractions (from a SIAM paper)
The denominator (k!) is nicely centred in the first fraction. However in the second fraction the brackets in the numerator and the denominator are not aligned. As the exponent of the numerator gets bigger, the misalignment gets worse. In general, the strategy of centring numerator and denominator is correct. However, it would be good to have the option of aligning brackets in specific instances like this.
MWE:
\documentclass[preview]{standalone}
\usepackage{amsmath}
\begin{document}
$\dfrac{(x_i - x)^{N+1}}{(N+1)!}$
\end{document}
Best Answer
As illustrated in the highest-voted answer to Align denominator of fraction to left,
\hfill
will do the trick.Here's a macro,
\myfrac
, that puts the\hfill
either in the numerator or the denominator as necessaryComplete MWE