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.
Raw data
{
"_id": null,
"home_page": null,
"name": "expand-latex-macros",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "latex, LaTeX, macros, \\def, \\newcommand",
"author": "James McGreivy",
"author_email": "mcgreivy@mit.edu",
"download_url": "https://files.pythonhosted.org/packages/b8/6b/8d61e7e7569bea3b15a1d18e9adac8971a718391cf57b19296ad8745945b/expand_latex_macros-1.1.3.tar.gz",
"platform": null,
"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.\n",
"bugtrack_url": null,
"license": null,
"summary": "Removes all user-defined macros in a .tex file and substitutes their definitions back in.",
"version": "1.1.3",
"project_urls": null,
"split_keywords": [
"latex",
" latex",
" macros",
" \\def",
" \\newcommand"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "86acb0c45c8ad3ff43c4731f93b21c1cb0543d0ee8cc6ae81aa0e94b297f48d9",
"md5": "97ea82189d8dfba37fe448c05b8fc117",
"sha256": "864db6accec58fa59ef7b2c7fb4f82fe4c61ceb3c946dfc48f49c6ed4f9e9e9c"
},
"downloads": -1,
"filename": "expand_latex_macros-1.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "97ea82189d8dfba37fe448c05b8fc117",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3846,
"upload_time": "2025-02-22T19:36:19",
"upload_time_iso_8601": "2025-02-22T19:36:19.542953Z",
"url": "https://files.pythonhosted.org/packages/86/ac/b0c45c8ad3ff43c4731f93b21c1cb0543d0ee8cc6ae81aa0e94b297f48d9/expand_latex_macros-1.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b86b8d61e7e7569bea3b15a1d18e9adac8971a718391cf57b19296ad8745945b",
"md5": "6bb804eda07027504366428e2e11cd39",
"sha256": "139f2e3092140a8df2a698f467d70f9bb5b9c8407c22701ab812a02b73e15de4"
},
"downloads": -1,
"filename": "expand_latex_macros-1.1.3.tar.gz",
"has_sig": false,
"md5_digest": "6bb804eda07027504366428e2e11cd39",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3934,
"upload_time": "2025-02-22T19:36:21",
"upload_time_iso_8601": "2025-02-22T19:36:21.128920Z",
"url": "https://files.pythonhosted.org/packages/b8/6b/8d61e7e7569bea3b15a1d18e9adac8971a718391cf57b19296ad8745945b/expand_latex_macros-1.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-22 19:36:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "expand-latex-macros"
}