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) 回答1: .. math:: p=f(x) :label: eq:pfx 回答2: Looking at this a few years later, it appears that the number is still not automatically placed on the right of the equations. I'd therefore like to supplement the accepted answer a bit. First you add a label to the equation in the rst file: .. math:: :label: pfx p = f(x) This will generate a <span> of