相关疑难解决方法(0)

在Sphinx和reStructuredText中使用数字引用数字

在编写将使用Sphinx处理的RST时,我无法在引用数字时使用Sphinx LaTeX输出来使用图号.例如,这段代码:

The lemmings are attacking, as can be seen in :ref:`figlem`.

.. _figlem:

.. figure:: _static/lemming_invasion.* 

   They're coming!
Run Code Online (Sandbox Code Playgroud)

将转换成这个:

旅行者正在攻击,正如他们即将到来的那样!

/ image到这里/

图1.1:他们来了!

但我想要的是"标准"LaTeX引用数字的方式,如下所示:

旅鼠正在攻击,如图1.1所示

我该如何实现这一目标?我目前使用的代码是Sphinx手册推荐的代码,但它不会产生我想要的输出.

restructuredtext python-sphinx

30
推荐指数
3
解决办法
1万
查看次数

标签 统计

python-sphinx ×1

restructuredtext ×1