gpt4 book ai didi

latex - 如何在 Sphinx 中的图像前后插入一些空格

转载 作者:行者123 更新时间:2023-12-01 10:44:10 24 4
gpt4 key购买 nike

我通过 Sphinx 用 make latexpdf 创建了一个文档命令。

现在我遇到的问题是 LaTeX 将我的图片直接设置在文本的顶部和图像的底部,它放置了 3 或 4 个换行符。

是否有可能在图片顶部获得 1 个空间,在图片底部获得 1 个空间而没有
必须使用 \在语法上?

我的代码:

title:
===========

some text

.. image:: screenshots/manage_products.png

some more text

another title:
===========

编辑:这里有一个小截图向您展示我的问题。我还查看了 Sphinx 的主要文档(+ 语法文档),但没有找到解决此问题的答案!

enter image description here

顺便说一句:请忽略红色箭头。

最佳答案

您可以使用 .. figure::指令在图像周围添加您想要的额外间距。

title:
===========

some text

.. figure:: screenshots/manage_products.png

some more text

我也更喜欢使用 figure 指令,因为您的图像有一些额外的控制元素,例如标签。
.. figure::

Your figure text here

关于latex - 如何在 Sphinx 中的图像前后插入一些空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17882788/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com