math: Add math_number_all to enforce numbering all displayed math.

This commit is contained in:
Hong Xu
2016-01-09 16:55:56 -08:00
parent 5b92c708f8
commit 540400635a
4 changed files with 21 additions and 7 deletions

View File

@@ -28,6 +28,13 @@ Keep in mind that when you put math markup in **Python docstrings** read by
:mod:`autodoc <sphinx.ext.autodoc>`, you either have to double all backslashes,
or use Python raw strings (``r"raw"``).
:mod:`.mathbase` provides the following config values:
.. confval:: math_number_all
Set this option to ``True`` if you want all displayed math to be numbered.
The default is ``False``.
:mod:`.mathbase` defines these new markup elements:
.. rst:role:: math