The texmath package

[Tags: gpl, library]

The texmath library provides functions to read and write formats used to represent mathematics. The package is able to read and write both TeX math and presentation MathML. Support is also included for writing OMML (Office Math Markup Language, used in Microsoft Office) and pandoc's native format (allowing conversion, via pandoc, to a variety of different markup formats). It 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 Unicode 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.


Properties

Versions0.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 (info)
Dependenciesbase (==3.*), containers, mtl, pandoc-types (>=1.12.3.3), parsec (>=3), xml or
base (>=4.5 && <5), containers, mtl, pandoc-types (>=1.12.3.3), parsec (>=3), syb, xml
LicenseGPL
AuthorJohn MacFarlane, Matthew Pickering
Maintainerjgm@berkeley.edu
StabilityExperimental
CategoryText
Home pagehttp://github.com/jgm/texmath
Source repositoryhead: git clone git://github.com/jgm/texmath.git
Executablestexmath
Upload dateThu Aug 7 22:23:41 UTC 2014
Uploaded byJohnMacFarlane
DistributionsDebian:0.6.6.1, Fedora:0.6.6.1, FreeBSD:0.6.1.5, NixOS:0.8
Downloads44955 total (4861 in last 30 days)

Modules

[Index]

Flags

NameDescriptionDefault
executableCompile test executable.Disabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees