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

Version on this page:
LTS Haskell 6.35:
Stackage Nightly 2017-01-17:
Latest on Hackage:

See all snapshots latex-formulae-image appears in

BSD-3-Clause licensed by Liam O'Connor
This version can be pinned in stack with:latex-formulae-image-,2338

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.