内联和多线方程失败

时间:2012-11-13 19:54:51

标签: python-sphinx restructuredtext

我正在尝试在Sphinx Python文档系统中编写一些方程式。我一直试图让多线方程起作用:

.. math:: 

   P_{Survival} (L) = P_{S} (L) = exp \{ - \frac{ \sigma (E) \rho L}{m_{T}} \}

   P_{Interaction} (L) = P_{I} (L) = = 1 - P_{S} (L) = 1 - exp \{ - \frac{\sigma \rho L}{m_{T}} \}

它们显示为一个连续的内联方程,而不是两个方程的块。它们单独工作,因此它不能用于TeX语法。另外,像这样的块类型方程

.. math:: 

   P_{Interaction} (L) = P_{I} (L) = = 1 - P_{S} (L) = 1 - exp \{ - \frac{\sigma \rho L}{m_{T}} \}

仅显示为内联。

任何可能出错的建议?

1 个答案:

答案 0 :(得分:0)

修正了问题。 mathplotlib.sphinxext.mathmpl是罪魁祸首。