mathjax / MathJax

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

Centering in limits #1997

Closed cebola2 closed 6 years ago

cebola2 commented 6 years ago

Latex centers subscripts in displayed limits as, e.g., imagem MathJax centers subscripts in limits somewhat to the right of where they should be imagem The examples come from https://cdi2tp.math.tecnico.ulisboa.pt/texto/7

dpvc commented 6 years ago

OK, I finally tracked this down. It turns out to be a rather complex interaction between the fast preview, the assistive extensions, and some code that tries to handle special cases of MathML spacing when TeX spacing is being used.

The easiest fix for now is probably to add

MathJax.Hub.Register.StartupHook("mml Jax Ready", function() {
  MathJax.ElementJax.mml.mo.prototype.useMMLspacing = 0x03;
})

to your configuration script for MathJax. That will disable the MathML spacing that is causing the issue.

cebola2 commented 6 years ago

Thanks! It works perfectly. Will a more permanent fix be in version 3?

dpvc commented 6 years ago

The MathML spacing issue that is at the heart of the problem is handled differently in v3, and there is no fast preview, so it should not be something that will affect version 3.

cebola2 commented 6 years ago

Great! Closing...

dpvc commented 6 years ago

I'm reopening the tracker. I'd still like to fix it for v2.

dpvc commented 6 years ago

==> In testsuite MathMLToDisplay/issue1997.html