.TH "texmath" "1" "July 22, 2014" "texmath manual" "" .SH NAME .PP texmath \- convert between math formats. .SH SYNOPSIS .PP texmath [\f[I]options\f[]] [file*] .SH DESCRIPTION .PP \f[C]texmath\f[] 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[C]\-f\f[] below) to math in the specified output format (see \f[C]\-t\f[] below). .PP If \f[C]texmath\f[] is invoked under the name \f[C]texmath\-cgi\f[] (via a symbolic link, or through simple renaming), it will act as a CGI script. It will expect query parameters for \f[C]from\f[], \f[C]to\f[], \f[C]input\f[], and optionally \f[C]inline\f[], and return a JSON object with either \f[C]error\f[] and a message or \f[C]success\f[] and the converted result. .SH OPTIONS .TP .B \f[C]\-f\f[] \f[I]FORMAT\f[] Specify input ("from") format: \f[C]tex\f[], \f[C]mathml\f[], \f[C]omml\f[], \f[C]native\f[]. Defaults to \f[C]tex\f[]. .RS .RE .TP .B \f[C]\-t\f[] \f[I]FORMAT\f[] Specify output ("to") format: \f[C]tex\f[], \f[C]omml\f[], \f[C]xhtml\f[], \f[C]mathml\f[], \f[C]pandoc\f[], \f[C]native\f[]. Defaults to \f[C]mathml\f[]. .RS .RE .TP .B \f[C]\-\-inline\f[] Use the inline display style. .RS .RE .TP .B \f[C]\-h,\ \-\-help\f[] Print usage information. .RS .RE .TP .B \f[C]\-V,\ \-\-version\f[] Print version. .RS .RE .SH AUTHORS .PP John MacFarlane, Matthew Pickering, Jesse Rosenthal. .SH SEE ALSO .PP The \f[C]texmath\f[] source code and all documentation may be downloaded from .