mathjax / MathJax-node

MathJax for Node
Apache License 2.0
615 stars 97 forks source link

[CommonHTML] issues with vectors #355

Closed roman-spiridonov closed 7 years ago

roman-spiridonov commented 7 years ago

I found this issue when updating mathjax-node for mathjax-node-page project. The latter has a nice test.html file. If you convert it using v1.2.0 for mjnode you will get the following vector overlap issues: image

Below are the formula contents.

    \begin{align}
      \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
      \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
      \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
      \nabla \cdot \vec{\mathbf{B}} & = 0
    \end{align}

UPD: actually I am not sure that it was v1.2.0 update that caused the issue, so changed the issue title.

pkra commented 7 years ago

Thanks for the report.

This is a regression due to changes in MathJax v2.7.2 (adding new fonts) and a hardcoded value of fontURL.

To workaround this, configure fontURL manually to 2.7.2 (instead of 2.7.0).

pkra commented 7 years ago

Fixed in develop.