diff --git a/nifty5/library/inverse_gamma_operator.py b/nifty5/library/inverse_gamma_operator.py
index 004f9ee9f46c372ea5eba5ae247a0203f7f1d153..e61b77b2b1c80d30d2a7480c17d57b31f7f1a3b2 100644
--- a/nifty5/library/inverse_gamma_operator.py
+++ b/nifty5/library/inverse_gamma_operator.py
@@ -30,8 +30,8 @@ class InverseGammaOperator(Operator):
 
     The pdf of the inverse gamma distribution is defined as follows:
 
-    .. math::
-        \frac {\beta ^{\alpha }}{\Gamma (\alpha )}}x^{-\alpha -1}\exp \left(-{\frac {\beta }{x}}\right)
+    .. math ::
+        \\frac{\\beta^\\alpha}{\\Gamma(\\alpha)}x^{-\\alpha -1}\\exp \\left(-\\frac{\\beta }{x}\\right)
 
     That means that for large x the pdf falls off like x^(-alpha -1).
     The mean of the pdf is at q / (alpha - 1) if alpha > 1.