Added LaTeX formula support

Fixes #30