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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
---
title: texmath
section: 1
footer: texmath manual
date: July 22, 2014
...
# NAME
texmath - convert between math formats.
# SYNOPSIS
texmath [*options*] [file\*]
# DESCRIPTION
`texmath` acts as a pipe, reading from stdin or from the specified
files and writing to stdout. It converts math in the specified input
format (see `-f` below) to math in the specified output format (see `-t`
below).
If `texmath` is invoked under the name `texmath-cgi` (via a symbolic
link, or through simple renaming), it will act as a CGI script. 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.
# OPTIONS
`-f` *FORMAT*
: Specify input ("from") format: `tex`, `mathml`, `omml`, `native`.
Defaults to `tex`.
`-t` *FORMAT*
: Specify output ("to") format: `tex`, `omml`,
`xhtml`, `mathml`, `pandoc`, `native`. Defaults to `mathml`.
`--inline`
: Use the inline display style.
`-h, --help`
: Print usage information.
`-V, --version`
: Print version.
# AUTHORS
John MacFarlane, Matthew Pickering, Jesse Rosenthal.
# SEE ALSO
The `texmath` source code and all documentation may be downloaded
from <http://github.com/jgm/texmath/>.
|