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

Uploaded Python 3

File details

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

File metadata

  • Download URL: expand_latex_macros-1.1.4.tar.gz
  • Upload date:
  • Size: 4.0 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.4.tar.gz
Algorithm Hash digest
SHA256 de67d5c17dba774bba58729255f348b7d4b87881ca22d0d93b2de42c4e8d0c8e
MD5 30f4d30ecd5041e3ca4e966da0ec2cb3
BLAKE2b-256 0d16e945e11027059c947766cc75576d6edf41f23fd42e8ad0a7222577dcd432

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for expand_latex_macros-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e86ca6c4145f67d285b7257682f5ea26e92c9b9b2d8ad2a0d5dd69eb03e5578a
MD5 5838a57bc2416b036325cc0f898770fd
BLAKE2b-256 fefe3c58ac50efbfa0845d1de275ade2fbd46fdef0bd1bc26668dd0baf3e4f3e

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