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
- Host: GitHub
- URL: https://github.com/nwtgck/math2img
- Owner: nwtgck
- Created: 2017-11-12T17:27:39.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2018-10-28T23:45:30.000Z (over 7 years ago)
- Last Synced: 2025-03-31T23:41:22.812Z (12 months ago)
- Topics: cli, crystal, docker
- Language: Crystal
- Size: 57.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# math2img - Convert LaTeX Math to image [](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





