#math-expressions #png #svg #tex #cli #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

#272 in Command-line interface

Download history 8/week @ 2024-01-01 7/week @ 2024-02-26 63/week @ 2024-04-01

63 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

~85MB
~1.5M SLoC