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.1.5.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.1.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: expand_latex_macros-1.1.5.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.1.5.tar.gz
Algorithm Hash digest
SHA256 97f620dea1531b0617c8c411a7026c62fe5c77591df349731761305d9d337c49
MD5 3133157716323d59580e43c5e77ce72b
BLAKE2b-256 407dcada1c5ad011275f4d1e7cef66c4fc3472981ab5b0eb04ac31046a8118f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for expand_latex_macros-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 05e2fc6537f9f5713db419f655f0e2201c875af1acbe38bfab444eb8c592c201
MD5 82c2878137f596dbe30a0ec132c48892
BLAKE2b-256 1a739c2410839cbd0457b23b2201ceeb43a708091dca43472ecf240384906d65

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