Equations in doxygenesis

I am including amsmath in my doxygen and I wrote:

\f{equation}{
  x=2 
\f}

      

but the result in doxygen is

\begin{equation} x=2 \end{equation}

      

not an equation

x=2

      

Does anyone know what is going wrong?

+3


source to share


2 answers


You do it right, I do it and it works. The page briefly displays \begin{equation} x=2 \end{equation}

and then displays the correct equation.

Double check what you have USE_MATHJAX = YES

in your config file. The default isNO

See the USE_MATHJAX link in the Doxygen link.



If no value is specified YES

, the page displaying the equation may not include mathjax scripts (I haven't tested):

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>

      

+3


source


Use instead

\f$ x=2 \f$

      



which outputs the inline math formula.

Ref: Doxygen Including formulas

0


source







All Articles