Skip to main content

Removes all user-defined macros in a .tex file and substitutes their definitions back in.

Project description

Provides the function expand_latex_macros(latex_source). Removes all user-defined macros in latex_source – which should be a latex.tex file read into python using open(latex_source_path).read() – and substitutes back in their definitions. Helpful for pre-processing LaTeX source to train NLP models.

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

expand_latex_macros-1.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

expand_latex_macros-1.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file expand_latex_macros-1.2.0.tar.gz.

File metadata

  • Download URL: expand_latex_macros-1.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for expand_latex_macros-1.2.0.tar.gz
Algorithm Hash digest
SHA256 1b6670e7b3c532a0404b218fad9566a6ad39c95f44991ad4bf889b482d739e6e
MD5 3fadda5b302ebccb577b981ab4076e8d
BLAKE2b-256 e467c355acef6d008e175a337e795077917a32eefd7fffb431702ecd0de2906c

See more details on using hashes here.

File details

Details for the file expand_latex_macros-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for expand_latex_macros-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e6c29de28a7b003a1a41b86825c91794f95c76e5e705d137b5f5b5c3776bf5b
MD5 6ce5da2b2d019f45b150c269cf30a975
BLAKE2b-256 0b4a6ff94138afce13bff10fe203d5578c1f358b2b250255ff85247a43a8efe9

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