Skip to content

RyanMarcus/tex2svg

Repository files navigation

tex2svg

pip3 install tex2svg

A simple program to convert a LaTeX equations to SVGs.

# for "inline mode" LaTeX
echo "x^2" | tex2svg > x2.svg 

# for "block" LaTeX
echo "x^2" | tex2svg --block > x2.svg

Depends on pdflatex, pdfcrop, pdf2svg, and svgo. On Arch Linux, you can install these with:

sudo pacman -S pdf2svg texlive-most npm
sudo npm install -g svgo

This program automatically caches outputs. The cache is stored in ~/.tex2svg.

About

No description, website, or topics provided.

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published