@@ -55,7 +55,7 @@ build the documentation.
5555Building the docs
5656-----------------
5757
58- The documentation sources are found in the :file: `doc/ ` directory in the trunk .
58+ The documentation sources are found in the :file: `doc/ ` directory.
5959The configuration file for Sphinx is :file: `doc/conf.py `. It controls which
6060directories Sphinx parses, how the docs are built, and how the extensions are
6161used. To build the documentation in html format, cd into :file: `doc/ ` and run:
@@ -144,9 +144,9 @@ are some formatting and style conventions that are used.
144144Section formatting
145145~~~~~~~~~~~~~~~~~~
146146
147- For everything but top-level chapters, use `` Upper lower `` for
148- section titles, e.g., ``Possible hangups `` rather than `` Possible
149- Hangups ``
147+ Use ` sentence case < https://apastyle.apa.org/style-grammar-guidelines/capitalization/sentence-case >`__
148+ `` Upper lower `` for section titles, e.g., ``Possible hangups `` rather than
149+ `` Possible Hangups ``.
150150
151151We aim to follow the recommendations from the
152152`Python documentation <https://devguide.python.org/documenting/#sections >`_
@@ -342,6 +342,16 @@ Note that the python script that generates the plot is referred to, rather than
342342any plot that is created. Sphinx-gallery will provide the correct reference
343343when the documentation is built.
344344
345+ Tools for writing mathematical expressions
346+ ------------------------------------------
347+
348+ In most cases, you will likely want to use one of `Sphinx's builtin Math
349+ extensions <https://www.sphinx-doc.org/en/master/usage/extensions/math.html> `__.
350+ In rare cases we want the rendering of the mathematical text in the
351+ documentation html to exactly match with the rendering of the mathematical
352+ expression in the Matplotlib figure. In these cases, you can use the
353+ `matplotlib.sphinxext.mathmpl ` Sphinx extension (See also the
354+ :doc: `../users/explain/text/mathtext ` tutorial.)
345355
346356.. _writing-docstrings :
347357
0 commit comments