sphinx / reStructuredText - 块引号内的数学模式
sphinx / reStructuredText - math mode inside block quote
我试图在我的文档中引用一个来源,并且该来源包含数学符号。是否可以在块引号内使用乳胶数学符号?我在我的 python 文档字符串中尝试了以下内容,但没有成功。
.. pull-quote::
`"As density perturbations behave differently in a radiation
dominated universe versus a matter dominated one due to pressure
support, the scale of the particle horizon at the equality epoch
:math:`z_{\rm eq}` "`
.. math::
k_{\rm eq} = (2 \Omega_{\rm M} H_0^2 z_{\rm eq})^{1/2}
事实证明,您可以在块引号中执行此操作,但不能在斜体块(反引号)中执行此操作。如果你结束斜体块,把数学放进去,然后重新启动斜体块,一切都会好起来的。更新了下面的示例,
.. pull-quote::
`"As density perturbations behave differently in a
radiation dominated universe versus a matter dominated one
due to pressure support, the scale of the particle horizon
at the equality epoch` :math:`z_{\rm eq}` `more quote text
can go here"`
.. math::
k_{\rm eq} = (2 \Omega_{\rm M} H_0^2 z_{\rm eq})^{1/2}
我试图在我的文档中引用一个来源,并且该来源包含数学符号。是否可以在块引号内使用乳胶数学符号?我在我的 python 文档字符串中尝试了以下内容,但没有成功。
.. pull-quote::
`"As density perturbations behave differently in a radiation
dominated universe versus a matter dominated one due to pressure
support, the scale of the particle horizon at the equality epoch
:math:`z_{\rm eq}` "`
.. math::
k_{\rm eq} = (2 \Omega_{\rm M} H_0^2 z_{\rm eq})^{1/2}
事实证明,您可以在块引号中执行此操作,但不能在斜体块(反引号)中执行此操作。如果你结束斜体块,把数学放进去,然后重新启动斜体块,一切都会好起来的。更新了下面的示例,
.. pull-quote::
`"As density perturbations behave differently in a
radiation dominated universe versus a matter dominated one
due to pressure support, the scale of the particle horizon
at the equality epoch` :math:`z_{\rm eq}` `more quote text
can go here"`
.. math::
k_{\rm eq} = (2 \Omega_{\rm M} H_0^2 z_{\rm eq})^{1/2}