Skip to main content

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
r.mkeps('example.eps')
r.mkpng('example.png')
r.mkpdf('example.pdf')  # uses cached version from PNG build
r.mk('duplicate.pdf') # auto-detect format; uses cached PDF

tex2pix.check_latex_package('tikz.sty')
TODO:
  • Provide mechanism (hidden?) for threaded parallel compilation.

Metadata

Release files for tex2pix 0.3.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 tex2pix 0.3.1
File Size Uploaded
tex2pix-0.3.1.tar.gz 5.4 kB Details

Release files / tex2pix-0.3.1.tar.gz

Download URL tex2pix-0.3.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d03c2b6b5ec0aa60c18e01282c6b8ffc2c74c7bbd647f00c6088192db18b16dc
BLAKE2b-256 checksum
How to use checksums
67670b008d2bc93137701145ccb4745ff7c4026804eb6a030e8fab8ec058c43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

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