Metadata-Version: 2.2
Name: expand_latex_macros
Version: 1.1.4
Summary: Removes all user-defined macros in a .tex file and substitutes their definitions back in.
Author: James McGreivy
Author-email: mcgreivy@mit.edu
Keywords: latex,LaTeX,macros,\def,\newcommand
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Requires-Dist: regex
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: keywords
Dynamic: requires-dist
Dynamic: summary

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.
