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-2.0.0.tar.gz (4.1 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-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: expand_latex_macros-2.0.0.tar.gz
  • Upload date:
  • Size: 4.1 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-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6316ec9cbd29c6f3d3301e7898d70aafd499f7bae763645b6a4400fd42c3e64d
MD5 221a61f5b64f23a0d8885993e52e84bb
BLAKE2b-256 8edfa97edbbaaad3fad7c0f605a2661c2973ea9e589d71775548c660d8bdd693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for expand_latex_macros-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 928dbf4c5c0e6cb6e2baec4982a5d25737fb5e4f99504fdd8a8a62ad7e8d07b1
MD5 92a06a672c9d06e5c66b6b5a6dace5ef
BLAKE2b-256 9ff4eade7703150f3e169e6106951b4a4e091274dd00ff58ceee0543b255b732

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