David Duran
David Duran

Reputation: 1826

LaTeX in the web (equations enumeration)

I have a web where I put some equations using MathJAX in LaTeX language. The thing is that all goes right, but when I write something like this:

\begin{equation}
  The equation...
\end{equation}

it doesn't enumerate the equation, while using it in a pure LaTeX environment, it perfectly enumerates the equations. I wonder to know if I'm wrong and if there is a way to enumerate the equations (at the right side) in an html file. Thanks in advance.

Upvotes: 1

Views: 472

Answers (1)

Lars Kotthoff
Lars Kotthoff

Reputation: 109232

According to the documentation, you need to turn this on explicitly like so:

MathJax.Hub.Config({
  TeX: { equationNumbers: { autoNumber: "AMS" } }
});

This will give you AMS-style numbering. You can also specify "all" to number every displayed equation.

Upvotes: 3

Related Questions