I want a fraction of derivatives, so I use this code:
\documentclass{article}
\usepackage{amsmath}
\usepackage{xfrac}
\begin{document}
Good: $\sfrac{4}{5}$
Not good: $ \sfrac{\dfrac{dy}{dt}}{\dfrac{dx}{dt}} $
\end{document}
As you can see, the result is not very beautiful:
At the first fraction 4 is in a higher level than 5. But it is the opposite at the second fraction.
How can I solve this problem?
Thanks in advance!