在restructuredtext中引用表

时间:2012-10-04 08:59:49

标签: restructuredtext

无论如何在RestructuredText中引用表?类似于见表`referencetable`_
(我看到了一些引用数字的变通方法。虽然找不到引用表的方法..)

谢谢!

1 个答案:

答案 0 :(得分:2)

您只需定义hyperlink target

即可
Here is table-1_.

.. _table-1:

+------------+------------+-----------+
| Header 1   | Header 2   | Header 3  |
+============+============+===========+
| body row 1 | column 2   | column 3  |
+------------+------------+-----------+
| body row 2 | Cells may span columns.|
+------------+------------+-----------+
| body row 3 | Cells may  | - Cells   |   
+------------+ span rows. | - contain |
| body row 4 |            | - blocks. |
+------------+------------+-----------+