The macro \frac
add a gap (approx 1.2pt) before and after the whole fraction. You could compare
\[\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\frac{1}{1}\]
and
\newcommand{\mycmd}{\hskip1.2pt1\hskip1.2pt}
\[\mycmd\mycmd\mycmd\mycmd\mycmd\mycmd\mycmd\mycmd\]
Even, the \genfrac
command (setting the third arguement to "0pt") has still keep the gaps back:
\newcommand{\myfrac}{\genfrac{}{}{0pt}{0}{1}{1}}
\[\myfrac\myfrac\myfrac\myfrac\myfrac\myfrac\myfrac\myfrac\]
though the horizontal rule is invisible.
The gaps takes some problems:
- If we use a huge font (e.g. set
\fontsize
to 20pt), the numerator/denominator does not match the fractional line in the projecting. - If we write a binomial coefficient, the gaps are not necessity.
So, a customized command \newfrac
without the gaps is beneficial.