CLI for generating beautiful SVG/PNG mathematical image from LaTeX syntax
npm install -g math2image
echo "e^{i \pi} + 1 = 0" | math2image > euler-identity.svg
math2image sample7.math.tex
math2image -o output.svg sample7.math.tex
math2image --to-png --png-width=500 sample7.math.tex
% (from: https://en.wikibooks.org/wiki/LaTeX/Mathematics)
f(n) =
\begin{cases}
n/2 & \quad \text{if } n \text{ is even}\\
-(n+1)/2 & \quad \text{if } n \text{ is odd}
\end{cases}