diff --git a/Code/Markov/otbMRFEnergyPotts.h b/Code/Markov/otbMRFEnergyPotts.h
index 913c389774fcba36160a8a4bebc1598b4f984ad8..5ab4b2d0c6efe85fceff925c4416531c07817b6e 100644
--- a/Code/Markov/otbMRFEnergyPotts.h
+++ b/Code/Markov/otbMRFEnergyPotts.h
@@ -12,8 +12,8 @@ namespace otb
    *
    * This is the implementation of the Potts model for Markov classification, to be used for
    * regularization. Energy is:
-             * \f[  U(x_s,x_t) = -\beta \text{ if } x_s = x_t \f]
-             * \f[  U(x_s,x_t) = +\beta \text{ if } x_s \neq x_t \f]
+             * \f[  U(x_s,x_t) = -\beta \textrm{ if } x_s = x_t \f]
+             * \f[  U(x_s,x_t) = +\beta \textrm{ if } x_s \neq x_t \f]
              * with
              * - \f$ x_s \f$ the label on site s
              * - \f$ y_s \f$ the value on the reference image