带标题的休息图像网格? [英] reST image grid with captions?

查看:51
本文介绍了带标题的休息图像网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为此问题的扩展:如何在每个问题下添加说明使用 Sphinx 和 reStructuredText 的网格图像?

As an extension to this question: how can you add a description under each of the gridded images using Sphinx and reStructuredText?

例如,一张桌子,三张图片,每张图片下方都有一个标题.

For example, a table, three images across with a caption centered under each image.

推荐答案

我不确定仅使用 figure 指令是否可行,就像图像指令一样.然而,虽然看起来很可怕,但您可以将三个数字包裹在一张桌子中.比如下面的reStructuredText

I am not sure if this is possible with just the figure directive, like it is with the image directive. However, whilst horrible to look at, you could wrap the three figures in a table. For example, the following reStructuredText

+-----------------------------------------+-----------------------------------------+-----------------------------------------+
| .. figure:: http://placehold.it/150x150 | .. figure:: http://placehold.it/150x150 | .. figure:: http://placehold.it/150x150 |
|   :alt: map to buried treasure          |   :alt: map to buried treasure          |   :alt: map to buried treasure          |
|                                         |                                         |                                         |
|   This is the caption of the figure (a  |   This is the caption of the figure (a  |   This is the caption of the figure (a  |
|   simple paragraph).                    |   simple paragraph).                    |   simple paragraph).                    |
+-----------------------------------------+-----------------------------------------+-----------------------------------------+

生产

这篇关于带标题的休息图像网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆