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.

https://github.com/inducer/pylatexparse

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.

Source Distribution

pylatexparse-2019.2.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file pylatexparse-2019.2.tar.gz.

File metadata

  • Download URL: pylatexparse-2019.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.4

File hashes

Hashes for pylatexparse-2019.2.tar.gz
Algorithm Hash digest
SHA256 1d1613dbc64e1dd9519bc3e59bb9294b36076cffe50762c9e8066306b7525c30
MD5 f0d65f303654dd5808905c9fa16f4d63
BLAKE2b-256 ac61fc7602032211785ca1e7a1e96c9ac460e2a7f141533995c4e2117d682d04

See more details on using hashes here.

Supported by

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