A library for rendering LaTeX formulae as images using an actual LaTeX installation

LTS Haskell 6.30:
Stackage Nightly 2017-01-17:
Latest on Hackage:
BSD3 licensed by Liam O'Connor
Maintained by

Module documentation for

This library provides the basic infrastructure necessary to convert LaTeX formulae into images, using a real LaTeX installation. This is useful in particular for showing formulae on websites, where using alternatives like MathJax is not an option (e.g, when you want to use various LaTeX packages that MathJax doesn't support).

This library requires latex, dvips and ImageMagick's convert to be present in the system. convert needs to understand PostScript files.

We also use a few tricks to compute where the baseline is in the image, so these images can be effectively typeset inline with other text.

The companion library to this, latex-formulae-pandoc, provides useful tools to integrate this library with pandoc, when generating HTML documents.

comments powered byDisqus