1

When I type a fraction, I always use form \dfrac{m}{n}. For example: $\dfrac{1}{2}$ and $\dfrac{1}{23}$. Somewhere, I saw that, instead of $\dfrac{1}{2}$ it was type $\dfrac 12$ and $\dfrac1{23}$. What is the best way which I choose?

1 Answers1

1

You should stick to a consistent usage, supplying parameters to the macro using braces. As such, the best way is to use

\frac{<num>}{<denom>}

which clearly identifies the numerator and denominator.


(La)TeX, like other programming languages, allows one to bend the rules on occasion. However, stick to proper use of the language; you don't gain anything by dropping proper argument deliniation.

As an analogy, things may sound the same (phonetically), but their meaning can be completely different if not used properly:

enter image description here

Werner
  • 603,163