mathjax / MathJax-node

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

'\nolimits is allowed only on operators' which render right in mathjax v3 #470

Open adamma1024 opened 3 years ago

adamma1024 commented 3 years ago

I render this LaTeX in https://www.mathjax.org/#demo , nothing is wrong. But when I render with mathjax-node v2.1.1, it report an error '\nolimits is allowed only on operators'. What should I do to solve this problem?

\log \nolimits (M\cdot N)=\log_a \nolimits M+ \log \nolimits_aN(a > 0,a \neq 1,M > 0,N > 0
dpvc commented 3 years ago

MathJax version 2 doesn't handle \log_a \nolimits; in version 2, the \nolimits must immediately follow the \log, as in \log\nolimits_a.

My recommendation would be to move to v3's node-based support rather than MathJax-node. See the MathJax node demos for examples.

adamma1024 commented 3 years ago

MathJax version 2 doesn't handle \log_a \nolimits; in version 2, the \nolimits must immediately follow the \log, as in \log\nolimits_a.

My recommendation would be to move to v3's node-based support rather than MathJax-node. See the MathJax node demos for examples.

thx~