python-sphinxrestructuredtext

Numbered :math: equations in reStructuredText


How can I make an equation in restructured text, that is followed by an equation number:

p = f(x)                (1)

.. math::
   p = f(x)

would only lead to:

p = f(x)

Solution

  • .. math:: p=f(x)
      :label: eq:pfx