math (latex)

inline

As with other markup, there is a directive and a mode:

to insert 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 ax^2 + bx+c=0:

(1)x = \frac{-b\pm \sqrt{b^2-4ac}}{2a}

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 (1)).

See also

The case study in pulp

Table Of Contents

Previous topic

images

Next topic

footnotes

This Page