1 unstable release
Uses new Rust 2024
| 0.1.0 | Mar 5, 2026 |
|---|
#373 in Math
9KB
105 lines
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"

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

Requirements
pdflatex- LaTeX compilerdvipng- DVI to PNG converter
Dependencies
~1.3–2MB
~34K SLoC