Skip to main content

LaTeX document processing framework

Project description

plastex

Read more at the github page for the plasTeX project: http://tiarno.github.io/plastex/

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
Renderer().render(TeX(file=sys.argv[1]).parse())

plasTeX is really much more than just a LaTeX-to-other-format converter though. See the documentation at http://tiarno.github.io/plastex/ for a complete view of what it is capable of.

Testing

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
pytest

Status

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.

Source Distribution

plasTeX-2.0.tar.gz (608.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plasTeX-2.0-py3-none-any.whl (710.6 kB view details)

Uploaded Python 3

File details

Details for the file plasTeX-2.0.tar.gz.

File metadata

  • Download URL: plasTeX-2.0.tar.gz
  • Upload date:
  • Size: 608.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

File hashes

Hashes for plasTeX-2.0.tar.gz
Algorithm Hash digest
SHA256 53591a77ce368946bf1425ee909943f2c27510c24b50d8d1c50ff11186b19dce
MD5 eea5bf351aed994df4c5e9b1ef2594ea
BLAKE2b-256 8d87a6dc7094c2097c4005a3a95d5c86895afc429e910f69da8ca7f1e00a4042

See more details on using hashes here.

File details

Details for the file plasTeX-2.0-py3-none-any.whl.

File metadata

  • Download URL: plasTeX-2.0-py3-none-any.whl
  • Upload date:
  • Size: 710.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

File hashes

Hashes for plasTeX-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 008cc79628d45f79d4bbaf4f11a1a73248fca45b8f4b5037ac87dcf15fdf5614
MD5 7bf7c860e3998fff0c42c85cedae7824
BLAKE2b-256 a7f68b74232467f1446961767f323476211d4048b97d9d532296452d633d6100

See more details on using hashes here.

Supported by

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