.. _math: math (latex) ------------ inline ^^^^^^ As with other markup, there is a directive and a mode: to insert :math:`c= \pm \sqrt{a^2+b^2}` in your code, just prepend it with the :math: mode tag:: to insert :math:`c= \pm \sqrt{a^2+b^2}` in your code, ... paragraph-mode ^^^^^^^^^^^^^^ The quadratic formula gives in general, two solutions to the equation :math:`ax^2 + bx+c=0`: .. math:: x = \frac{-b\pm \sqrt{b^2-4ac}}{2a} :label: quadratic in your code, just prepend it with the ``..math::`` directive:: .. math:: x = \frac{-b\pm \sqrt{b^2-4ac}}{2a} :label: quadratic The ``:label:`` option creates a label and allows us to refer to the equation elsewhere (see :eq:`quadratic`). .. seealso:: The :ref:`case study in pulp `