NAME

latex-math2png - convert LaTex math notation into a PNG image


SYNOPSIS

latex-math2png [dvipng-options...]


DESCRIPTION

latex-math2png reads LaTex math notation on standard input and writes a PNG image to standard output. Any options are passed to dvipng(1).


EXAMPLES

Make a pretty equation in big text. The -D 1500 is passed to dvipng(1); the <-x> option would probably be a better choice.

 echo 'y = \int_0^\infty \gamma^2 \cos(x) dx' \
 | latex-math2png -D 1500 > eqn.png


ENVIRONMENT

$TMPDIR, the location for the work area. Default: /tmp


CREDITS

The mechanism is shamelessly derived from Andrew Kuchling's ``MT-Math: LaTeX Math for Movable Type'' eqhtml.py, detailed here: http://www.amk.ca/python/code/mt-math which in turn derives from Kjell Magne Fauske's code, available here: http://fauskes.net/nb/htmleqII/


SEE ALSO

latex(1), dvipng(1)


AUTHOR

Cameron Simpson <cs@zip.com.au> 02feb2006