mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.02k stars 1.16k forks source link

Two equation arrays with ¥begin{align*} in one segment became not rendered by new release 2.0 #195

Closed ghost closed 12 years ago

ghost commented 12 years ago

It worked in last one 1.1. Any solution? i.e. http://library.geo.jp/geodesy/3_00.html

$$ ¥left. ¥begin{align} a¥¥ b ¥end{align} ¥right¥}

¥begin{align} c¥¥ d ¥end{align} $$

dpvc commented 12 years ago

I am not able to reproduce the problem. You page seems to render correctly for me. What browser and OS are you using?

ghost commented 12 years ago

Please compare with mathJax1.1 http://library.geo.jp/geodesy/3_00old.html The second ¥begin{align*} is missing in the latest one. http://library.geo.jp/geodesy/3_00.html

My current environment is Mac OS 10.6.8 Snow Leopard

[Math Processing Error] with IE 7.0.5730.13 and Opera11.61

dpvc commented 12 years ago

OK, I see what the problem is. The align environment is a display environment in LaTeX, and so is full-width and can not be embedded within a larger expression. MathJax v1.1 incorrectly handled this situation and allowed it to be used as part of a larger expression, as you have done here. But LaTeX does not allow that (it gives the message "erroneous nesting of equation environments"). MathJax v2.0 now correctly enforces those same rules. You probably mean to use \begin{aligned}...\end{aligned} rather than \begin{align*}...\end{align*}, as the aligned environment is the one that can be used internally within a larger expression.

Davide

ghost commented 12 years ago

Thank you very much for your quick and detailed explanation.

dpvc commented 12 years ago

No problem. Good luck with your site.