pictex 0.1.0

CLI utility for converting LaTeX math expressions to PNG format
pictex-0.1.0 is not a library.

pictex

Description

pictex is a command-line tool that renders LaTeX mathematical expressions as PNG images, using pdflatex and dvipng under the hood.

Usage

Usage: pictex [OPTIONS] <expression>

Arguments:
  <expression>  LaTeX math expression

Options:
  -o, --output <file>  specify the output file for the image
  -d, --dpi <num>      set the output resolution [default: 500]
  -v, --verbose        print detailed progress information
  -h, --help           Print help
  -V, --version        Print version

Examples

$ pictex "E = mc^2"

Example 1

$ pictex "\sum\limits_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}"

Example 2

Requirements

  • pdflatex - LaTeX compiler
  • dvipng - DVI to PNG converter