math2img
Version, currently 0.4.07 versions
github.com/nwtgck/math2img
Convert LaTex Math format to image
7 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
math2img:
github: nwtgck/math2img
version: ~> 0.4.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Ryo Ota <nwtgck@gmail.com>
- Target
math2imgfrom src/main.cr
Dependencies
This version declares no dependencies.
README
# math2img - Convert LaTeX Math to image [](https://travis-ci.org/nwtgck/math2img)
## Requirements
* [Docker](https://www.docker.com/)
## Installation
```bash
brew tap nwtgck/math2img
brew install 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
\]
```
=>
<img src="demos/demo1.svg" width="200">
## Build Requirements
* [Crystal (Shards)](https://crystal-lang.org/)
## Build & Run
```bash
git clone <this repo url>
cd <this repo>
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 <this repo>
docker build -t nwtgck/math2img ./docker
```
## Gallery
<img src="demos/sample2.math.tex.svg" height="50"><br>
<img src="demos/sample3.math.tex.svg" height="50"><br>
<img src="demos/sample4.math.tex.svg" height="50"><br>
<img src="demos/sample5.math.tex.svg" height="50"><br>
<img src="demos/sample6.math.tex.svg" height="50"><br>
<img src="demos/sample7.math.tex.svg" height="50"><br>
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.0- Tagged
- Jan 10, 2018
- Commit
c717093e70f1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nwtgck/math2img
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 7