tex 1.8
Convert LaTeX or TeX source to PDF or DVI, and escape strings for LaTeX.
Downloads ↓ | Package Documentation
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'
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| tex-1.8-py2.7.egg (md5, pgp) | Python Egg | 2.7 | 2012-01-06 | 8KB | 88 |
| tex-1.8.tar.gz (md5, pgp) | Source | 2012-01-06 | 4KB | 126 | |
- Author: Volker Grabsch
- Documentation: tex package documentation
- Home Page: http://www.profv.de/python-tex/
-
Categories
- Development Status :: 5 - Production/Stable
- Development Status :: 6 - Mature
- Development Status :: 7 - Inactive
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Documentation
- Topic :: Office/Business
- Topic :: Printing
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Text Processing :: Markup :: LaTeX
- Package Index Owner: vog
- DOAP record: tex-1.8.xml
