A script to convert LaTeX snippets to SVG
Project description
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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tex2svg-0.0.2.tar.gz
(25.9 kB
view details)
Built Distribution
tex2svg-0.0.2-py3-none-any.whl
(27.5 kB
view details)
File details
Details for the file tex2svg-0.0.2.tar.gz
.
File metadata
- Download URL: tex2svg-0.0.2.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9fbc5e97a8bd3e9a7066b5a5a5bd5d90cd81d007397629b3c2de1ec0c2ba27ce
|
|
MD5 |
70814c7c380540eeecacdceb5969b84f
|
|
BLAKE2b-256 |
05803f5b73fe88e16b4bd68bb53858d691428b1b95ad633e131e1de65646c072
|
File details
Details for the file tex2svg-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tex2svg-0.0.2-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3808b6aa4f024678c09bbbe6723f53e5a4b5e4264d312e81fc3d4689874c23d5
|
|
MD5 |
1359b89774568335ef43b5713168075e
|
|
BLAKE2b-256 |
b2b9ff15b7e3d21addbd5e0d2dc7203f68f8ac698910d30a99605d8877fd45a8
|