Skip to main content

Lightweight renderer of LaTeX to a variety of graphics formats

Project description

A little library which renders LaTeX to various formats, using applications on your system like latex, pdflatex, bibtex, dvips, ps2eps, and convert. LaTeX is automatically run as many times as necessary to achieve a clean compile (with a user-provided max number of attempts), and Bibtex processing is supported.

Compilation takes place in temporary directories which are automatically cleaned up, can be initiated on a file or text string and include extra input files, and rendering stages are cached to reduce rendering latency.

See also the ‘tex’ module, for a more established TeX renderer with different design requirements.

Usage example:

import tex2pix
f = open("example.tex")
r = tex2pix.Renderer(f, runbibtex=True, extras=["example.bib"])
#r.verbose = True # be loud to the terminal
#r.rmtmpdir = False # keep the working dir around, for debugging
print r.mkeps("example.eps")
print r.mkpng("example.png")
print r.mkpdf("example.pdf")  # uses cached version from PNG build
print r.mk("duplicate.pdf") # auto-detect format; uses cached PDF

print tex2pix.check_latex_package("tikz.sty")

Project details


Download files

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

Source Distribution

tex2pix-0.1.6.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file tex2pix-0.1.6.tar.gz.

File metadata

  • Download URL: tex2pix-0.1.6.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tex2pix-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3329aabf489ec72d6b139d954de7398e926d3180eea989a01ec782aa79c46126
MD5 0ab7593e350d11c51cc14949c5da0e85
BLAKE2b-256 1d58133dbb313e34eca5938523a997e884975af2b6052a7a917431d13c3fcb26

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page