Skip to main content

The python-tex project is obsolete! Please have a look at Texcaller.

Python-tex is a convenient interface to the TeX command line tools that handles all kinds of errors without much fuzz.

Temporary files are always cleaned up. The TeX interpreter is automatically re-run as often as necessary, and an exception is thrown in case the output fails to stabilize soon enough. The TeX interpreter is always run in batch mode, so it won’t ever get in your way by stopping your application when there are issues with your TeX source. Instead, an exception is thrown that contains all information of the TeX log.

This enables you to debug TeX related issues directly within your application or within an interactive Python interpreter session.

Example:

>>> from tex import latex2pdf
>>> document = ur"""
... \documentclass{article}
... \begin{document}
... Hello, World!
... \end{document}
... """
>>> pdf = latex2pdf(document)
>>> type(pdf)
<type 'str'>
>>> print "PDF size: %.1f KB" % (len(pdf) / 1024.0)
PDF size: 5.6 KB
>>> pdf[:5]
'%PDF-'
>>> pdf[-6:]
'%%EOF\n'

Metadata

Release files for tex 1.8

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

Source distribution (sdist)

Source distribution for tex 1.8
File Size Uploaded
tex-1.8.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tex 1.8
File Interpreter ABI Platform
tex-1.8-py2.7.egg Legacy Egg format - - Details

Total release size: 13.3 kB

Release files / tex-1.8.tar.gz

Download URL tex-1.8.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b6950860c733b37b7c3631228abd3a70d8f75a96c3a2f17eac61158185dd224d
BLAKE2b-256 checksum
How to use checksums
97647f5d45a782be53b88e5d0963b1ef9a9fc3c6ff409fbbd2006418c5b285ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tex-1.8-py2.7.egg

Download URL tex-1.8-py2.7.egg
Size 9.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
3331ba333dde628c126fa174fb91883bd52e37569506b9122d8d3a865e253948
BLAKE2b-256 checksum
How to use checksums
bf39f845edf3cd3955575bbdf3b4dc9afa6bd28121d3b0c8fd4272c0d06d4a38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.8 This release

2 release files

1.7

2 release files

1.6

2 release files

1.5

3 release files

1.4

3 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