We could get good looking medium sized fractions using the nccmath package. However, there may be some incompatibilities with other packages and I would prefer to get rid of that package, since I just want to use its medium fraction. I created a macro to try to repoduce the smaller fraction (not \tfrac !), but I'm currently unable to get it right. Here's a MWE showing the medium fraction and it's current reproduction with a macro:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage{lmodern}
\usepackage{nccmath,amsmath}
\usepackage{mathtools}
\newcommand*{\medfrac}[2]{\vcenter{\hbox{\scalebox{1}{\ensuremath{\frac{#1}{#2}}}}}}
\begin{document}
Blabla bla bla blabla :
\begin{equation}
\frac{1}{2} = \mfrac{1}{2} \: A = \medfrac{1}{2} \: A = \frac{1}{2} \: A.
\end{equation}
\end{document}
Preview:
As you can see here, the \medfrac macro gives a tiny fraction, while using 1 as a scale parameter in the macro. So what is going on, and how could we get the same output as \mfrac?


\scaleboxto text, nccmath does not use scaling at all,. – David Carlisle Dec 07 '19 at 22:55\shortintertextcommand frommathtools, and it is solved loadingnccmathbefore `mathtools. – Bernard Dec 07 '19 at 23:12\hbox{$\frac{#1}{#2}$}so a textstyle fraction. – David Carlisle Dec 08 '19 at 18:44\text{\smaller$ \frac ab $}, but you'll have ti loadrelsize, and the fraction rules won't be exactly aligned with the other fraction rules. This being said,nccmathloadsamsmathso you don't have to load the latter. – Bernard Dec 08 '19 at 18:50