MathJax-node icon indicating copy to clipboard operation
MathJax-node copied to clipboard

use 'tex2svg' cannot generate formula correctly

Open Air-EL opened this issue 2 years ago • 1 comments

command is:

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

the result is a

but I want b

Air-EL avatar Sep 27 '23 07:09 Air-EL

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.

dpvc avatar Sep 27 '23 13:09 dpvc