如何向重组文本 table 添加标题?
How can I add a caption to a restructuredText table?
我在 restructuredText 中有一个网格 table。有没有办法给它添加标题?
+----------+---------+
|Name |Age |
+==========+=========+
|Bill |39 |
+----------+---------+
|Jane |38 |
+----------+---------+
没有指令,所以和数字不一样:
.. figure:: strawberryicecream.png
Strawberry Ice Cream
哦,没关系,table
directive 有效。我之前尝试过,但没有正确缩进 table 定义。
.. table:: Personnel
+----------+---------+
|Name |Age |
+==========+=========+
|Bill |39 |
+----------+---------+
|Jane |38 |
+----------+---------+
我在 restructuredText 中有一个网格 table。有没有办法给它添加标题?
+----------+---------+
|Name |Age |
+==========+=========+
|Bill |39 |
+----------+---------+
|Jane |38 |
+----------+---------+
没有指令,所以和数字不一样:
.. figure:: strawberryicecream.png
Strawberry Ice Cream
哦,没关系,table
directive 有效。我之前尝试过,但没有正确缩进 table 定义。
.. table:: Personnel
+----------+---------+
|Name |Age |
+==========+=========+
|Bill |39 |
+----------+---------+
|Jane |38 |
+----------+---------+