{ "info": { "author": "jack", "author_email": "jack@bancast.net", "bugtrack_url": null, "classifiers": [], "description": "# latex2sympy\n\nlatex2sympy parses LaTeX math expressions and converts it into the\nequivalent SymPy form.\n\n## Installation\n\n[ANTLR](http://www.antlr.org/) is used to generate the parser:\n\n```\n$ antlr4 PS.g4 -o gen\n```\n\n## Usage\n\nIn Python 2.7:\n\n```python\nfrom process_latex import process_sympy\n\nprocess_sympy(\"\\\\frac{d}{dx} x^{2}\")\n# => \"diff(x**(2), x)\"\n```\n\n## Examples\n\n|LaTeX|Image|Generated SymPy|\n|-----|-----|---------------|\n|`x^{3}`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20x%5E%7B3%7D)| `x**3`|\n|`\\frac{d}{dx} |t|x`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%5Cfrac%7Bd%7D%7Bdx%7D%20%7Ct%7Cx)|`Derivative(x*Abs(t), x)`|\n|`\\sum_{i = 1}^{n} i`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%5Csum_%7Bi%20%3D%201%7D%5E%7Bn%7D%20i)|`Sum(i, (i, 1, n))`|\n|`\\int_{a}^{b} \\frac{dt}{t}`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%5Cint_%7Ba%7D%5E%7Bb%7D%20%5Cfrac%7Bdt%7D%7Bt%7D)|`Integral(1/t, (t, a, b))`|\n|`(2x^3 - x + z)|_{x=3}`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%282x%5E3%20-%20x%20+%20z%29%7C_%7Bx%3D3%7D)|`z + 51`\n\n## Contributing\n\nContributors are welcome! Feel free to open a pull request\nor an issue.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jackatbancast/latex2sympy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "latex2sympy3", "package_url": "https://pypi.org/project/latex2sympy3/", "platform": "", "project_url": "https://pypi.org/project/latex2sympy3/", "project_urls": { "Homepage": "https://github.com/jackatbancast/latex2sympy" }, "release_url": "https://pypi.org/project/latex2sympy3/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Sympy generator from LaTeX expressions.", "version": "0.1.1" }, "last_serial": 2925430, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "66ac1dd705081ecd52239f0b6fdddf8e", "sha256": "71409084bdd36b500f29fda198e942c799b7e0b3fa50915accf3b5d0abdf5335" }, "downloads": -1, "filename": "latex2sympy3-0.1.1.tar.gz", "has_sig": false, "md5_digest": "66ac1dd705081ecd52239f0b6fdddf8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6097, "upload_time": "2017-06-05T03:55:26", "url": "https://files.pythonhosted.org/packages/f8/28/b5ae4512fa8febc1e5e0765af2553706def9854fe080b978f9d653057b89/latex2sympy3-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66ac1dd705081ecd52239f0b6fdddf8e", "sha256": "71409084bdd36b500f29fda198e942c799b7e0b3fa50915accf3b5d0abdf5335" }, "downloads": -1, "filename": "latex2sympy3-0.1.1.tar.gz", "has_sig": false, "md5_digest": "66ac1dd705081ecd52239f0b6fdddf8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6097, "upload_time": "2017-06-05T03:55:26", "url": "https://files.pythonhosted.org/packages/f8/28/b5ae4512fa8febc1e5e0765af2553706def9854fe080b978f9d653057b89/latex2sympy3-0.1.1.tar.gz" } ] }