#png #svg #cli #tex #mathjax

app math2img

Convert mathematical expressions into images

10 releases

0.1.9 Jan 2, 2024
0.1.8 Nov 1, 2023
0.1.7 Oct 31, 2023

#315 in Command-line interface

Download history 44/week @ 2024-07-29 12/week @ 2024-09-23

118 downloads per month

Apache-2.0

15KB
155 lines

math2img

Crates.io Crates.io License

Convert mathematical expressions into images.

image

Installation

with Cargo

cargo install math2img

Usage

Convert mathematical expressions into images

Usage: math2img [OPTIONS] [MATH]

Arguments:
  [MATH]  Mathjax expression

Options:
      --help                Print help
  -o, --output <OUTPUT>     Output filename
      --png                 Output as PNG. If the argument `output` has a `.png` extension, it will be set automatically
      --completion <SHELL>  Generate shell completion [possible values: bash, elvish, fish, powershell, zsh]
  -w, --width <WIDTH>       Number of horizontal dots in PNG image
  -h, --height <HEIGHT>     Number of vertical dots in PNG image
  -V, --version             Print version

Screenshots

output

Dependencies

~77MB
~1.5M SLoC