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

https://github.com/nwtgck/math2img

Convert LaTeX Math to image
https://github.com/nwtgck/math2img

cli crystal docker

Last synced: 8 months ago
JSON representation

Convert LaTeX Math to image

Awesome Lists containing this project

README

          

# math2img - Convert LaTeX Math to image [![Build Status](https://travis-ci.org/nwtgck/math2img.svg?branch=master)](https://travis-ci.org/nwtgck/math2img)

## Requirements

* [Docker](https://www.docker.com/)

## Installation

```bash
brew install nwtgck/homebrew-math2img/math2img
```

## Usage

```bash
math2img -e png sample1.math.tex
```
Then you can get `sample1.math.tex.png`

### `sample1.math.tex`

```tex
\[
e^{i\pi}+1=0
\]
```
=>

## Build Requirements

* [Crystal (Shards)](https://crystal-lang.org/)

## Build & Run

```bash
git clone
cd
shards build
./bin/math2img -e png samples/sample1.math.tex
```

Then you can get `sample1.math.tex.png`

(`./bin/math2img` is a generated binary file.)

## Build a Docker image

```bash
cd
docker build -t nwtgck/math2img ./docker
```

## Gallery