| 1 |
.. _index: |
| 2 |
|
| 3 |
test-tocdepth |
| 4 |
============= |
| 5 |
|
| 6 |
.. toctree:: |
| 7 |
:numbered: |
| 8 |
|
| 9 |
foo |
| 10 |
bar |
| 11 |
|
| 12 |
.. _fig1: |
| 13 |
|
| 14 |
.. figure:: rimg.png |
| 15 |
|
| 16 |
should be Fig.1 |
| 17 |
|
| 18 |
.. figure:: rimg.png |
| 19 |
|
| 20 |
should be Fig.2 |
| 21 |
|
| 22 |
.. _table-1: |
| 23 |
|
| 24 |
.. csv-table:: should be Table 1 |
| 25 |
:header-rows: 0 |
| 26 |
|
| 27 |
hello,world |
| 28 |
|
| 29 |
.. csv-table:: should be Table 2 |
| 30 |
:header-rows: 0 |
| 31 |
|
| 32 |
hello,world |
| 33 |
|
| 34 |
.. _CODE_1: |
| 35 |
|
| 36 |
.. code-block:: python |
| 37 |
:caption: should be List 1 |
| 38 |
|
| 39 |
print('hello world') |
| 40 |
|
| 41 |
.. code-block:: python |
| 42 |
:caption: should be List 2 |
| 43 |
|
| 44 |
print('hello world') |
| 45 |
|
| 46 |
|
| 47 |
* Fig.1 is :numref:`fig1` |
| 48 |
* Fig.2.2 is :numref:`Figure%s <fig22>` |
| 49 |
* Table.1 is :numref:`table-1` |
| 50 |
* Table.2.2 is :numref:`Table:%s <table22>` |
| 51 |
* List.1 is :numref:`CODE_1` |
| 52 |
* List.2.2 is :numref:`Code-%s <CODE22>` |
| 53 |
* Section.1 is :numref:`foo` |
| 54 |
* Section.2.1 is :numref:`bar_a` |
| 55 |
* Unnumbered section is :numref:`index` |
| 56 |
* Invalid numfig_format 01: :numref:`invalid <fig1>` |
| 57 |
* Invalid numfig_format 02: :numref:`Fig %s %s <fig1>` |
| 58 |
* Fig.1 is :numref:`Fig.{number} {name} <fig1>` |
| 59 |
* Section.1 is :numref:`Sect.{number} {name} <foo>` |