An open API service indexing awesome lists of open source software.

https://github.com/gw31415/math2img

Convert mathematical expressions into images
https://github.com/gw31415/math2img

latex mathjax png rust svg tex

Last synced: 2 months ago
JSON representation

Convert mathematical expressions into images

Awesome Lists containing this project

README

          

# math2img

[![Crates.io](https://img.shields.io/crates/v/math2img?style=flat-square)](https://crates.io/crates/math2img)
[![Crates.io](https://img.shields.io/crates/d/math2img?style=flat-square)](https://crates.io/crates/math2img)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square)](LICENSE)

Convert mathematical expressions into images.

image

## Installation

### with Cargo

```bash
cargo install math2img
```

## Usage

```help
Convert mathematical expressions into images

Usage: math2img [OPTIONS] [MATH]

Arguments:
[MATH] Mathjax expression

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

## Screenshots

![output](https://github.com/gw31415/math2img/assets/24710985/01f96e75-2db5-42e2-854c-960a0587ca59)