The texmath package

[Tags: gpl, library]

The texmath library provides functions to read and write TeX math, presentation MathML, and OMML (Office Math Markup Language, used in Microsoft Office). Support is also included for converting math formats to pandoc's native format (allowing conversion, via pandoc, to a variety of different markup formats). The TeX reader supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros. (See here for a live demo of bidirectional conversion between LaTeX and MathML.)

The package also includes several utility modules which may be useful for anyone looking to manipulate either TeX math or MathML. For example, a copy of the MathML operator dictionary is included.

Use the executable flag to install a standalone executable, texmath, that by default reads a LaTeX formula from stdin and writes MathML to stdout. With flags all the functionality exposed by Text.TeXMath can be accessed through this executable. (Use the --help flag for a description of all functionality)

The texmath executable can also be used as a CGI script, when renamed as texmath-cgi. It will expect query parameters for from, to, input, and optionally inline, and return a JSON object with either error and a message or success and the converted result.


Versions0.1,,,,, 0.1.1, 0.2,,,,, 0.3,,,,,,, 0.4, 0.5,,,,, 0.6,,,,,,, 0.6.1,,,,,, 0.6.3, 0.6.4, 0.6.5,,, 0.6.6,,,, 0.6.7, 0.7,,, 0.8,,, 0.8.1, 0.8.2,, (info)
Change logchangelog
Dependenciesaeson, base (>=4.5 && <5), bytestring, containers, mtl, network (<2.6), network-uri (>=2.6), pandoc-types (>= && <1.13), parsec (>=3), split, syb, texmath, text, xml
AuthorJohn MacFarlane, Matthew Pickering
Home page
Source repositoryhead: git clone git://
UploadedSat Jul 4 22:11:26 UTC 2015 by JohnMacFarlane
DistributionsDebian:0.8.2, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:
Downloads63482 total (1388 in last 30 days)
StatusDocs available [build log]
Last success reported on 2015-07-04 [all 1 reports]




executableCompile test executable.Disabled
network-uriGet Network.URI from the network-uri packageEnabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees