\documentclass{article} \usepackage{amsmath} \begin{document} some text $\dfrac{1}{2}$ more text \end{document}