[Tex/LaTex] Elegant fractions in one line

fractionsmath-mode

What solution do you think is more elegant for a simple fraction that should be displayed in just one line?

My examples are

  1. $x_F \equiv \frac{p_z}{p^{\rm MAX}_{z}} = \frac{p_z}{\sqrt{s}/2}$
  2. $x_F \equiv \frac{p_z}{p^{\rm MAX}_{z}} = \frac{p_z}{\sfrac{\sqrt{s}}{2}}$
  3. $x_F \equiv \frac{p_z}{p^{\rm MAX}_{z}} = \frac{p_z}{^\sqrt{s}/_2}$

This generates the following (using the xfrac package).

enter image description here

I don't like 2, but I also think that 3 is not very elegant.

Best Answer

It is nearly always best to use the slashed form for fractions in the text:

Sample output

\documentclass{article}

\begin{document}
\( x_F \equiv p_z^{}/p^{\mathrm{MAX}}_z = p_z/(\sqrt{s}/2) = 2p_z/\sqrt s \)
\end{document}

Note that I have added brackets to the second fraction.