MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Latex comment after "\end{equation}" ignored.

Open buhtz opened this issue 1 year ago • 1 comments

Issue Summary

Using your demo with this piece of code:

\begin{equation}                        % arbitrary environments,
x=\sqrt{b}                              % even tables, figures
\end{equation}                          % etc

Is rendered like this:

grafik

You see the "lost" % etc after the equation?

Technical details:

Your demo with current Firefox from latest Debian 11.

buhtz avatar Mar 30 '24 16:03 buhtz

MathJax only processes TeX that is within math delimiters. In your case, those are the \begin{equation} and \end{equation}, so the % etc is outside of the mathematics, and MathJax does not handle that. It is part of the rest of the HTML document, so follows HTML rules, not TeX rules.

So that is the expected behavior from MathJax.

dpvc avatar Mar 30 '24 16:03 dpvc