pictex 0.1.0

CLI utility for converting LaTeX math expressions to PNG format
# 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

```bash
$ pictex "E = mc^2"
```

![Example 1](docs/images/example-equation.png)

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

![Example 2](docs/images/basel-problem.png)

## Requirements

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