Home

Awesome

latex-parser.js

Use:

In node.js

Add latex-parser dependency to package.json

// package.json

  "dependencies": {
    ...

    "latex-parser": "git://github.com/rap1ds/latex-parser.js.git"
  }

In your code:

var parser = require('latex-parser');
var result = parser.parse(/* LaTeX document */);

See examples/node

In browser, with RequireJs

var parser = require('latex-parser');
var result = parser.parse(/* LaTeX document */);

Disclaimer: This hasn't been tested very well.

In browser, without RequireJs

var parser = window.LatexParser;
var result = parser.parse(/* LaTeX document */);

Disclaimer: This hasn't been tested very well.

Build:

$ npm install
$ grunt build

Test:

$ grunt test