Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/smasher164/svglatex
- Owner: smasher164
- License: mit
- Created: 2018-03-06T07:08:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T03:01:19.000Z (over 5 years ago)
- Last Synced: 2025-01-04T03:05:03.666Z (14 days ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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/svglatexsvglatex [-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}
```