diff options
Diffstat (limited to 'tests/roots/test-numfig/index.rst')
-rw-r--r-- | tests/roots/test-numfig/index.rst | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/roots/test-numfig/index.rst b/tests/roots/test-numfig/index.rst new file mode 100644 index 00000000..7bdf135c --- /dev/null +++ b/tests/roots/test-numfig/index.rst @@ -0,0 +1,50 @@ +test-tocdepth +============= + +.. toctree:: + :numbered: + + foo + bar + +.. _fig1: + +.. figure:: rimg.png + + should be Fig.1 + +.. figure:: rimg.png + + should be Fig.2 + +.. _table1: + +.. csv-table:: should be Table 1 + :header-rows: 0 + + hello,world + +.. csv-table:: should be Table 2 + :header-rows: 0 + + hello,world + +.. _code1: + +.. code-block:: python + :caption: should be List 1 + + print('hello world') + +.. code-block:: python + :caption: should be List 2 + + print('hello world') + + +* Fig.1 is :numref:`fig1` +* Fig.2.2 is :numref:`Figure# <fig22>` +* Table.1 is :numref:`table1` +* Table.2.2 is :numref:`Table:# <table22>` +* List.1 is :numref:`code1` +* List.2.2 is :numref:`Code-# <code22>` |