Skip to content

bratpeki/tex2svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tex2svg, in Node, with MathJax!

What is it?

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.

Example usage

Examples are in the Makefile.

Here’s Euler’s identity, though!

node ./tex2svg.js "e^{i \\pi} + 1 = 0" > euler.svg

Compilation and usage

No compiling, since it’s Node. Just run npm install to get MathJax.

For usage, see the Makefile.

The currently supported flags include:

-w

Outputs white text. Black by default.

About

SVG image generation from TeX math strings, using only one dependency

Topics

Resources

Stars

Watchers

Forks