Test references to figures and tables by caption.

This commit is contained in:
Georg Brandl 2010-05-30 12:42:05 +02:00
parent 0f7072f028
commit 57c438be4f

View File

@ -122,6 +122,8 @@ Inline markup
* :token:`try statement <try_stmt>` * :token:`try statement <try_stmt>`
* :ref:`admonition-section` * :ref:`admonition-section`
* :ref:`here <some-label>` * :ref:`here <some-label>`
* :ref:`my-figure`
* :ref:`my-table`
* :doc:`subdir/includes` * :doc:`subdir/includes`
* ``:download:`` is tested in includes.txt * ``:download:`` is tested in includes.txt
* :option:`Python -c option <python -c>` * :option:`Python -c option <python -c>`
@ -142,12 +144,24 @@ Tables
.. tabularcolumns:: |L|p{5cm}|R| .. tabularcolumns:: |L|p{5cm}|R|
+----+----------------+----+ .. table:: my table
| 1 | * Block elems | x |
| | * In table | | +----+----------------+----+
+----+----------------+----+ | 1 | * Block elems | x |
| 2 | Empty cells: | | | | * In table | |
+----+----------------+----+ +----+----------------+----+
| 2 | Empty cells: | |
+----+----------------+----+
Figures
-------
.. _my-figure:
.. figure:: img.png
My caption of the figure
Version markup Version markup