Python sphinx 内联和多行方程式失败

Python sphinx 内联和多行方程式失败,python-sphinx,restructuredtext,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}} \} 它们显示为一个连续的内

我试图在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}} \}
仅显示为内联


有什么问题吗?

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