Skip to main content

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

Metadata

Release files for pytex2svg 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytex2svg 0.0.1
File Size Uploaded
pytex2svg-0.0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytex2svg 0.0.1
File Interpreter ABI Platform
pytex2svg-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.2 kB

Release files / pytex2svg-0.0.1.tar.gz

Download URL pytex2svg-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0d3e8e77a15db2236bc2194c23fb4befc6b2374ecb98efe93630d48a5061fa55
BLAKE2b-256 checksum
How to use checksums
582e80841e9fecb19cd57942267d8f30a102192fa995638cedf2e3848253d018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / pytex2svg-0.0.1-py3-none-any.whl

Download URL pytex2svg-0.0.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6ff86b9fc35f1074243655bffe9e7c1c2a8ba3a607c071202a3cb0a8561b7c2
BLAKE2b-256 checksum
How to use checksums
acb334fdf03272c743f48d3d4c17dd6350cf8e3bbb1bcce53698c4bbff759c54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page