mathjax / MathJax-node

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

use 'tex2svg' cannot generate formula correctly #492

Open Air-EL opened 1 year ago

Air-EL commented 1 year ago

command is:

cd simple
node -r esm tex2svg e^{2} > a.svg

the result is a

but I want b

dpvc commented 1 year ago

Your commands work properly for me. What OS are you using, and what command shell? it may be that the ^ has a special meaning in your shell, and is not being passed to tex2svg. Try

node -r esm tex2svg "e^{2}" > a.svg

or

node -r esm tex2svg 'e^{2}' > a.svg

and see if one of those works.