\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}
\begin{document}
The quadratic formula is
\\\\
$x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
\end{document}
I am running this program using Xelatex but it gives the error in line 3. !undefined control sequence and !Latex error Missing \begin{document}
\\
in order to “leave a blank line”, and\\\\
will always end up in an error (No line to end).\usepackage{mathtools}
oramsmath
in front ofunicode-math
(or get rid of thedfrac
)