Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

LaTeX document processing framework

Project description


Read more at the github page for the plasTeX project:

Installation of this package is done just like any other Python package. See the INSTALL file for details.

Once you have plasTeX installed, you can use the command-line utility, called "plastex" just like latex or pdflatex. For example, if you have a LaTeX file called mybook.tex, simple run:

plastex mybook.tex

This will convert mybook.tex into XHTML (the default renderer). Of course, there are many options to control the execution of plastex. Simply type "plastex" on the command line without options or arguments to see the full list of command-line options.

It is also possible to write your own command-line utilities that leverage the power of the plasTeX framework. In fact, the essence of the "plastex" command can be written in just one line of code (not including the Python import commands):

import sys
from plasTeX.TeX import TeX
from plasTeX.Renderers.XHTML import Renderer

plasTeX is really much more than just a LaTeX-to-other-format converter though. See the documentation at for a complete view of what it is capable of.


To run the tests locally, make sure you have a virtual env enabled, and all the requirements installed, then run pytest:

# install venv and requirements (optional, recommended)
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# run the tests


Build Status Coverage Status

Project details

Download files

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

Files for plasTeX, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size plasTeX-2.0-py3-none-any.whl (710.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size plasTeX-2.0.tar.gz (608.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page