Skip to main content

A script to convert LaTeX snippets to SVG

Project description


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.

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tex2svg, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size tex2svg-0.0.1-py3-none-any.whl (27.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tex2svg-0.0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page