O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – discussing quadratic equations and roots

Our first small math text shall deal with the solutions of quadratic equations. We need to typeset formulas with constants, variables, superscripts for the square, and subscripts for the solutions. The solution itself needs a root symbol. Finally, we will use cross-references to formulas.

  1. Start a new document. For now, we don't need any package:
    \documentclass{article}
    \begin{document}
    \section*{Quadratic equations}
  2. State the quadratic equation with its conditions. Use an equation environment for it. Surround small pieces of math within text by \( … \):
    The quadratic equation \begin{equation} \label{quad} ax^2 + bx + c = 0, \end{equation} where \( a, b \) and \( c \) are constants and \( a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required