I often write a lot of mathematics where I multiply various quantities/operators/etc. by fractions. The fractions are important for bookkeeping, but usually not the most important thing in the equation by far, so I like to de-emphasize them.
My usual solution to this is to use \tfrac even in displayed environments, but this does not look as æsthetically pleasing as possible — it's a bit cramped. But I find the massive fractions produced by \dfrac to swing too far in the opposite direction in a context such as \[ \dfrac{1}{2} A + (other stuff) \].
To solve this problem in my thesis (where I was allowed to get away with things like the following), I created a custom fraction macro, roughly as follows (using the scalefnt package):
\newcommand\sfrac[2]{%
\dfrac{\text{\raisebox{-0.5ex}{\scalefont{0.85}{$#1$}}}}%
{\text{\raisebox{0.35ex}{\scalefont{0.85}{$#2$}}}}%
}
All numerical parameters were chosen arbitrarily, to make constructs such as \sfrac{1}{\sqrt 2} and \sfrac{\pi}{2} look appealing in comparison to the \tfrac and \dfrac alternatives in displayed math (e.g. when placed next to something else such as a uppercase or lowercase letter, a bracket, or a summation symbol).
If you have any, please provide arguments for the following:
Fundamental æsthetic or technical problems with this macro: are there reasons why I should never want to use such a macro, if I were "right-thinking"?
Technical or æsthetic improvements which are possible for this macro: how could I make it better?
Are there practical problems that would be caused by this macro (aside from potentially making co-authors and journal editors hate me)?
\mathsurround0ptinside$#x$. Alternatively, you can use\m@thwhich does the same thing, but you need\makeatletterbeforehand. – TH. Oct 8 '10 at 10:16\tfrac, but I accept it's a matter of taste. There might be a very marginal argument in favour of\tfracin that it doesn't involve a new, potentially non-portable, piece of code. – Brent.Longborough Oct 8 '10 at 11:25