Skip to main content

A parser and document tree for LaTeX documents

Project description

If you need:

  • to turn your “non-crazy” LaTeX document into a document tree,
  • to rewrite that document tree using a visitor pattern, and
  • to near-exactly recreate your document (or a transformed version) from this document tree,

then this package may be for you.

The package does need to know the number of arguments supplied to each macro and environment encountered. There is a list of these in the code, but it is not currently complete. Contributions to this for popular and common macros are welcome. For custom macros and environments, an interface exists for this data to be supplied.

The package is Python 3-only.

Copyright 2019 Andreas Kloeckner

Released under the MIT License

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 pylatexparse, version 2019.2
Filename, size File type Python version Upload date Hashes
Filename, size pylatexparse-2019.2.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page