texmath: Conversion of LaTeX math formulas to MathML or OMML.

[ gpl, library, text ] [ Propose Tags ]

The texmathml library provides functions to convert LaTeX math formulas to presentation MathML (which can be used in HTML) or OMML (Office Math Markup Language, used in Microsoft Office). It supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros.

Use the test flag to install a standalone executable, texmath, that reads a LaTeX formula from stdin and writes MathML to stdout.

Use the cgi flag to install a cgi script, texmath-cgi.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
cgi

Compile cgi executable.

Disabled
test

Compile test executable.

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.1, 0.2, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.3, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.3.1.3, 0.3.1.4, 0.3.1.5, 0.4, 0.5, 0.5.0.1, 0.5.0.2, 0.5.0.3, 0.5.0.4, 0.6, 0.6.0.1, 0.6.0.2, 0.6.0.3, 0.6.0.4, 0.6.0.5, 0.6.0.6, 0.6.1, 0.6.1.1, 0.6.1.2, 0.6.1.3, 0.6.1.4, 0.6.1.5, 0.6.3, 0.6.4, 0.6.5, 0.6.5.1, 0.6.5.2, 0.6.6, 0.6.6.1, 0.6.6.2, 0.6.6.3, 0.6.7, 0.7, 0.7.0.1, 0.7.0.2, 0.8, 0.8.0.1, 0.8.0.2, 0.8.1, 0.8.2, 0.8.2.1, 0.8.2.2, 0.8.3, 0.8.4, 0.8.4.1, 0.8.4.2, 0.8.5, 0.8.5.1, 0.8.6, 0.8.6.1, 0.8.6.2, 0.8.6.3, 0.8.6.4, 0.8.6.5, 0.8.6.6, 0.8.6.7, 0.9, 0.9.1, 0.9.1.1, 0.9.2, 0.9.3, 0.9.4, 0.9.4.1, 0.9.4.2, 0.9.4.3, 0.9.4.4, 0.10, 0.10.1, 0.10.1.1, 0.10.1.2, 0.11, 0.11.0.1, 0.11.1, 0.11.1.1, 0.11.1.2, 0.11.2, 0.11.2.1, 0.11.2.2, 0.11.2.3, 0.11.3, 0.12, 0.12.0.1, 0.12.0.2, 0.12.0.3, 0.12.1, 0.12.1.1, 0.12.2, 0.12.3, 0.12.3.1, 0.12.3.2, 0.12.3.3, 0.12.4, 0.12.5, 0.12.5.1, 0.12.5.2, 0.12.5.3, 0.12.5.4, 0.12.5.5, 0.12.6, 0.12.7, 0.12.7.1, 0.12.8, 0.12.8.1, 0.12.8.2, 0.12.8.3, 0.12.8.4, 0.12.8.5, 0.12.8.6, 0.12.8.7 (info)
Change log changelog
Dependencies base (>=3 && <5), cgi, containers, json, pandoc-types, parsec (>=3), syb, utf8-string, xml [details]
License LicenseRef-GPL
Author John MacFarlane
Maintainer jgm@berkeley.edu
Category Text
Home page http://github.com/jgm/texmath
Source repo head: git clone git://github.com/jgm/texmath.git
Uploaded by JohnMacFarlane at 2014-06-02T20:47:41Z
Distributions Arch:0.12.8.4, Debian:0.12.0.2, Fedora:0.12.8.3, FreeBSD:0.8.3, LTSHaskell:0.12.8.6, NixOS:0.12.8.6, Stackage:0.12.8.6, openSUSE:0.12.8.6
Reverse Dependencies 7 direct, 164 indirect [details]
Executables texmath-cgi, texmath
Downloads 205601 total (955 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]

Readme for texmath-0.6.6.2

[back to package description]

texmath

texmath is a Haskell library for converting LaTeX math to MathML and OMML (the math format used in Microsoft Office). It is used by pandoc and gitit.

You can try it out online here. (Note that the math it produces will be rendered correctly only if your browser supports MathML. Firefox does; Safari and Chrome do not.)

By default, only the Haskell library is installed. To install a test program, texmath, use the test Cabal flag:

cabal install -ftest

texmath reads a LaTeX formula from stdin and writes a standalone xhtml file to stdout. You can run the test suite thus:

cd tests
sh runtests.sh

Macro definitions may be included before the formula.

The cgi Cabal flag will cause a CGI binary, texmath-cgi, to be produced:

cabal install -fcgi

The file cgi/texmath.html contains an example of how it can be used.

Thanks to John Lenz for many contributions.