Converts LaTeX files to PNG graphics (useful to create mathematical formulas as images).
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian
docs/examples
man
src
AUTHORS
LICENSE
README.md
TODO.md

README.md

Latex2png

Copyright (c) 2008,2011,2016 Jeremie DECOCK (http://www.jdhp.org)

Description

Converts LaTeX listings to PNG graphics (useful to create mathematical formulas as images).

Usage

latex2png TEX_FILE

latex2png [OPTION]

Options

-h, --help
      display this help and exit

-v, --version
      output version information and exit

Example

Given a example.tex file like this:

\documentclass{minimal}
\usepackage{amssymb,amsmath,cancel}
\begin{document}
$$
    \mathcal{L} = - \frac{1}{4} F_{\mu \nu} F^{\mu \nu} + i \bar{\psi} \cancel{D} \psi + h.c. + \bar{\psi}_i y_{ij} \psi_j \phi + h.c. + |D_\mu \phi|^2 - V(\phi)
$$
\end{document}

you can convert it to PNG graphics using:

latex2png example.tex

which gives:

alt text

See documentation directory (usually /usr/share/doc/latex2png) for more examples.

Reporting bugs

To search for bugs or report them, please use the latex2png bug tracker at https://github.com/jeremiedecock/latex2png/issues

Copyright

Latex2png is distributed under the MIT License.