File: README.markdown

package info (click to toggle)
haskell-texmath 0.6.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 780 kB
  • ctags: 2
  • sloc: haskell: 1,726; sh: 32; makefile: 4
file content (37 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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].

[pandoc]: http://github.com/jgm/pandoc
[gitit]: http://gitit.net

You can [try it out online here](http://johnmacfarlane.net/texmath.html).
(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.