Closed CrazyChenzi closed 4 years ago
The problem is not with your configuration, but with your TeX string. In javascript stings, the backslash is a special character (used to get things like newlines as \n
, tabs as \t
and so on), so to get a literal backslash in the string, you need to use \\
. So your TeX string should be
var math = "X\\ =\\ \\sqrt{10}";
(though it would be better as "X = \\sqrt{10}"
; in general you should not modify the spacing, which is set up be carefully balanced).
Also, you don't need the MathJax
block in your configuration, as none of the values supplied there pertain to mathjax-node.
thank you very much @dpvc
I hope to get like this
but....It is like this
Is there a problem with my configuration?