Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/smasher164/svglatex

svglatex takes a given latex document and produces an SVG image.
https://github.com/smasher164/svglatex

Last synced: 7 days ago
JSON representation

svglatex takes a given latex document and produces an SVG image.

Awesome Lists containing this project

README

        

# svglatex

svglatex takes a given latex document and produces an SVG image.

Usage:
```
go get -u github.com/smasher164/svglatex

svglatex [-inline] < foo.tex
```
It is a wrapper over `latex`, [`dvisvgm`](https://dvisvgm.de/), and [`svgo`](https://github.com/svg/svgo) and makes the following assumptions and promises:
* `latex` is already installed and has an "-output-directory" flag (used to store temporary files).
* `dvisvgm` is already installed.
* `svgo` is already installed.
* The latex document is input through Stdin.
* When successful, it will output the SVG markup to Stdout (everything else is diverted to Stderr).

The `-inline` flag causes svglatex to assume the input is an inline equation, and wraps it in the following
```latex
\documentclass{standalone}
\begin{document}

%THE INPUT GOES HERE%

\end{document}
```