A simple command line tool to convert TeX equations to SVG.
Project description
pytex2svg
A simple command line tool written in Python to convert TeX equations to SVG. Input can be read from stdin
, provided directly as command line argument, or read from a file.
Installation
pip install pytex2svg
Dependencies
matplotlib
Usage
usage: pytex2svg [-h] [-o OUTFILE] [-v] [input]
converts a TeX string to an SVG file
positional arguments:
input The TeX equation or file to be converted to svg,
defaults to stdin
optional arguments:
-h, --help show this help message and exit
-o OUTFILE, --outfile OUTFILE
Path or name of the output file, defaults to
"equation.svg". If more than one equation is provided,
the output files are numbered.
-v, --verbose Enable verbose output
Examples:
# from stdin
echo "\log_{2}10 \approx 3.322" | pytex2svg -o whybinary.svg
# as command line argument
pytex2svg "\log_{2}10 \approx 3.322" -o whybinary.svg
# from a file
pytex2svg examples/integral.tex -o whybinary.svg
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
pytex2svg-0.0.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
pytex2svg-0.0.1-py3-none-any.whl
(15.4 kB
view hashes)
Close
Hashes for pytex2svg-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ff86b9fc35f1074243655bffe9e7c1c2a8ba3a607c071202a3cb0a8561b7c2 |
|
MD5 | 90b28cf72c660b87507c15dfd7c4816d |
|
BLAKE2b-256 | acb334fdf03272c743f48d3d4c17dd6350cf8e3bbb1bcce53698c4bbff759c54 |