Extensions for pycparser
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pylatexparse-2019.1.tar.gz
.
File metadata
- Download URL: pylatexparse-2019.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f49a6c78f1fa2ab3b808b43ac404d0959e13e45156a7f0fed957482916e45c2 |
|
MD5 | 14e5d60ee02958041b30674ddd15f9cf |
|
BLAKE2b-256 | 11645ae985f38ba4244a4bf5bfa29dcd856b5644bc196a1ceb2fb900eebf022e |