tex2svg is a simple Node.js script which takes in TeX math equations via CLI arguments and returns the SVG to the STDOUT.
The STDOUT can then be piped into SVG files.
Examples are in the Makefile.
Here’s Euler’s identity, though!
node ./tex2svg.js "e^{i \\pi} + 1 = 0" > euler.svgNo compiling, since it’s Node. Just run npm install to get MathJax.
For usage, see the Makefile.
The currently supported flags include:
|
Outputs white text. Black by default. |