MathJax-node
MathJax-node copied to clipboard
use 'tex2svg' cannot generate formula correctly
command is:
cd simple
node -r esm tex2svg e^{2} > a.svg
the result is
but I want
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.