In the answers to this question: What is the difference between \over and \frac?, one finds the ams and plain latex definitions of \frac
, respectively:
\DeclareRobustCommand{\frac}[2]{{\begingroup#1\endgroup\@@over#2}}
\DeclareRobustCommand\frac[2]{{\begingroup#1\endgroup\over#2}}
Is there a reason grouping is not used around #2
? That is, like this:
\DeclareRobustCommand{\frac}[2]{{\begingroup#1\endgroup\@@over\begingroup#2\endgroup}}
\DeclareRobustCommand\frac[2]{{\begingroup#1\endgroup\over\begingroup#2\endgroup}}