Fix #326: numref role can also refer sections

This commit is contained in:
Takeshi KOMIYA
2016-09-17 15:51:18 +09:00
parent 98886d3e07
commit 1aafc7e2e5
11 changed files with 122 additions and 38 deletions
+7 -4
View File
@@ -294,13 +294,16 @@ General configuration
.. confval:: numfig_format
A dictionary mapping ``'figure'``, ``'table'`` and ``'code-block'`` to
strings that are used for format of figure numbers. Default is to use
``'Fig. %s'`` for ``'figure'``, ``'Table %s'`` for ``'table'`` and
``'Listing %s'`` for ``'code-block'``.
A dictionary mapping ``'figure'``, ``'table'``, ``'code-block'`` and
``'section'`` to strings that are used for format of figure numbers. Default
is to use ``'Fig. %s'`` for ``'figure'``, ``'Table %s'`` for ``'table'``,
``'Listing %s'`` for ``'code-block'`` and ``'Section'`` for ``'section'``.
.. versionadded:: 1.3
.. versionchanged:: 1.5
Support format of section
.. confval:: numfig_secnum_depth
The scope of figure numbers, that is, the numfig feature numbers figures