mathjax 0.1.1

A rust interface to MathJax
Documentation
1
2
3
4
5
6
7
8
//! Renders the expression `f(x)=\frac{1}{x}` into the file `test.png` with green text.

fn main() {
    let renderer = mathjax::MathJax::new().unwrap();
    let mut res = renderer.render("f(x)=\\frac{1}{x}").unwrap();
    res.set_color("green");
    res.into_image(10.0).unwrap().save("test.png").unwrap();
}