Scroll to navigation

LATEX2PNG(1) User LATEX2PNG(1)

NAME

latex2png - Convert a LaTeX file to a PNG image

DESCRIPTION

latex2png -- Convert a LaTeX file to a PNG image

SYNOPSIS

latex2png [-d density] [-h] [-k] [-c] [-g] [-m] [-H home dir] file[.tex|.eps]

DESCRIPTION

The latex2png command converts a LaTeX file into a PNG image. The first page is translated into an image at the specified resolution. latex2png can also be used to convert encapsulated postscript (EPS) files to PNG images.

OPTIONS

-c produce color image

density is the number of dots per inch to use in the created image (default 144 dpi)

-g produce gray images

home_dir is a directory to be included in search path (default is directory that contains the LaTeX file). This is used to create PNG images in another directory (e.g., /tmp) and still allow LaTeX to find files that it needs to include.
(default)

EXAMPLES

#create /tmp/file.png at 144 dpi
#create file.png
#create file.png via latex
#search the cwd for image files

SEE ALSO

latex2png is a part of latex2rtf and has a special mode to assist in finding the baseline of a latex equation. Documentation for latex2rtf may be found in latex2rtf.info, the PDF file latex2rtf.pdf or the HTML file latex2rtf.html which are made from the TeXInfo source file latex2rtf.texi.

October 2012 latex2png 1.90